diff --git a/scripts/premade/FeeDataType-0.txt b/scripts/premade/FeeDataType-0.txt index 4774bdc53a..c63b650aee 100644 --- a/scripts/premade/FeeDataType-0.txt +++ b/scripts/premade/FeeDataType-0.txt @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.SubType; +import com.hiero.sdk.proto.SubType; /** * Enum for the fee data types. diff --git a/scripts/premade/FreezeType-0.txt b/scripts/premade/FreezeType-0.txt index b412fbc7ff..1a342ba2d4 100644 --- a/scripts/premade/FreezeType-0.txt +++ b/scripts/premade/FreezeType-0.txt @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; /** * Enum for the freeze types. diff --git a/scripts/premade/FreezeType-2.txt b/scripts/premade/FreezeType-2.txt index bc23bbe81c..4755a5404d 100644 --- a/scripts/premade/FreezeType-2.txt +++ b/scripts/premade/FreezeType-2.txt @@ -1,8 +1,8 @@ - final com.hedera.hashgraph.sdk.proto.FreezeType code; + final com.hiero.sdk.proto.FreezeType code; - FreezeType(com.hedera.hashgraph.sdk.proto.FreezeType code) { + FreezeType(com.hiero.sdk.proto.FreezeType code) { this.code = code; } - static FreezeType valueOf(com.hedera.hashgraph.sdk.proto.FreezeType code) { + static FreezeType valueOf(com.hiero.sdk.proto.FreezeType code) { return switch (code) { diff --git a/scripts/premade/RequestType-0.txt b/scripts/premade/RequestType-0.txt index 518de2499b..7e1bbf2257 100644 --- a/scripts/premade/RequestType-0.txt +++ b/scripts/premade/RequestType-0.txt @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.HederaFunctionality; +import com.hiero.sdk.proto.HederaFunctionality; /** * Enum for the request types. diff --git a/scripts/premade/Status-0.txt b/scripts/premade/Status-0.txt index 4a5933fff7..8cd8c3a686 100644 --- a/scripts/premade/Status-0.txt +++ b/scripts/premade/Status-0.txt @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.ResponseCodeEnum; +import com.hiero.sdk.proto.ResponseCodeEnum; import java.util.Objects; diff --git a/scripts/update_protobufs.py b/scripts/update_protobufs.py index 7ce6beaa7a..0d6443e131 100755 --- a/scripts/update_protobufs.py +++ b/scripts/update_protobufs.py @@ -46,7 +46,7 @@ def go_to_script_dir(): MAIN_PATH = os.path.join("..", "sdk", "src", "main") PROTO_OUT_PATH = os.path.join(MAIN_PATH, "proto") PROTO_MIRROR_OUT_PATH = os.path.join(PROTO_OUT_PATH, "mirror") -JAVA_OUT_PATH = os.path.join(MAIN_PATH, "java", "com", "hedera", "hashgraph", "sdk") +JAVA_OUT_PATH = os.path.join(MAIN_PATH, "java", "com", "hiero", "sdk") REQUEST_TYPE_OUT_PATH = os.path.join(JAVA_OUT_PATH, "RequestType.java") STATUS_OUT_PATH = os.path.join(JAVA_OUT_PATH, "Status.java") FEE_DATA_TYPE_OUT_PATH = os.path.join(JAVA_OUT_PATH, "FeeDataType.java") @@ -75,13 +75,13 @@ def go_to_script_dir(): PROTO_REPLACEMENTS = ( ("option java_package = \"com.hederahashgraph.api.proto.java\";", - "option java_package = \"com.hedera.hashgraph.sdk.proto\";"), + "option java_package = \"com.hiero.sdk.proto\";"), ("option java_package = \"com.hederahashgraph.service.proto.java\";", - "option java_package = \"com.hedera.hashgraph.sdk.proto\";"), + "option java_package = \"com.hiero.sdk.proto\";"), ("option java_package = \"com.hedera.mirror.api.proto\";", - "option java_package = \"com.hedera.hashgraph.sdk.proto.mirror\";") + "option java_package = \"com.hiero.sdk.proto.mirror\";") ) PROTO_REPLACEMENTS_IMPORTS = ( @@ -325,7 +325,7 @@ def add_to_FeeDataType(original_name, cap_snake_name, comment_lines): def add_to_FreezeType(original_name, cap_snake_name, comment_lines): FreezeType_sections[1] += \ - generate_enum(original_name, cap_snake_name, comment_lines, "com.hedera.hashgraph.sdk.proto.FreezeType", 1) + generate_enum(original_name, cap_snake_name, comment_lines, "com.hiero.sdk.proto.FreezeType", 1) FreezeType_sections[3] += generate_valueOf(original_name, cap_snake_name, 3) diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/AbstractTokenTransferTransaction.java b/sdk/src/main/java/com/hiero/sdk/AbstractTokenTransferTransaction.java similarity index 93% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/AbstractTokenTransferTransaction.java rename to sdk/src/main/java/com/hiero/sdk/AbstractTokenTransferTransaction.java index 3b090d477e..31d899c29f 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/AbstractTokenTransferTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/AbstractTokenTransferTransaction.java @@ -17,9 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; +import com.hiero.sdk.proto.TokenTransferList; import java.util.ArrayList; import java.util.Comparator; import java.util.HashMap; @@ -41,7 +42,7 @@ protected AbstractTokenTransferTransaction() {} * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ AbstractTokenTransferTransaction( - LinkedHashMap> txs) + LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); } @@ -51,7 +52,7 @@ protected AbstractTokenTransferTransaction() {} * * @param txBody protobuf TransactionBody */ - AbstractTokenTransferTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + AbstractTokenTransferTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); } @@ -299,8 +300,8 @@ public T setNftTransferApproval(NftId nftId, boolean isApproved) { return (T) this; } - protected ArrayList sortTransfersAndBuild() { - var transferLists = new ArrayList(); + protected ArrayList sortTransfersAndBuild() { + var transferLists = new ArrayList(); this.tokenTransfers.sort(Comparator.comparing((TokenTransfer a) -> a.tokenId).thenComparing(a -> a.accountId) .thenComparing(a -> a.isApproved)); @@ -331,14 +332,14 @@ protected ArrayList sortTransfersAnd var result = iTokenId.compareTo(jTokenId); if (result == 0) { - transferLists.add(new com.hedera.hashgraph.sdk.TokenTransferList(iTokenId, + transferLists.add(new com.hiero.sdk.TokenTransferList(iTokenId, this.tokenTransfers.get(i).expectedDecimals, this.tokenTransfers.get(i++), this.nftTransfers.get(j++))); } else if (result < 0) { - transferLists.add(new com.hedera.hashgraph.sdk.TokenTransferList(iTokenId, + transferLists.add(new com.hiero.sdk.TokenTransferList(iTokenId, this.tokenTransfers.get(i).expectedDecimals, this.tokenTransfers.get(i++), null)); } else { - transferLists.add(new com.hedera.hashgraph.sdk.TokenTransferList(jTokenId, null, null, + transferLists.add(new com.hiero.sdk.TokenTransferList(jTokenId, null, null, this.nftTransfers.get(j++))); } } else if (i < this.tokenTransfers.size()) { @@ -351,7 +352,7 @@ protected ArrayList sortTransfersAnd continue; } - transferLists.add(new com.hedera.hashgraph.sdk.TokenTransferList(iTokenId, + transferLists.add(new com.hiero.sdk.TokenTransferList(iTokenId, this.tokenTransfers.get(i).expectedDecimals, this.tokenTransfers.get(i++), null)); } else { var jTokenId = this.nftTransfers.get(j).tokenId; @@ -364,7 +365,7 @@ protected ArrayList sortTransfersAnd } transferLists.add( - new com.hedera.hashgraph.sdk.TokenTransferList(jTokenId, null, null, this.nftTransfers.get(j++))); + new com.hiero.sdk.TokenTransferList(jTokenId, null, null, this.nftTransfers.get(j++))); } } return transferLists; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/AccountAllowanceAdjustTransaction.java b/sdk/src/main/java/com/hiero/sdk/AccountAllowanceAdjustTransaction.java similarity index 96% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/AccountAllowanceAdjustTransaction.java rename to sdk/src/main/java/com/hiero/sdk/AccountAllowanceAdjustTransaction.java index a3f867db2e..9453537251 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/AccountAllowanceAdjustTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/AccountAllowanceAdjustTransaction.java @@ -17,13 +17,13 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.CryptoServiceGrpc; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.CryptoServiceGrpc; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import javax.annotation.Nonnegative; @@ -55,13 +55,13 @@ public AccountAllowanceAdjustTransaction() { } AccountAllowanceAdjustTransaction( - LinkedHashMap> txs + LinkedHashMap> txs ) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } - AccountAllowanceAdjustTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + AccountAllowanceAdjustTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -388,7 +388,7 @@ public List getTokenNftAllowances() { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { throw new UnsupportedOperationException("Cannot get method descriptor for AccountAllowanceAdjustTransaction"); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/AccountAllowanceApproveTransaction.java b/sdk/src/main/java/com/hiero/sdk/AccountAllowanceApproveTransaction.java similarity index 95% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/AccountAllowanceApproveTransaction.java rename to sdk/src/main/java/com/hiero/sdk/AccountAllowanceApproveTransaction.java index 9b32072df4..6238fb3233 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/AccountAllowanceApproveTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/AccountAllowanceApproveTransaction.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.CryptoApproveAllowanceTransactionBody; -import com.hedera.hashgraph.sdk.proto.CryptoServiceGrpc; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.CryptoApproveAllowanceTransactionBody; +import com.hiero.sdk.proto.CryptoServiceGrpc; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -59,7 +59,7 @@ public AccountAllowanceApproveTransaction() { * @param txs Compound list of transaction id's list of (AccountId, Transaction) records */ AccountAllowanceApproveTransaction( - LinkedHashMap> txs + LinkedHashMap> txs ) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); @@ -70,7 +70,7 @@ public AccountAllowanceApproveTransaction() { * * @param txBody protobuf TransactionBody */ - AccountAllowanceApproveTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + AccountAllowanceApproveTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -439,14 +439,14 @@ public List getTokenNftApprovals() { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return CryptoServiceGrpc.getApproveAllowancesMethod(); } /** * Build the correct transaction body. * - * @return {@link com.hedera.hashgraph.sdk.proto.CryptoApproveAllowanceTransactionBody builder } + * @return {@link com.hiero.sdk.proto.CryptoApproveAllowanceTransactionBody builder } */ CryptoApproveAllowanceTransactionBody.Builder build() { var builder = CryptoApproveAllowanceTransactionBody.newBuilder(); diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/AccountAllowanceDeleteTransaction.java b/sdk/src/main/java/com/hiero/sdk/AccountAllowanceDeleteTransaction.java similarity index 92% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/AccountAllowanceDeleteTransaction.java rename to sdk/src/main/java/com/hiero/sdk/AccountAllowanceDeleteTransaction.java index a8aea45bce..00d3b579c9 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/AccountAllowanceDeleteTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/AccountAllowanceDeleteTransaction.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.CryptoDeleteAllowanceTransactionBody; -import com.hedera.hashgraph.sdk.proto.CryptoServiceGrpc; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.Transaction; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.CryptoDeleteAllowanceTransactionBody; +import com.hiero.sdk.proto.CryptoServiceGrpc; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.Transaction; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -39,7 +39,7 @@ /** * This transaction type is for deleting an account allowance. */ -public class AccountAllowanceDeleteTransaction extends com.hedera.hashgraph.sdk.Transaction { +public class AccountAllowanceDeleteTransaction extends com.hiero.sdk.Transaction { private final List hbarAllowances = new ArrayList<>(); private final List tokenAllowances = new ArrayList<>(); private final List nftAllowances = new ArrayList<>(); @@ -59,7 +59,7 @@ public AccountAllowanceDeleteTransaction() { * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ AccountAllowanceDeleteTransaction( - LinkedHashMap> txs + LinkedHashMap> txs ) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); @@ -70,7 +70,7 @@ public AccountAllowanceDeleteTransaction() { * * @param txBody protobuf TransactionBody */ - AccountAllowanceDeleteTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + AccountAllowanceDeleteTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/AccountBalance.java b/sdk/src/main/java/com/hiero/sdk/AccountBalance.java similarity index 96% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/AccountBalance.java rename to sdk/src/main/java/com/hiero/sdk/AccountBalance.java index b6ffce6283..af8d7befc6 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/AccountBalance.java +++ b/sdk/src/main/java/com/hiero/sdk/AccountBalance.java @@ -17,13 +17,13 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.CryptoGetAccountBalanceResponse; -import com.hedera.hashgraph.sdk.proto.TokenBalance; +import com.hiero.sdk.proto.CryptoGetAccountBalanceResponse; +import com.hiero.sdk.proto.TokenBalance; import javax.annotation.Nonnegative; import java.util.HashMap; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/AccountBalanceQuery.java b/sdk/src/main/java/com/hiero/sdk/AccountBalanceQuery.java similarity index 85% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/AccountBalanceQuery.java rename to sdk/src/main/java/com/hiero/sdk/AccountBalanceQuery.java index f5e00fb4e7..4fa1f4faae 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/AccountBalanceQuery.java +++ b/sdk/src/main/java/com/hiero/sdk/AccountBalanceQuery.java @@ -17,13 +17,13 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.CryptoGetAccountBalanceQuery; -import com.hedera.hashgraph.sdk.proto.CryptoServiceGrpc; -import com.hedera.hashgraph.sdk.proto.QueryHeader; -import com.hedera.hashgraph.sdk.proto.Response; -import com.hedera.hashgraph.sdk.proto.ResponseHeader; +import com.hiero.sdk.proto.CryptoGetAccountBalanceQuery; +import com.hiero.sdk.proto.CryptoServiceGrpc; +import com.hiero.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.Response; +import com.hiero.sdk.proto.ResponseHeader; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -112,7 +112,7 @@ boolean isPaymentRequired() { } @Override - void onMakeRequest(com.hedera.hashgraph.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { + void onMakeRequest(com.hiero.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { var builder = CryptoGetAccountBalanceQuery.newBuilder(); if (accountId != null) { builder.setAccountID(accountId.toProtobuf()); @@ -126,7 +126,7 @@ void onMakeRequest(com.hedera.hashgraph.sdk.proto.Query.Builder queryBuilder, Qu } @Override - AccountBalance mapResponse(Response response, AccountId nodeId, com.hedera.hashgraph.sdk.proto.Query request) { + AccountBalance mapResponse(Response response, AccountId nodeId, com.hiero.sdk.proto.Query request) { return AccountBalance.fromProtobuf(response.getCryptogetAccountBalance()); } @@ -136,12 +136,12 @@ ResponseHeader mapResponseHeader(Response response) { } @Override - QueryHeader mapRequestHeader(com.hedera.hashgraph.sdk.proto.Query request) { + QueryHeader mapRequestHeader(com.hiero.sdk.proto.Query request) { return request.getCryptogetAccountBalance().getHeader(); } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return CryptoServiceGrpc.getCryptoGetBalanceMethod(); } } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/AccountCreateTransaction.java b/sdk/src/main/java/com/hiero/sdk/AccountCreateTransaction.java similarity index 95% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/AccountCreateTransaction.java rename to sdk/src/main/java/com/hiero/sdk/AccountCreateTransaction.java index 86c5af66c9..a2c07130f8 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/AccountCreateTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/AccountCreateTransaction.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.CryptoCreateTransactionBody; -import com.hedera.hashgraph.sdk.proto.CryptoServiceGrpc; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.CryptoCreateTransactionBody; +import com.hiero.sdk.proto.CryptoServiceGrpc; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import java.time.Duration; @@ -71,7 +71,7 @@ public AccountCreateTransaction() { * @param txs Compound list of transaction id's list of (AccountId, Transaction) records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - AccountCreateTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + AccountCreateTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -81,7 +81,7 @@ public AccountCreateTransaction() { * * @param txBody protobuf TransactionBody */ - AccountCreateTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + AccountCreateTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -388,7 +388,7 @@ public AccountCreateTransaction setAlias(String aliasEvmAddress) { /** * Build the transaction body. * - * @return {@link com.hedera.hashgraph.sdk.proto.CryptoCreateTransactionBody} + * @return {@link com.hiero.sdk.proto.CryptoCreateTransactionBody} */ CryptoCreateTransactionBody.Builder build() { var builder = CryptoCreateTransactionBody.newBuilder() @@ -464,7 +464,7 @@ void initFromTransactionBody() { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return CryptoServiceGrpc.getCreateAccountMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/AccountDeleteTransaction.java b/sdk/src/main/java/com/hiero/sdk/AccountDeleteTransaction.java similarity index 88% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/AccountDeleteTransaction.java rename to sdk/src/main/java/com/hiero/sdk/AccountDeleteTransaction.java index 72b71f19ca..5c4d69ca20 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/AccountDeleteTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/AccountDeleteTransaction.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.CryptoDeleteTransactionBody; -import com.hedera.hashgraph.sdk.proto.CryptoServiceGrpc; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.CryptoDeleteTransactionBody; +import com.hiero.sdk.proto.CryptoServiceGrpc; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -56,7 +56,7 @@ public AccountDeleteTransaction() { * @param txs Compound list of transaction id's list of (AccountId, Transaction) records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - AccountDeleteTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + AccountDeleteTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -66,7 +66,7 @@ public AccountDeleteTransaction() { * * @param txBody protobuf TransactionBody */ - AccountDeleteTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + AccountDeleteTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -129,7 +129,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return CryptoServiceGrpc.getCryptoDeleteMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/AccountId.java b/sdk/src/main/java/com/hiero/sdk/AccountId.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/AccountId.java rename to sdk/src/main/java/com/hiero/sdk/AccountId.java index 3faa33990f..2b2dbb7df4 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/AccountId.java +++ b/sdk/src/main/java/com/hiero/sdk/AccountId.java @@ -17,11 +17,11 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.AccountID; +import com.hiero.sdk.proto.AccountID; import java.util.Arrays; import java.util.Objects; import java.util.concurrent.CompletableFuture; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/AccountInfo.java b/sdk/src/main/java/com/hiero/sdk/AccountInfo.java similarity index 97% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/AccountInfo.java rename to sdk/src/main/java/com/hiero/sdk/AccountInfo.java index 75d0986e5e..9a083ad4d6 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/AccountInfo.java +++ b/sdk/src/main/java/com/hiero/sdk/AccountInfo.java @@ -17,13 +17,13 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import static java.util.stream.Collectors.toList; import com.google.common.base.MoreObjects; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse; +import com.hiero.sdk.proto.CryptoGetInfoResponse; import java.time.Duration; import java.time.Instant; import java.util.Arrays; @@ -258,12 +258,12 @@ static AccountInfo fromProtobuf(CryptoGetInfoResponse.AccountInfo accountInfo) { : null; var liveHashes = Arrays.stream(accountInfo.getLiveHashesList().toArray()) - .map((liveHash) -> LiveHash.fromProtobuf((com.hedera.hashgraph.sdk.proto.LiveHash) liveHash)) + .map((liveHash) -> LiveHash.fromProtobuf((com.hiero.sdk.proto.LiveHash) liveHash)) .collect(toList()); Map relationships = new HashMap<>(); - for (com.hedera.hashgraph.sdk.proto.TokenRelationship relationship : accountInfo.getTokenRelationshipsList()) { + for (com.hiero.sdk.proto.TokenRelationship relationship : accountInfo.getTokenRelationshipsList()) { TokenId tokenId = TokenId.fromProtobuf(relationship.getTokenId()); relationships.put(tokenId, TokenRelationship.fromProtobuf(relationship)); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/AccountInfoFlow.java b/sdk/src/main/java/com/hiero/sdk/AccountInfoFlow.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/AccountInfoFlow.java rename to sdk/src/main/java/com/hiero/sdk/AccountInfoFlow.java index c18fdc7ea5..5f6be2defd 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/AccountInfoFlow.java +++ b/sdk/src/main/java/com/hiero/sdk/AccountInfoFlow.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import java.util.concurrent.CompletableFuture; import java.util.concurrent.TimeoutException; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/AccountInfoQuery.java b/sdk/src/main/java/com/hiero/sdk/AccountInfoQuery.java similarity index 82% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/AccountInfoQuery.java rename to sdk/src/main/java/com/hiero/sdk/AccountInfoQuery.java index 8b9aa64096..db3f1992cc 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/AccountInfoQuery.java +++ b/sdk/src/main/java/com/hiero/sdk/AccountInfoQuery.java @@ -17,13 +17,13 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.CryptoGetInfoQuery; -import com.hedera.hashgraph.sdk.proto.CryptoServiceGrpc; -import com.hedera.hashgraph.sdk.proto.QueryHeader; -import com.hedera.hashgraph.sdk.proto.Response; -import com.hedera.hashgraph.sdk.proto.ResponseHeader; +import com.hiero.sdk.proto.CryptoGetInfoQuery; +import com.hiero.sdk.proto.CryptoServiceGrpc; +import com.hiero.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.Response; +import com.hiero.sdk.proto.ResponseHeader; import io.grpc.MethodDescriptor; import java.util.Objects; import java.util.concurrent.CompletableFuture; @@ -74,7 +74,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - void onMakeRequest(com.hedera.hashgraph.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { + void onMakeRequest(com.hiero.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { var builder = CryptoGetInfoQuery.newBuilder(); if (accountId != null) { @@ -90,17 +90,17 @@ ResponseHeader mapResponseHeader(Response response) { } @Override - QueryHeader mapRequestHeader(com.hedera.hashgraph.sdk.proto.Query request) { + QueryHeader mapRequestHeader(com.hiero.sdk.proto.Query request) { return request.getCryptoGetInfo().getHeader(); } @Override - AccountInfo mapResponse(Response response, AccountId nodeId, com.hedera.hashgraph.sdk.proto.Query request) { + AccountInfo mapResponse(Response response, AccountId nodeId, com.hiero.sdk.proto.Query request) { return AccountInfo.fromProtobuf(response.getCryptoGetInfo().getAccountInfo()); } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return CryptoServiceGrpc.getGetAccountInfoMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/AccountRecordsQuery.java b/sdk/src/main/java/com/hiero/sdk/AccountRecordsQuery.java similarity index 81% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/AccountRecordsQuery.java rename to sdk/src/main/java/com/hiero/sdk/AccountRecordsQuery.java index d8237bf2a1..8f987d9192 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/AccountRecordsQuery.java +++ b/sdk/src/main/java/com/hiero/sdk/AccountRecordsQuery.java @@ -17,13 +17,13 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.CryptoGetAccountRecordsQuery; -import com.hedera.hashgraph.sdk.proto.CryptoServiceGrpc; -import com.hedera.hashgraph.sdk.proto.QueryHeader; -import com.hedera.hashgraph.sdk.proto.Response; -import com.hedera.hashgraph.sdk.proto.ResponseHeader; +import com.hiero.sdk.proto.CryptoGetAccountRecordsQuery; +import com.hiero.sdk.proto.CryptoServiceGrpc; +import com.hiero.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.Response; +import com.hiero.sdk.proto.ResponseHeader; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -75,7 +75,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - void onMakeRequest(com.hedera.hashgraph.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { + void onMakeRequest(com.hiero.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { var builder = CryptoGetAccountRecordsQuery.newBuilder(); if (accountId != null) { @@ -91,12 +91,12 @@ ResponseHeader mapResponseHeader(Response response) { } @Override - QueryHeader mapRequestHeader(com.hedera.hashgraph.sdk.proto.Query request) { + QueryHeader mapRequestHeader(com.hiero.sdk.proto.Query request) { return request.getCryptoGetAccountRecords().getHeader(); } @Override - List mapResponse(Response response, AccountId nodeId, com.hedera.hashgraph.sdk.proto.Query request) { + List mapResponse(Response response, AccountId nodeId, com.hiero.sdk.proto.Query request) { var rawTransactionRecords = response.getCryptoGetAccountRecords().getRecordsList(); var transactionRecords = new ArrayList(rawTransactionRecords.size()); @@ -108,7 +108,7 @@ List mapResponse(Response response, AccountId nodeId, com.hed } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return CryptoServiceGrpc.getGetAccountRecordsMethod(); } } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/AccountStakersQuery.java b/sdk/src/main/java/com/hiero/sdk/AccountStakersQuery.java similarity index 82% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/AccountStakersQuery.java rename to sdk/src/main/java/com/hiero/sdk/AccountStakersQuery.java index 0ba4772d60..8c3eb66a37 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/AccountStakersQuery.java +++ b/sdk/src/main/java/com/hiero/sdk/AccountStakersQuery.java @@ -17,13 +17,13 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.CryptoGetStakersQuery; -import com.hedera.hashgraph.sdk.proto.CryptoServiceGrpc; -import com.hedera.hashgraph.sdk.proto.QueryHeader; -import com.hedera.hashgraph.sdk.proto.Response; -import com.hedera.hashgraph.sdk.proto.ResponseHeader; +import com.hiero.sdk.proto.CryptoGetStakersQuery; +import com.hiero.sdk.proto.CryptoServiceGrpc; +import com.hiero.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.Response; +import com.hiero.sdk.proto.ResponseHeader; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -77,7 +77,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - void onMakeRequest(com.hedera.hashgraph.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { + void onMakeRequest(com.hiero.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { var builder = CryptoGetStakersQuery.newBuilder(); if (accountId != null) { @@ -93,12 +93,12 @@ ResponseHeader mapResponseHeader(Response response) { } @Override - QueryHeader mapRequestHeader(com.hedera.hashgraph.sdk.proto.Query request) { + QueryHeader mapRequestHeader(com.hiero.sdk.proto.Query request) { return request.getCryptoGetProxyStakers().getHeader(); } @Override - List mapResponse(Response response, AccountId nodeId, com.hedera.hashgraph.sdk.proto.Query request) { + List mapResponse(Response response, AccountId nodeId, com.hiero.sdk.proto.Query request) { var rawStakers = response.getCryptoGetProxyStakers().getStakers(); var stakers = new ArrayList(rawStakers.getProxyStakerCount()); @@ -110,7 +110,7 @@ List mapResponse(Response response, AccountId nodeId, com.hedera.ha } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return CryptoServiceGrpc.getGetStakersByAccountIDMethod(); } } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/AccountUpdateTransaction.java b/sdk/src/main/java/com/hiero/sdk/AccountUpdateTransaction.java similarity index 96% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/AccountUpdateTransaction.java rename to sdk/src/main/java/com/hiero/sdk/AccountUpdateTransaction.java index 3b7fa00b93..4a91123fd6 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/AccountUpdateTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/AccountUpdateTransaction.java @@ -17,17 +17,17 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.BoolValue; import com.google.protobuf.Int32Value; import com.google.protobuf.InvalidProtocolBufferException; import com.google.protobuf.StringValue; -import com.hedera.hashgraph.sdk.proto.CryptoServiceGrpc; -import com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.CryptoServiceGrpc; +import com.hiero.sdk.proto.CryptoUpdateTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import java.time.Duration; import java.time.Instant; @@ -93,7 +93,7 @@ public AccountUpdateTransaction() { * @param txs Compound list of transaction id's list of (AccountId, Transaction) records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - AccountUpdateTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + AccountUpdateTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -103,7 +103,7 @@ public AccountUpdateTransaction() { * * @param txBody protobuf TransactionBody */ - AccountUpdateTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + AccountUpdateTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -502,7 +502,7 @@ void initFromTransactionBody() { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return CryptoServiceGrpc.getUpdateAccountMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/AddressBookQuery.java b/sdk/src/main/java/com/hiero/sdk/AddressBookQuery.java similarity index 93% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/AddressBookQuery.java rename to sdk/src/main/java/com/hiero/sdk/AddressBookQuery.java index aa101b384c..6301e6c32e 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/AddressBookQuery.java +++ b/sdk/src/main/java/com/hiero/sdk/AddressBookQuery.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.mirror.NetworkServiceGrpc; +import com.hiero.sdk.proto.mirror.NetworkServiceGrpc; import io.grpc.CallOptions; import io.grpc.ClientCall; import io.grpc.Deadline; @@ -225,9 +225,9 @@ void executeAsync(Client client, Deadline deadline, CompletableFuture() { + new StreamObserver() { @Override - public void onNext(com.hedera.hashgraph.sdk.proto.NodeAddress addressProto) { + public void onNext(com.hiero.sdk.proto.NodeAddress addressProto) { addresses.add(NodeAddress.fromProtobuf(addressProto)); } @@ -253,10 +253,10 @@ public void onCompleted() { /** * Build the address book query. * - * @return {@link com.hedera.hashgraph.sdk.proto.mirror.AddressBookQuery buildQuery } + * @return {@link com.hiero.sdk.proto.mirror.AddressBookQuery buildQuery } */ - com.hedera.hashgraph.sdk.proto.mirror.AddressBookQuery buildQuery() { - var builder = com.hedera.hashgraph.sdk.proto.mirror.AddressBookQuery.newBuilder(); + com.hiero.sdk.proto.mirror.AddressBookQuery buildQuery() { + var builder = com.hiero.sdk.proto.mirror.AddressBookQuery.newBuilder(); if (fileId != null) { builder.setFileId(fileId.toProtobuf()); } @@ -266,7 +266,7 @@ com.hedera.hashgraph.sdk.proto.mirror.AddressBookQuery buildQuery() { return builder.build(); } - private ClientCall + private ClientCall buildCall(Client client, Deadline deadline) { try { return client.mirrorNetwork.getNextMirrorNode().getChannel().newCall( diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/AssessedCustomFee.java b/sdk/src/main/java/com/hiero/sdk/AssessedCustomFee.java similarity index 89% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/AssessedCustomFee.java rename to sdk/src/main/java/com/hiero/sdk/AssessedCustomFee.java index ccd64c17a6..ba633c5d44 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/AssessedCustomFee.java +++ b/sdk/src/main/java/com/hiero/sdk/AssessedCustomFee.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.InvalidProtocolBufferException; @@ -70,7 +70,7 @@ public class AssessedCustomFee { * @param assessedCustomFee protobuf response object * @return the converted assessed custom fee object */ - static AssessedCustomFee fromProtobuf(com.hedera.hashgraph.sdk.proto.AssessedCustomFee assessedCustomFee) { + static AssessedCustomFee fromProtobuf(com.hiero.sdk.proto.AssessedCustomFee assessedCustomFee) { var payerList = new ArrayList(assessedCustomFee.getEffectivePayerAccountIdCount()); for (var payerId : assessedCustomFee.getEffectivePayerAccountIdList()) { payerList.add(AccountId.fromProtobuf(payerId)); @@ -91,7 +91,7 @@ static AssessedCustomFee fromProtobuf(com.hedera.hashgraph.sdk.proto.AssessedCus * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ public static AssessedCustomFee fromBytes(byte[] bytes) throws InvalidProtocolBufferException { - return fromProtobuf(com.hedera.hashgraph.sdk.proto.AssessedCustomFee.parseFrom(bytes).toBuilder().build()); + return fromProtobuf(com.hiero.sdk.proto.AssessedCustomFee.parseFrom(bytes).toBuilder().build()); } @Override @@ -107,10 +107,10 @@ public String toString() { /** * Create the protobuf representation. * - * @return {@link com.hedera.hashgraph.sdk.proto.AssessedCustomFee} + * @return {@link com.hiero.sdk.proto.AssessedCustomFee} */ - com.hedera.hashgraph.sdk.proto.AssessedCustomFee toProtobuf() { - var builder = com.hedera.hashgraph.sdk.proto.AssessedCustomFee.newBuilder().setAmount(amount); + com.hiero.sdk.proto.AssessedCustomFee toProtobuf() { + var builder = com.hiero.sdk.proto.AssessedCustomFee.newBuilder().setAmount(amount); if (tokenId != null) { builder.setTokenId(tokenId.toProtobuf()); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/BadEntityIdException.java b/sdk/src/main/java/com/hiero/sdk/BadEntityIdException.java similarity index 98% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/BadEntityIdException.java rename to sdk/src/main/java/com/hiero/sdk/BadEntityIdException.java index 70067aec06..89acf60972 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/BadEntityIdException.java +++ b/sdk/src/main/java/com/hiero/sdk/BadEntityIdException.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; /** * Custom exception thrown by the entity helper validate method when the account id and checksum are invalid. diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/BadKeyException.java b/sdk/src/main/java/com/hiero/sdk/BadKeyException.java similarity index 97% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/BadKeyException.java rename to sdk/src/main/java/com/hiero/sdk/BadKeyException.java index 594566d8ce..a81affad9d 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/BadKeyException.java +++ b/sdk/src/main/java/com/hiero/sdk/BadKeyException.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; /** * Signals that a key could not be realized from the given input. diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/BadMnemonicException.java b/sdk/src/main/java/com/hiero/sdk/BadMnemonicException.java similarity index 98% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/BadMnemonicException.java rename to sdk/src/main/java/com/hiero/sdk/BadMnemonicException.java index 3e005650ae..12ec01877a 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/BadMnemonicException.java +++ b/sdk/src/main/java/com/hiero/sdk/BadMnemonicException.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import javax.annotation.Nullable; import java.util.List; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/BadMnemonicReason.java b/sdk/src/main/java/com/hiero/sdk/BadMnemonicReason.java similarity index 98% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/BadMnemonicReason.java rename to sdk/src/main/java/com/hiero/sdk/BadMnemonicReason.java index 7be4ec48ff..8655d50651 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/BadMnemonicReason.java +++ b/sdk/src/main/java/com/hiero/sdk/BadMnemonicReason.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; /** * Possible reason why a {@link Mnemonic} failed validation. diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/BaseNetwork.java b/sdk/src/main/java/com/hiero/sdk/BaseNetwork.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/BaseNetwork.java rename to sdk/src/main/java/com/hiero/sdk/BaseNetwork.java index 0897a0bfe0..8b71140318 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/BaseNetwork.java +++ b/sdk/src/main/java/com/hiero/sdk/BaseNetwork.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.annotations.VisibleForTesting; import java.time.Duration; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/BaseNode.java b/sdk/src/main/java/com/hiero/sdk/BaseNode.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/BaseNode.java rename to sdk/src/main/java/com/hiero/sdk/BaseNode.java index 5ee01304d3..126da1c793 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/BaseNode.java +++ b/sdk/src/main/java/com/hiero/sdk/BaseNode.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import io.grpc.ChannelCredentials; import io.grpc.ConnectivityState; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/BaseNodeAddress.java b/sdk/src/main/java/com/hiero/sdk/BaseNodeAddress.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/BaseNodeAddress.java rename to sdk/src/main/java/com/hiero/sdk/BaseNodeAddress.java index b3b9299695..33e672d8fe 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/BaseNodeAddress.java +++ b/sdk/src/main/java/com/hiero/sdk/BaseNodeAddress.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import javax.annotation.Nullable; import java.util.Objects; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/ChunkedTransaction.java b/sdk/src/main/java/com/hiero/sdk/ChunkedTransaction.java similarity index 96% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/ChunkedTransaction.java rename to sdk/src/main/java/com/hiero/sdk/ChunkedTransaction.java index 876845179d..4c535fbc15 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/ChunkedTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/ChunkedTransaction.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.SignatureMap; -import com.hedera.hashgraph.sdk.proto.SignedTransaction; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionID; +import com.hiero.sdk.proto.SignatureMap; +import com.hiero.sdk.proto.SignedTransaction; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionID; import java.time.Duration; import java.util.ArrayList; import java.util.Collections; @@ -64,7 +64,7 @@ abstract class ChunkedTransaction> extends Trans * @param txs Compound list of transaction id's list of (AccountId, Transaction) records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - ChunkedTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + ChunkedTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); } @@ -73,7 +73,7 @@ abstract class ChunkedTransaction> extends Trans * * @param txBody protobuf TransactionBody */ - ChunkedTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + ChunkedTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); } @@ -355,7 +355,7 @@ public CompletableFuture> executeAllAsync(Client clien public CompletableFuture> executeAllAsync(Client client, Duration timeoutPerChunk) { freezeAndSign(client); - CompletableFuture> future = + CompletableFuture> future = CompletableFuture.supplyAsync(() -> new ArrayList<>(transactionIds.size())); for (var i = 0; i < transactionIds.size(); i++) { @@ -428,7 +428,7 @@ public void executeAllAsync(Client client, Duration timeout, Consumer executeAsync(Client client, Duration timeoutPerChunk) { + public CompletableFuture executeAsync(Client client, Duration timeoutPerChunk) { return executeAllAsync(client, timeoutPerChunk).thenApply(responses -> responses.get(0)); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/Client.java b/sdk/src/main/java/com/hiero/sdk/Client.java similarity index 98% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/Client.java rename to sdk/src/main/java/com/hiero/sdk/Client.java index 0ee362665e..a0982eb1b7 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/Client.java +++ b/sdk/src/main/java/com/hiero/sdk/Client.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.annotations.VisibleForTesting; import com.google.common.util.concurrent.ThreadFactoryBuilder; import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonParseException; -import com.hedera.hashgraph.sdk.logger.LogLevel; -import com.hedera.hashgraph.sdk.logger.Logger; +import com.hiero.sdk.logger.LogLevel; +import com.hiero.sdk.logger.Logger; import java.io.File; import java.io.IOException; import java.io.Reader; @@ -151,7 +151,7 @@ static ExecutorService createExecutor() { * @param networkMap the map of node IDs to node addresses that make up the network. * @param executor runs the grpc requests asynchronously. Note that calling `close()` method on one of the * clients will close the executor for all the other clients sharing this executor - * @return {@link com.hedera.hashgraph.sdk.Client} + * @return {@link com.hiero.sdk.Client} */ public static Client forNetwork(Map networkMap, ExecutorService executor) { var network = Network.forNetwork(executor, networkMap); @@ -171,7 +171,7 @@ public static Client forNetwork(Map networkMap, ExecutorServi * chose nodes to send transactions to. For one transaction, at most 1/3 of the nodes will be tried. * * @param networkMap the map of node IDs to node addresses that make up the network. - * @return {@link com.hedera.hashgraph.sdk.Client} + * @return {@link com.hiero.sdk.Client} */ public static Client forNetwork(Map networkMap) { var executor = createExecutor(); @@ -199,7 +199,7 @@ public static Client forName(String name) { * * @param executor runs the grpc requests asynchronously. Note that calling `close()` method on one of the * clients will close the executor for all the other clients sharing this executor - * @return {@link com.hedera.hashgraph.sdk.Client} + * @return {@link com.hiero.sdk.Client} */ public static Client forMainnet(ExecutorService executor) { var network = Network.forMainnet(executor); @@ -215,7 +215,7 @@ public static Client forMainnet(ExecutorService executor) { * * @param executor runs the grpc requests asynchronously. Note that calling `close()` method on one of the * clients will close the executor for all the other clients sharing this executor - * @return {@link com.hedera.hashgraph.sdk.Client} + * @return {@link com.hiero.sdk.Client} */ public static Client forTestnet(ExecutorService executor) { var network = Network.forTestnet(executor); @@ -232,7 +232,7 @@ public static Client forTestnet(ExecutorService executor) { * * @param executor runs the grpc requests asynchronously. Note that calling `close()` method on one of the * clients will close the executor for all the other clients sharing this executor - * @return {@link com.hedera.hashgraph.sdk.Client} + * @return {@link com.hiero.sdk.Client} */ public static Client forPreviewnet(ExecutorService executor) { var network = Network.forPreviewnet(executor); @@ -247,7 +247,7 @@ public static Client forPreviewnet(ExecutorService executor) { * Construct a Hedera client pre-configured for Mainnet access. * - * @return {@link com.hedera.hashgraph.sdk.Client} + * @return {@link com.hiero.sdk.Client} */ public static Client forMainnet() { var executor = createExecutor(); @@ -258,7 +258,7 @@ public static Client forMainnet() { * Construct a Hedera client pre-configured for Testnet * access. * - * @return {@link com.hedera.hashgraph.sdk.Client} + * @return {@link com.hiero.sdk.Client} */ public static Client forTestnet() { var executor = createExecutor(); @@ -270,7 +270,7 @@ public static Client forTestnet() { * href="https://docs.hedera.com/guides/testnet/testnet-nodes#previewnet-node-public-keys">Preview Testnet * nodes. * - * @return {@link com.hedera.hashgraph.sdk.Client} + * @return {@link com.hiero.sdk.Client} */ public static Client forPreviewnet() { var executor = createExecutor(); @@ -281,7 +281,7 @@ public static Client forPreviewnet() { * Configure a client based off the given JSON string. * * @param json The json string containing the client configuration - * @return {@link com.hedera.hashgraph.sdk.Client} + * @return {@link com.hiero.sdk.Client} * @throws Exception if the config is incorrect */ public static Client fromConfig(String json) throws Exception { @@ -292,7 +292,7 @@ public static Client fromConfig(String json) throws Exception { * Configure a client based off the given JSON reader. * * @param json The Reader containing the client configuration - * @return {@link com.hedera.hashgraph.sdk.Client} + * @return {@link com.hiero.sdk.Client} * @throws Exception if the config is incorrect */ public static Client fromConfig(Reader json) throws Exception { @@ -362,7 +362,7 @@ public static Client fromConfig(Reader json) throws Exception { * Configure a client based on a JSON file at the given path. * * @param fileName The string containing the file path - * @return {@link com.hedera.hashgraph.sdk.Client} + * @return {@link com.hiero.sdk.Client} * @throws IOException if IO operations fail */ public static Client fromConfigFile(String fileName) throws Exception { @@ -373,7 +373,7 @@ public static Client fromConfigFile(String fileName) throws Exception { * Configure a client based on a JSON file. * * @param file The file containing the client configuration - * @return {@link com.hedera.hashgraph.sdk.Client} + * @return {@link com.hiero.sdk.Client} * @throws IOException if IO operations fail */ public static Client fromConfigFile(File file) throws Exception { diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/ConsumerHelper.java b/sdk/src/main/java/com/hiero/sdk/ConsumerHelper.java similarity index 97% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/ConsumerHelper.java rename to sdk/src/main/java/com/hiero/sdk/ConsumerHelper.java index 4d3c75b38c..ce9e5017a1 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/ConsumerHelper.java +++ b/sdk/src/main/java/com/hiero/sdk/ConsumerHelper.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import java.util.concurrent.CompletableFuture; import java.util.function.BiConsumer; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/ContractByteCodeQuery.java b/sdk/src/main/java/com/hiero/sdk/ContractByteCodeQuery.java similarity index 79% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/ContractByteCodeQuery.java rename to sdk/src/main/java/com/hiero/sdk/ContractByteCodeQuery.java index 12e368e096..e8bc2967a5 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/ContractByteCodeQuery.java +++ b/sdk/src/main/java/com/hiero/sdk/ContractByteCodeQuery.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; -import com.hedera.hashgraph.sdk.proto.ContractGetBytecodeQuery; -import com.hedera.hashgraph.sdk.proto.QueryHeader; -import com.hedera.hashgraph.sdk.proto.Response; -import com.hedera.hashgraph.sdk.proto.ResponseHeader; -import com.hedera.hashgraph.sdk.proto.SmartContractServiceGrpc; +import com.hiero.sdk.proto.ContractGetBytecodeQuery; +import com.hiero.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.Response; +import com.hiero.sdk.proto.ResponseHeader; +import com.hiero.sdk.proto.SmartContractServiceGrpc; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -73,7 +73,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - void onMakeRequest(com.hedera.hashgraph.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { + void onMakeRequest(com.hiero.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { var builder = ContractGetBytecodeQuery.newBuilder(); if (contractId != null) { builder.setContractID(contractId.toProtobuf()); @@ -88,17 +88,17 @@ ResponseHeader mapResponseHeader(Response response) { } @Override - QueryHeader mapRequestHeader(com.hedera.hashgraph.sdk.proto.Query request) { + QueryHeader mapRequestHeader(com.hiero.sdk.proto.Query request) { return request.getContractGetBytecode().getHeader(); } @Override - ByteString mapResponse(Response response, AccountId nodeId, com.hedera.hashgraph.sdk.proto.Query request) { + ByteString mapResponse(Response response, AccountId nodeId, com.hiero.sdk.proto.Query request) { return response.getContractGetBytecodeResponse().getBytecode(); } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return SmartContractServiceGrpc.getContractGetBytecodeMethod(); } } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/ContractCallQuery.java b/sdk/src/main/java/com/hiero/sdk/ContractCallQuery.java similarity index 92% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/ContractCallQuery.java rename to sdk/src/main/java/com/hiero/sdk/ContractCallQuery.java index 16b0d080e3..8fafe7ba97 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/ContractCallQuery.java +++ b/sdk/src/main/java/com/hiero/sdk/ContractCallQuery.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; -import com.hedera.hashgraph.sdk.proto.ContractCallLocalQuery; -import com.hedera.hashgraph.sdk.proto.QueryHeader; -import com.hedera.hashgraph.sdk.proto.Response; -import com.hedera.hashgraph.sdk.proto.ResponseHeader; -import com.hedera.hashgraph.sdk.proto.SmartContractServiceGrpc; +import com.hiero.sdk.proto.ContractCallLocalQuery; +import com.hiero.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.Response; +import com.hiero.sdk.proto.ResponseHeader; +import com.hiero.sdk.proto.SmartContractServiceGrpc; import io.grpc.MethodDescriptor; import java.util.Arrays; import java.util.Objects; @@ -216,7 +216,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - void onMakeRequest(com.hedera.hashgraph.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { + void onMakeRequest(com.hiero.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { var builder = ContractCallLocalQuery.newBuilder(); if (contractId != null) { builder.setContractID(contractId.toProtobuf()); @@ -236,17 +236,17 @@ ResponseHeader mapResponseHeader(Response response) { } @Override - QueryHeader mapRequestHeader(com.hedera.hashgraph.sdk.proto.Query request) { + QueryHeader mapRequestHeader(com.hiero.sdk.proto.Query request) { return request.getContractCallLocal().getHeader(); } @Override - ContractFunctionResult mapResponse(Response response, AccountId nodeId, com.hedera.hashgraph.sdk.proto.Query request) { + ContractFunctionResult mapResponse(Response response, AccountId nodeId, com.hiero.sdk.proto.Query request) { return new ContractFunctionResult(response.getContractCallLocal().getFunctionResult()); } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return SmartContractServiceGrpc.getContractCallLocalMethodMethod(); } } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/ContractCreateFlow.java b/sdk/src/main/java/com/hiero/sdk/ContractCreateFlow.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/ContractCreateFlow.java rename to sdk/src/main/java/com/hiero/sdk/ContractCreateFlow.java index c5cba04d4e..09a3ad5372 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/ContractCreateFlow.java +++ b/sdk/src/main/java/com/hiero/sdk/ContractCreateFlow.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import java.time.Duration; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/ContractCreateTransaction.java b/sdk/src/main/java/com/hiero/sdk/ContractCreateTransaction.java similarity index 96% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/ContractCreateTransaction.java rename to sdk/src/main/java/com/hiero/sdk/ContractCreateTransaction.java index a21f336ae9..0cfbcade7a 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/ContractCreateTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/ContractCreateTransaction.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.ContractCreateTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.SmartContractServiceGrpc; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.ContractCreateTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.SmartContractServiceGrpc; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import org.bouncycastle.util.Arrays; import java.time.Duration; @@ -128,7 +128,7 @@ public ContractCreateTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - ContractCreateTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + ContractCreateTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -138,7 +138,7 @@ public ContractCreateTransaction() { * * @param txBody protobuf TransactionBody */ - ContractCreateTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + ContractCreateTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -604,7 +604,7 @@ void initFromTransactionBody() { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return SmartContractServiceGrpc.getCreateContractMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/ContractDeleteTransaction.java b/sdk/src/main/java/com/hiero/sdk/ContractDeleteTransaction.java similarity index 90% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/ContractDeleteTransaction.java rename to sdk/src/main/java/com/hiero/sdk/ContractDeleteTransaction.java index 571840484d..1ae5aa56e1 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/ContractDeleteTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/ContractDeleteTransaction.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.ContractDeleteTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.SmartContractServiceGrpc; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.ContractDeleteTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.SmartContractServiceGrpc; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -56,7 +56,7 @@ public ContractDeleteTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - ContractDeleteTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + ContractDeleteTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -66,7 +66,7 @@ public ContractDeleteTransaction() { * * @param txBody protobuf TransactionBody */ - ContractDeleteTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + ContractDeleteTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -167,7 +167,7 @@ void validateChecksums(Client client) throws BadEntityIdException { @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return SmartContractServiceGrpc.getDeleteContractMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/ContractExecuteTransaction.java b/sdk/src/main/java/com/hiero/sdk/ContractExecuteTransaction.java similarity index 91% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/ContractExecuteTransaction.java rename to sdk/src/main/java/com/hiero/sdk/ContractExecuteTransaction.java index 5318948c45..ee56770096 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/ContractExecuteTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/ContractExecuteTransaction.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.ContractCallTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.SmartContractServiceGrpc; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.ContractCallTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.SmartContractServiceGrpc; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -62,7 +62,7 @@ public ContractExecuteTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - ContractExecuteTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + ContractExecuteTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -72,7 +72,7 @@ public ContractExecuteTransaction() { * * @param txBody protobuf TransactionBody */ - ContractExecuteTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + ContractExecuteTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -231,7 +231,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return SmartContractServiceGrpc.getContractCallMethodMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/ContractFunctionParameters.java b/sdk/src/main/java/com/hiero/sdk/ContractFunctionParameters.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/ContractFunctionParameters.java rename to sdk/src/main/java/com/hiero/sdk/ContractFunctionParameters.java index bbdca320f3..ede72bc376 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/ContractFunctionParameters.java +++ b/sdk/src/main/java/com/hiero/sdk/ContractFunctionParameters.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/ContractFunctionResult.java b/sdk/src/main/java/com/hiero/sdk/ContractFunctionResult.java similarity index 98% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/ContractFunctionResult.java rename to sdk/src/main/java/com/hiero/sdk/ContractFunctionResult.java index 32fb5ede74..07bbc959d5 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/ContractFunctionResult.java +++ b/sdk/src/main/java/com/hiero/sdk/ContractFunctionResult.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.esaulpaugh.headlong.abi.Tuple; import com.esaulpaugh.headlong.abi.TupleType; @@ -25,7 +25,7 @@ import com.google.protobuf.ByteString; import com.google.protobuf.BytesValue; import com.google.protobuf.Int64Value; -import com.hedera.hashgraph.sdk.proto.ContractFunctionResultOrBuilder; +import com.hiero.sdk.proto.ContractFunctionResultOrBuilder; import java.math.BigInteger; import java.nio.ByteBuffer; import java.util.ArrayList; @@ -424,10 +424,10 @@ private ByteString getByteString(int startIndex, int endIndex) { /** * Create the protobuf representation. * - * @return {@link com.hedera.hashgraph.sdk.proto.ContractFunctionResult} + * @return {@link com.hiero.sdk.proto.ContractFunctionResult} */ - com.hedera.hashgraph.sdk.proto.ContractFunctionResult toProtobuf() { - var contractFunctionResult = com.hedera.hashgraph.sdk.proto.ContractFunctionResult.newBuilder() + com.hiero.sdk.proto.ContractFunctionResult toProtobuf() { + var contractFunctionResult = com.hiero.sdk.proto.ContractFunctionResult.newBuilder() .setContractID(contractId.toProtobuf()) .setContractCallResult(rawResult) .setBloom(bloom) diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/ContractFunctionSelector.java b/sdk/src/main/java/com/hiero/sdk/ContractFunctionSelector.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/ContractFunctionSelector.java rename to sdk/src/main/java/com/hiero/sdk/ContractFunctionSelector.java index b10944efeb..44eae35cbf 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/ContractFunctionSelector.java +++ b/sdk/src/main/java/com/hiero/sdk/ContractFunctionSelector.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import org.bouncycastle.jcajce.provider.digest.Keccak; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/ContractId.java b/sdk/src/main/java/com/hiero/sdk/ContractId.java similarity index 98% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/ContractId.java rename to sdk/src/main/java/com/hiero/sdk/ContractId.java index ff486069b0..396162501f 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/ContractId.java +++ b/sdk/src/main/java/com/hiero/sdk/ContractId.java @@ -17,11 +17,11 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.ContractID; +import com.hiero.sdk.proto.ContractID; import java.util.Arrays; import java.util.Objects; import java.util.concurrent.CompletableFuture; @@ -280,8 +280,8 @@ public String getChecksum() { } @Override - com.hedera.hashgraph.sdk.proto.Key toProtobufKey() { - return com.hedera.hashgraph.sdk.proto.Key.newBuilder() + com.hiero.sdk.proto.Key toProtobufKey() { + return com.hiero.sdk.proto.Key.newBuilder() .setContractID(toProtobuf()) .build(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/ContractInfo.java b/sdk/src/main/java/com/hiero/sdk/ContractInfo.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/ContractInfo.java rename to sdk/src/main/java/com/hiero/sdk/ContractInfo.java index b9eb02bb29..001e142024 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/ContractInfo.java +++ b/sdk/src/main/java/com/hiero/sdk/ContractInfo.java @@ -17,11 +17,11 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse; +import com.hiero.sdk.proto.ContractGetInfoResponse; import java.time.Duration; import java.time.Instant; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/ContractInfoQuery.java b/sdk/src/main/java/com/hiero/sdk/ContractInfoQuery.java similarity index 82% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/ContractInfoQuery.java rename to sdk/src/main/java/com/hiero/sdk/ContractInfoQuery.java index 8af4b3d154..cb2c19ecb3 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/ContractInfoQuery.java +++ b/sdk/src/main/java/com/hiero/sdk/ContractInfoQuery.java @@ -17,13 +17,13 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.ContractGetInfoQuery; -import com.hedera.hashgraph.sdk.proto.QueryHeader; -import com.hedera.hashgraph.sdk.proto.Response; -import com.hedera.hashgraph.sdk.proto.ResponseHeader; -import com.hedera.hashgraph.sdk.proto.SmartContractServiceGrpc; +import com.hiero.sdk.proto.ContractGetInfoQuery; +import com.hiero.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.Response; +import com.hiero.sdk.proto.ResponseHeader; +import com.hiero.sdk.proto.SmartContractServiceGrpc; import io.grpc.MethodDescriptor; import java.util.Objects; import java.util.concurrent.CompletableFuture; @@ -83,7 +83,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - void onMakeRequest(com.hedera.hashgraph.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { + void onMakeRequest(com.hiero.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { var builder = ContractGetInfoQuery.newBuilder(); if (contractId != null) { builder.setContractID(contractId.toProtobuf()); @@ -98,17 +98,17 @@ ResponseHeader mapResponseHeader(Response response) { } @Override - QueryHeader mapRequestHeader(com.hedera.hashgraph.sdk.proto.Query request) { + QueryHeader mapRequestHeader(com.hiero.sdk.proto.Query request) { return request.getContractGetInfo().getHeader(); } @Override - ContractInfo mapResponse(Response response, AccountId nodeId, com.hedera.hashgraph.sdk.proto.Query request) { + ContractInfo mapResponse(Response response, AccountId nodeId, com.hiero.sdk.proto.Query request) { return ContractInfo.fromProtobuf(response.getContractGetInfo().getContractInfo()); } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return SmartContractServiceGrpc.getGetContractInfoMethod(); } } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/ContractLogInfo.java b/sdk/src/main/java/com/hiero/sdk/ContractLogInfo.java similarity index 91% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/ContractLogInfo.java rename to sdk/src/main/java/com/hiero/sdk/ContractLogInfo.java index aff32be966..de0ac0efe7 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/ContractLogInfo.java +++ b/sdk/src/main/java/com/hiero/sdk/ContractLogInfo.java @@ -17,12 +17,12 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.ContractLoginfo; +import com.hiero.sdk.proto.ContractLoginfo; import org.bouncycastle.util.encoders.Hex; import java.util.ArrayList; @@ -74,7 +74,7 @@ private ContractLogInfo(ContractId contractId, ByteString bloom, List storageChanges = new ArrayList<>(stateChangeProto.getStorageChangesCount()); // for (var storageChangeProto : stateChangeProto.getStorageChangesList()) { // storageChanges.add(StorageChange.fromProtobuf(storageChangeProto)); @@ -75,7 +75,7 @@ public class ContractStateChange { // * @throws InvalidProtocolBufferException when there is an issue with the protobuf // */ // public static ContractStateChange fromBytes(byte[] bytes) throws InvalidProtocolBufferException { - // return fromProtobuf(com.hedera.hashgraph.sdk.proto.ContractStateChange.parseFrom(bytes)); + // return fromProtobuf(com.hiero.sdk.proto.ContractStateChange.parseFrom(bytes)); // } // // /** @@ -83,8 +83,8 @@ public class ContractStateChange { // * // * @return the protobuf representation // */ - // com.hedera.hashgraph.sdk.proto.ContractStateChange toProtobuf() { - // var builder = com.hedera.hashgraph.sdk.proto.ContractStateChange.newBuilder() + // com.hiero.sdk.proto.ContractStateChange toProtobuf() { + // var builder = com.hiero.sdk.proto.ContractStateChange.newBuilder() // .setContractID(contractId.toProtobuf()); // for (var storageChange : storageChanges) { // builder.addStorageChanges(storageChange.toProtobuf()); diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/ContractUpdateTransaction.java b/sdk/src/main/java/com/hiero/sdk/ContractUpdateTransaction.java similarity index 95% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/ContractUpdateTransaction.java rename to sdk/src/main/java/com/hiero/sdk/ContractUpdateTransaction.java index bcc748da41..4ecf236b7b 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/ContractUpdateTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/ContractUpdateTransaction.java @@ -17,17 +17,17 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.BoolValue; import com.google.protobuf.Int32Value; import com.google.protobuf.InvalidProtocolBufferException; import com.google.protobuf.StringValue; -import com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.SmartContractServiceGrpc; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.ContractUpdateTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.SmartContractServiceGrpc; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import java.time.Duration; import java.time.Instant; @@ -101,7 +101,7 @@ public ContractUpdateTransaction() { * @param txs Compound list of transaction id's list of (AccountId, Transaction) record * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - ContractUpdateTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + ContractUpdateTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -110,7 +110,7 @@ public ContractUpdateTransaction() { * * @param txBody protobuf TransactionBody */ - ContractUpdateTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + ContractUpdateTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -509,7 +509,7 @@ void initFromTransactionBody() { /** * Build the correct transaction body. * - * @return {@link com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody builder } + * @return {@link com.hiero.sdk.proto.ContractUpdateTransactionBody builder } */ ContractUpdateTransactionBody.Builder build() { var builder = ContractUpdateTransactionBody.newBuilder(); @@ -574,7 +574,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return SmartContractServiceGrpc.getUpdateContractMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/Crypto.java b/sdk/src/main/java/com/hiero/sdk/Crypto.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/Crypto.java rename to sdk/src/main/java/com/hiero/sdk/Crypto.java index c2d2f831b9..797f518cd8 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/Crypto.java +++ b/sdk/src/main/java/com/hiero/sdk/Crypto.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import org.bouncycastle.asn1.sec.SECNamedCurves; import org.bouncycastle.asn1.x9.X9ECParameters; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/CustomFee.java b/sdk/src/main/java/com/hiero/sdk/CustomFee.java similarity index 91% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/CustomFee.java rename to sdk/src/main/java/com/hiero/sdk/CustomFee.java index a659e92878..c7e5269805 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/CustomFee.java +++ b/sdk/src/main/java/com/hiero/sdk/CustomFee.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.InvalidProtocolBufferException; @@ -54,7 +54,7 @@ abstract public class CustomFee { * @param customFee protobuf response object * @return the converted custom fee object */ - static CustomFee fromProtobufInner(com.hedera.hashgraph.sdk.proto.CustomFee customFee) { + static CustomFee fromProtobufInner(com.hiero.sdk.proto.CustomFee customFee) { switch (customFee.getFeeCase()) { case FIXED_FEE: return CustomFixedFee.fromProtobuf(customFee.getFixedFee()); @@ -70,7 +70,7 @@ static CustomFee fromProtobufInner(com.hedera.hashgraph.sdk.proto.CustomFee cust } } - static CustomFee fromProtobuf(com.hedera.hashgraph.sdk.proto.CustomFee customFee) { + static CustomFee fromProtobuf(com.hiero.sdk.proto.CustomFee customFee) { var outFee = fromProtobufInner(customFee); if (customFee.hasFeeCollectorAccountId()) { outFee.feeCollectorAccountId = AccountId.fromProtobuf(customFee.getFeeCollectorAccountId()); @@ -88,7 +88,7 @@ static CustomFee fromProtobuf(com.hedera.hashgraph.sdk.proto.CustomFee customFee * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ public static CustomFee fromBytes(byte[] bytes) throws InvalidProtocolBufferException { - return fromProtobuf(com.hedera.hashgraph.sdk.proto.CustomFee.parseFrom(bytes).toBuilder().build()); + return fromProtobuf(com.hiero.sdk.proto.CustomFee.parseFrom(bytes).toBuilder().build()); } /** @@ -148,7 +148,7 @@ void validateChecksums(Client client) throws BadEntityIdException { * @param customFeeBuilder the builder object * @return the protobuf */ - protected com.hedera.hashgraph.sdk.proto.CustomFee finishToProtobuf(com.hedera.hashgraph.sdk.proto.CustomFee.Builder customFeeBuilder) { + protected com.hiero.sdk.proto.CustomFee finishToProtobuf(com.hiero.sdk.proto.CustomFee.Builder customFeeBuilder) { if (feeCollectorAccountId != null) { customFeeBuilder.setFeeCollectorAccountId(feeCollectorAccountId.toProtobuf()); } @@ -161,7 +161,7 @@ protected com.hedera.hashgraph.sdk.proto.CustomFee finishToProtobuf(com.hedera.h * * @return the protobuf for the custom fee object */ - abstract com.hedera.hashgraph.sdk.proto.CustomFee toProtobuf(); + abstract com.hiero.sdk.proto.CustomFee toProtobuf(); /** * Create the byte array. diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/CustomFeeBase.java b/sdk/src/main/java/com/hiero/sdk/CustomFeeBase.java similarity index 98% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/CustomFeeBase.java rename to sdk/src/main/java/com/hiero/sdk/CustomFeeBase.java index 5f5c195b2c..ed7f9145ef 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/CustomFeeBase.java +++ b/sdk/src/main/java/com/hiero/sdk/CustomFeeBase.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import java.util.Objects; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/CustomFixedFee.java b/sdk/src/main/java/com/hiero/sdk/CustomFixedFee.java similarity index 95% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/CustomFixedFee.java rename to sdk/src/main/java/com/hiero/sdk/CustomFixedFee.java index e06c955129..e1160e9d42 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/CustomFixedFee.java +++ b/sdk/src/main/java/com/hiero/sdk/CustomFixedFee.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; -import com.hedera.hashgraph.sdk.proto.FixedFee; +import com.hiero.sdk.proto.FixedFee; import javax.annotation.Nullable; @@ -168,8 +168,8 @@ FixedFee toFixedFeeProtobuf() { } @Override - com.hedera.hashgraph.sdk.proto.CustomFee toProtobuf() { - var customFeeBuilder = com.hedera.hashgraph.sdk.proto.CustomFee.newBuilder() + com.hiero.sdk.proto.CustomFee toProtobuf() { + var customFeeBuilder = com.hiero.sdk.proto.CustomFee.newBuilder() .setFixedFee(toFixedFeeProtobuf()); return finishToProtobuf(customFeeBuilder); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/CustomFractionalFee.java b/sdk/src/main/java/com/hiero/sdk/CustomFractionalFee.java similarity index 95% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/CustomFractionalFee.java rename to sdk/src/main/java/com/hiero/sdk/CustomFractionalFee.java index c6d876a477..e88e632135 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/CustomFractionalFee.java +++ b/sdk/src/main/java/com/hiero/sdk/CustomFractionalFee.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.Fraction; -import com.hedera.hashgraph.sdk.proto.FractionalFee; +import com.hiero.sdk.proto.Fraction; +import com.hiero.sdk.proto.FractionalFee; import java.util.Objects; @@ -207,8 +207,8 @@ FractionalFee toFractionalFeeProtobuf() { } @Override - com.hedera.hashgraph.sdk.proto.CustomFee toProtobuf() { - var customFeeBuilder = com.hedera.hashgraph.sdk.proto.CustomFee.newBuilder() + com.hiero.sdk.proto.CustomFee toProtobuf() { + var customFeeBuilder = com.hiero.sdk.proto.CustomFee.newBuilder() .setFractionalFee(toFractionalFeeProtobuf()); return finishToProtobuf(customFeeBuilder); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/CustomRoyaltyFee.java b/sdk/src/main/java/com/hiero/sdk/CustomRoyaltyFee.java similarity index 94% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/CustomRoyaltyFee.java rename to sdk/src/main/java/com/hiero/sdk/CustomRoyaltyFee.java index 09e27e67e3..5cc19721a4 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/CustomRoyaltyFee.java +++ b/sdk/src/main/java/com/hiero/sdk/CustomRoyaltyFee.java @@ -17,11 +17,11 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; -import com.hedera.hashgraph.sdk.proto.Fraction; -import com.hedera.hashgraph.sdk.proto.RoyaltyFee; +import com.hiero.sdk.proto.Fraction; +import com.hiero.sdk.proto.RoyaltyFee; import javax.annotation.Nullable; import java.util.Objects; @@ -153,8 +153,8 @@ RoyaltyFee toRoyaltyFeeProtobuf() { } @Override - com.hedera.hashgraph.sdk.proto.CustomFee toProtobuf() { - var customFeeBuilder = com.hedera.hashgraph.sdk.proto.CustomFee.newBuilder() + com.hiero.sdk.proto.CustomFee toProtobuf() { + var customFeeBuilder = com.hiero.sdk.proto.CustomFee.newBuilder() .setRoyaltyFee(toRoyaltyFeeProtobuf()); return finishToProtobuf(customFeeBuilder); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/Delayer.java b/sdk/src/main/java/com/hiero/sdk/Delayer.java similarity index 98% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/Delayer.java rename to sdk/src/main/java/com/hiero/sdk/Delayer.java index b672c577d7..32d33913b7 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/Delayer.java +++ b/sdk/src/main/java/com/hiero/sdk/Delayer.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import java.time.Duration; import java.util.concurrent.CompletableFuture; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/DelegateContractId.java b/sdk/src/main/java/com/hiero/sdk/DelegateContractId.java similarity index 95% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/DelegateContractId.java rename to sdk/src/main/java/com/hiero/sdk/DelegateContractId.java index 30cf09a2b8..561a4fe828 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/DelegateContractId.java +++ b/sdk/src/main/java/com/hiero/sdk/DelegateContractId.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.ContractID; +import com.hiero.sdk.proto.ContractID; import javax.annotation.Nullable; import java.util.Objects; @@ -104,8 +104,8 @@ public static DelegateContractId fromBytes(byte[] bytes) throws InvalidProtocolB } @Override - com.hedera.hashgraph.sdk.proto.Key toProtobufKey() { - return com.hedera.hashgraph.sdk.proto.Key.newBuilder() + com.hiero.sdk.proto.Key toProtobufKey() { + return com.hiero.sdk.proto.Key.newBuilder() .setDelegatableContractId(toProtobuf()) .build(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/DurationConverter.java b/sdk/src/main/java/com/hiero/sdk/DurationConverter.java similarity index 83% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/DurationConverter.java rename to sdk/src/main/java/com/hiero/sdk/DurationConverter.java index 9e3b7e1d23..3a642b52d1 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/DurationConverter.java +++ b/sdk/src/main/java/com/hiero/sdk/DurationConverter.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import java.time.Duration; @@ -34,7 +34,7 @@ private DurationConverter() { * @param duration the duration protobuf * @return the duration object */ - static Duration fromProtobuf(com.hedera.hashgraph.sdk.proto.Duration duration) { + static Duration fromProtobuf(com.hiero.sdk.proto.Duration duration) { return Duration.ofSeconds(duration.getSeconds()); } @@ -44,8 +44,8 @@ static Duration fromProtobuf(com.hedera.hashgraph.sdk.proto.Duration duration) { * @param duration the duration object * @return the protobuf */ - static com.hedera.hashgraph.sdk.proto.Duration toProtobuf(Duration duration) { - return com.hedera.hashgraph.sdk.proto.Duration.newBuilder() + static com.hiero.sdk.proto.Duration toProtobuf(Duration duration) { + return com.hiero.sdk.proto.Duration.newBuilder() .setSeconds(duration.getSeconds()) .build(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/Endpoint.java b/sdk/src/main/java/com/hiero/sdk/Endpoint.java similarity index 97% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/Endpoint.java rename to sdk/src/main/java/com/hiero/sdk/Endpoint.java index f9f6642c09..300d2cb339 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/Endpoint.java +++ b/sdk/src/main/java/com/hiero/sdk/Endpoint.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; -import com.hedera.hashgraph.sdk.proto.ServiceEndpoint; +import com.hiero.sdk.proto.ServiceEndpoint; import java.util.Arrays; import javax.annotation.Nullable; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/EntityIdHelper.java b/sdk/src/main/java/com/hiero/sdk/EntityIdHelper.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/EntityIdHelper.java rename to sdk/src/main/java/com/hiero/sdk/EntityIdHelper.java index 0a07af183e..42a0f3a1a0 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/EntityIdHelper.java +++ b/sdk/src/main/java/com/hiero/sdk/EntityIdHelper.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.gson.JsonObject; import com.google.gson.JsonParser; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/EthereumFlow.java b/sdk/src/main/java/com/hiero/sdk/EthereumFlow.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/EthereumFlow.java rename to sdk/src/main/java/com/hiero/sdk/EthereumFlow.java index 8bbc116b10..8b1251bdef 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/EthereumFlow.java +++ b/sdk/src/main/java/com/hiero/sdk/EthereumFlow.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import java.time.Duration; import java.util.Arrays; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/EthereumTransaction.java b/sdk/src/main/java/com/hiero/sdk/EthereumTransaction.java similarity index 90% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/EthereumTransaction.java rename to sdk/src/main/java/com/hiero/sdk/EthereumTransaction.java index 37e2f08e75..1a76a7c021 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/EthereumTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/EthereumTransaction.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.EthereumTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.SmartContractServiceGrpc; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.EthereumTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.SmartContractServiceGrpc; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -48,12 +48,12 @@ public class EthereumTransaction extends Transaction { public EthereumTransaction() { } - EthereumTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + EthereumTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } - EthereumTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + EthereumTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -166,7 +166,7 @@ private EthereumTransactionBody.Builder build() { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return SmartContractServiceGrpc.getCallEthereumMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/EthereumTransactionData.java b/sdk/src/main/java/com/hiero/sdk/EthereumTransactionData.java similarity index 98% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/EthereumTransactionData.java rename to sdk/src/main/java/com/hiero/sdk/EthereumTransactionData.java index 7b459abec1..42057466a8 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/EthereumTransactionData.java +++ b/sdk/src/main/java/com/hiero/sdk/EthereumTransactionData.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.esaulpaugh.headlong.rlp.RLPDecoder; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/EthereumTransactionDataEip1559.java b/sdk/src/main/java/com/hiero/sdk/EthereumTransactionDataEip1559.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/EthereumTransactionDataEip1559.java rename to sdk/src/main/java/com/hiero/sdk/EthereumTransactionDataEip1559.java index 15890ced04..e207ffcfc7 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/EthereumTransactionDataEip1559.java +++ b/sdk/src/main/java/com/hiero/sdk/EthereumTransactionDataEip1559.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.esaulpaugh.headlong.rlp.RLPDecoder; import com.esaulpaugh.headlong.rlp.RLPEncoder; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/EthereumTransactionDataLegacy.java b/sdk/src/main/java/com/hiero/sdk/EthereumTransactionDataLegacy.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/EthereumTransactionDataLegacy.java rename to sdk/src/main/java/com/hiero/sdk/EthereumTransactionDataLegacy.java index 4e30727130..3b3f3488f3 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/EthereumTransactionDataLegacy.java +++ b/sdk/src/main/java/com/hiero/sdk/EthereumTransactionDataLegacy.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.esaulpaugh.headlong.rlp.RLPDecoder; import com.esaulpaugh.headlong.rlp.RLPEncoder; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/EvmAddress.java b/sdk/src/main/java/com/hiero/sdk/EvmAddress.java similarity index 95% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/EvmAddress.java rename to sdk/src/main/java/com/hiero/sdk/EvmAddress.java index 7606a938b1..feeacd1e29 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/EvmAddress.java +++ b/sdk/src/main/java/com/hiero/sdk/EvmAddress.java @@ -17,11 +17,11 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.AccountID; +import com.hiero.sdk.proto.AccountID; import org.bouncycastle.util.encoders.Hex; import javax.annotation.Nonnegative; @@ -78,7 +78,7 @@ public static EvmAddress fromBytes(byte[] bytes) { } @Override - com.hedera.hashgraph.sdk.proto.Key toProtobufKey() { + com.hiero.sdk.proto.Key toProtobufKey() { throw new UnsupportedOperationException("toProtobufKey() not implemented for EvmAddress"); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/ExchangeRate.java b/sdk/src/main/java/com/hiero/sdk/ExchangeRate.java similarity index 94% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/ExchangeRate.java rename to sdk/src/main/java/com/hiero/sdk/ExchangeRate.java index 8f17c1c2e9..1db01d2b72 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/ExchangeRate.java +++ b/sdk/src/main/java/com/hiero/sdk/ExchangeRate.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import java.time.Instant; @@ -59,7 +59,7 @@ public final class ExchangeRate { * @param pb the protobuf * @return the new exchange rate */ - static ExchangeRate fromProtobuf(com.hedera.hashgraph.sdk.proto.ExchangeRate pb) { + static ExchangeRate fromProtobuf(com.hiero.sdk.proto.ExchangeRate pb) { return new ExchangeRate( pb.getHbarEquiv(), pb.getCentEquiv(), diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/ExchangeRates.java b/sdk/src/main/java/com/hiero/sdk/ExchangeRates.java similarity index 90% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/ExchangeRates.java rename to sdk/src/main/java/com/hiero/sdk/ExchangeRates.java index 6e83ec5461..0554564f5c 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/ExchangeRates.java +++ b/sdk/src/main/java/com/hiero/sdk/ExchangeRates.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.InvalidProtocolBufferException; @@ -47,7 +47,7 @@ private ExchangeRates(ExchangeRate currentRate, ExchangeRate nextRate) { * @param pb the protobuf * @return the new exchange rates */ - static ExchangeRates fromProtobuf(com.hedera.hashgraph.sdk.proto.ExchangeRateSet pb) { + static ExchangeRates fromProtobuf(com.hiero.sdk.proto.ExchangeRateSet pb) { return new ExchangeRates( ExchangeRate.fromProtobuf(pb.getCurrentRate()), ExchangeRate.fromProtobuf(pb.getNextRate()) @@ -62,7 +62,7 @@ static ExchangeRates fromProtobuf(com.hedera.hashgraph.sdk.proto.ExchangeRateSet * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ public static ExchangeRates fromBytes(byte[] bytes) throws InvalidProtocolBufferException { - return fromProtobuf(com.hedera.hashgraph.sdk.proto.ExchangeRateSet.parseFrom(bytes).toBuilder().build()); + return fromProtobuf(com.hiero.sdk.proto.ExchangeRateSet.parseFrom(bytes).toBuilder().build()); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/Executable.java b/sdk/src/main/java/com/hiero/sdk/Executable.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/Executable.java rename to sdk/src/main/java/com/hiero/sdk/Executable.java index b8810ab6d5..535aa069a6 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/Executable.java +++ b/sdk/src/main/java/com/hiero/sdk/Executable.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import static com.hedera.hashgraph.sdk.FutureConverter.toCompletableFuture; +import static com.hiero.sdk.FutureConverter.toCompletableFuture; import com.google.common.annotations.VisibleForTesting; import com.google.protobuf.MessageLite; -import com.hedera.hashgraph.sdk.logger.LogLevel; -import com.hedera.hashgraph.sdk.logger.Logger; +import com.hiero.sdk.logger.LogLevel; +import com.hiero.sdk.logger.Logger; import io.grpc.CallOptions; import io.grpc.ClientCall; import io.grpc.MethodDescriptor; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/ExecutionState.java b/sdk/src/main/java/com/hiero/sdk/ExecutionState.java similarity index 97% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/ExecutionState.java rename to sdk/src/main/java/com/hiero/sdk/ExecutionState.java index 7eabf572d5..9d02adb355 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/ExecutionState.java +++ b/sdk/src/main/java/com/hiero/sdk/ExecutionState.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; /** * Enum for the execution states. diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/FeeAssessmentMethod.java b/sdk/src/main/java/com/hiero/sdk/FeeAssessmentMethod.java similarity index 98% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/FeeAssessmentMethod.java rename to sdk/src/main/java/com/hiero/sdk/FeeAssessmentMethod.java index ef6319ca75..04e7807518 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/FeeAssessmentMethod.java +++ b/sdk/src/main/java/com/hiero/sdk/FeeAssessmentMethod.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; /** * Enum for the fee assessment method. diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/FeeComponents.java b/sdk/src/main/java/com/hiero/sdk/FeeComponents.java similarity index 96% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/FeeComponents.java rename to sdk/src/main/java/com/hiero/sdk/FeeComponents.java index 10b7583c90..06770f3565 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/FeeComponents.java +++ b/sdk/src/main/java/com/hiero/sdk/FeeComponents.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.InvalidProtocolBufferException; @@ -83,7 +83,7 @@ public FeeComponents() { * @param feeComponents the protobuf * @return the fee component object */ - static FeeComponents fromProtobuf(com.hedera.hashgraph.sdk.proto.FeeComponents feeComponents) { + static FeeComponents fromProtobuf(com.hiero.sdk.proto.FeeComponents feeComponents) { return new FeeComponents() .setMin(feeComponents.getMin()) .setMax(feeComponents.getMax()) @@ -106,7 +106,7 @@ static FeeComponents fromProtobuf(com.hedera.hashgraph.sdk.proto.FeeComponents f * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ public static FeeComponents fromBytes(byte[] bytes) throws InvalidProtocolBufferException { - return fromProtobuf(com.hedera.hashgraph.sdk.proto.FeeComponents.parseFrom(bytes).toBuilder().build()); + return fromProtobuf(com.hiero.sdk.proto.FeeComponents.parseFrom(bytes).toBuilder().build()); } /** @@ -334,8 +334,8 @@ public FeeComponents setResponseDiskByte(long responseDiskByte) { * * @return the protobuf */ - com.hedera.hashgraph.sdk.proto.FeeComponents toProtobuf() { - return com.hedera.hashgraph.sdk.proto.FeeComponents.newBuilder() + com.hiero.sdk.proto.FeeComponents toProtobuf() { + return com.hiero.sdk.proto.FeeComponents.newBuilder() .setMin(getMin()) .setMax(getMax()) .setConstant(getConstant()) diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/FeeData.java b/sdk/src/main/java/com/hiero/sdk/FeeData.java similarity index 93% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/FeeData.java rename to sdk/src/main/java/com/hiero/sdk/FeeData.java index 633b65a857..ee4f8093eb 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/FeeData.java +++ b/sdk/src/main/java/com/hiero/sdk/FeeData.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.InvalidProtocolBufferException; @@ -49,7 +49,7 @@ public FeeData() { * @param feeData the protobuf * @return the fee data object */ - static FeeData fromProtobuf(com.hedera.hashgraph.sdk.proto.FeeData feeData) { + static FeeData fromProtobuf(com.hiero.sdk.proto.FeeData feeData) { return new FeeData() .setNodeData(feeData.hasNodedata() ? FeeComponents.fromProtobuf(feeData.getNodedata()) : null) .setNetworkData(feeData.hasNetworkdata() ? FeeComponents.fromProtobuf(feeData.getNetworkdata()) : null) @@ -65,7 +65,7 @@ static FeeData fromProtobuf(com.hedera.hashgraph.sdk.proto.FeeData feeData) { * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ public static FeeData fromBytes(byte[] bytes) throws InvalidProtocolBufferException { - return fromProtobuf(com.hedera.hashgraph.sdk.proto.FeeData.parseFrom(bytes).toBuilder().build()); + return fromProtobuf(com.hiero.sdk.proto.FeeData.parseFrom(bytes).toBuilder().build()); } /** @@ -142,7 +142,7 @@ FeeDataType getType() { /** * Assign the fee data type. - * {@link com.hedera.hashgraph.sdk.FeeDataType} + * {@link com.hiero.sdk.FeeDataType} * * @param type the fee data type * @return {@code this} @@ -157,8 +157,8 @@ FeeData setType(FeeDataType type) { * * @return the protobuf */ - com.hedera.hashgraph.sdk.proto.FeeData toProtobuf() { - var builder = com.hedera.hashgraph.sdk.proto.FeeData.newBuilder().setSubType(type.code); + com.hiero.sdk.proto.FeeData toProtobuf() { + var builder = com.hiero.sdk.proto.FeeData.newBuilder().setSubType(type.code); if (nodeData != null) { builder.setNodedata(nodeData.toProtobuf()); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/FeeDataType.java b/sdk/src/main/java/com/hiero/sdk/FeeDataType.java similarity index 97% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/FeeDataType.java rename to sdk/src/main/java/com/hiero/sdk/FeeDataType.java index 1632770ae4..b9460c19dd 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/FeeDataType.java +++ b/sdk/src/main/java/com/hiero/sdk/FeeDataType.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.SubType; +import com.hiero.sdk.proto.SubType; /** * Enum for the fee data types. diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/FeeSchedule.java b/sdk/src/main/java/com/hiero/sdk/FeeSchedule.java similarity index 93% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/FeeSchedule.java rename to sdk/src/main/java/com/hiero/sdk/FeeSchedule.java index f5afd5acd8..3f7f2277b4 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/FeeSchedule.java +++ b/sdk/src/main/java/com/hiero/sdk/FeeSchedule.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.InvalidProtocolBufferException; @@ -51,7 +51,7 @@ public FeeSchedule() { * @param feeSchedule the protobuf * @return the fee schedule */ - static FeeSchedule fromProtobuf(com.hedera.hashgraph.sdk.proto.FeeSchedule feeSchedule) { + static FeeSchedule fromProtobuf(com.hiero.sdk.proto.FeeSchedule feeSchedule) { FeeSchedule returnFeeSchedule = new FeeSchedule() .setExpirationTime(feeSchedule.hasExpiryTime() ? InstantConverter.fromProtobuf(feeSchedule.getExpiryTime()) : null); for (var transactionFeeSchedule : feeSchedule.getTransactionFeeScheduleList()) { @@ -69,7 +69,7 @@ static FeeSchedule fromProtobuf(com.hedera.hashgraph.sdk.proto.FeeSchedule feeSc * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ public static FeeSchedule fromBytes(byte[] bytes) throws InvalidProtocolBufferException { - return fromProtobuf(com.hedera.hashgraph.sdk.proto.FeeSchedule.parseFrom(bytes).toBuilder().build()); + return fromProtobuf(com.hiero.sdk.proto.FeeSchedule.parseFrom(bytes).toBuilder().build()); } /** @@ -137,8 +137,8 @@ public FeeSchedule setExpirationTime(@Nullable Instant expirationTime) { * * @return the protobuf */ - com.hedera.hashgraph.sdk.proto.FeeSchedule toProtobuf() { - var returnBuilder = com.hedera.hashgraph.sdk.proto.FeeSchedule.newBuilder(); + com.hiero.sdk.proto.FeeSchedule toProtobuf() { + var returnBuilder = com.hiero.sdk.proto.FeeSchedule.newBuilder(); if (expirationTime != null) { returnBuilder.setExpiryTime(InstantConverter.toSecondsProtobuf(expirationTime)); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/FeeSchedules.java b/sdk/src/main/java/com/hiero/sdk/FeeSchedules.java similarity index 97% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/FeeSchedules.java rename to sdk/src/main/java/com/hiero/sdk/FeeSchedules.java index cab329ca5e..ad6adb40c9 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/FeeSchedules.java +++ b/sdk/src/main/java/com/hiero/sdk/FeeSchedules.java @@ -17,11 +17,11 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule; +import com.hiero.sdk.proto.CurrentAndNextFeeSchedule; import javax.annotation.Nullable; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/FileAppendTransaction.java b/sdk/src/main/java/com/hiero/sdk/FileAppendTransaction.java similarity index 89% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/FileAppendTransaction.java rename to sdk/src/main/java/com/hiero/sdk/FileAppendTransaction.java index eaa87ba8de..dda6e3948e 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/FileAppendTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/FileAppendTransaction.java @@ -17,16 +17,16 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.FileAppendTransactionBody; -import com.hedera.hashgraph.sdk.proto.FileServiceGrpc; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionID; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.FileAppendTransactionBody; +import com.hiero.sdk.proto.FileServiceGrpc; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionID; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -62,7 +62,7 @@ public FileAppendTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - FileAppendTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + FileAppendTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); @@ -73,7 +73,7 @@ public FileAppendTransaction() { * * @param txBody protobuf TransactionBody */ - FileAppendTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + FileAppendTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -159,7 +159,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return FileServiceGrpc.getAppendContentMethod(); } @@ -192,7 +192,7 @@ void initFromTransactionBody() { /** * Build the transaction body. * - * @return {@link com.hedera.hashgraph.sdk.proto.FileAppendTransactionBody builder} + * @return {@link com.hiero.sdk.proto.FileAppendTransactionBody builder} */ FileAppendTransactionBody.Builder build() { var builder = FileAppendTransactionBody.newBuilder(); diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/FileContentsQuery.java b/sdk/src/main/java/com/hiero/sdk/FileContentsQuery.java similarity index 83% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/FileContentsQuery.java rename to sdk/src/main/java/com/hiero/sdk/FileContentsQuery.java index ad01e485df..f710ed98a7 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/FileContentsQuery.java +++ b/sdk/src/main/java/com/hiero/sdk/FileContentsQuery.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; -import com.hedera.hashgraph.sdk.proto.FileGetContentsQuery; -import com.hedera.hashgraph.sdk.proto.FileServiceGrpc; -import com.hedera.hashgraph.sdk.proto.QueryHeader; -import com.hedera.hashgraph.sdk.proto.Response; -import com.hedera.hashgraph.sdk.proto.ResponseHeader; +import com.hiero.sdk.proto.FileGetContentsQuery; +import com.hiero.sdk.proto.FileServiceGrpc; +import com.hiero.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.Response; +import com.hiero.sdk.proto.ResponseHeader; import io.grpc.MethodDescriptor; import java.util.Objects; import java.util.concurrent.CompletableFuture; @@ -89,7 +89,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - void onMakeRequest(com.hedera.hashgraph.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { + void onMakeRequest(com.hiero.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { var builder = FileGetContentsQuery.newBuilder(); if (fileId != null) { builder.setFileID(fileId.toProtobuf()); @@ -104,17 +104,17 @@ ResponseHeader mapResponseHeader(Response response) { } @Override - QueryHeader mapRequestHeader(com.hedera.hashgraph.sdk.proto.Query request) { + QueryHeader mapRequestHeader(com.hiero.sdk.proto.Query request) { return request.getFileGetContents().getHeader(); } @Override - ByteString mapResponse(Response response, AccountId nodeId, com.hedera.hashgraph.sdk.proto.Query request) { + ByteString mapResponse(Response response, AccountId nodeId, com.hiero.sdk.proto.Query request) { return response.getFileGetContents().getFileContents().getContents(); } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return FileServiceGrpc.getGetFileContentMethod(); } } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/FileCreateTransaction.java b/sdk/src/main/java/com/hiero/sdk/FileCreateTransaction.java similarity index 89% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/FileCreateTransaction.java rename to sdk/src/main/java/com/hiero/sdk/FileCreateTransaction.java index 39dc787be2..c179d7c669 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/FileCreateTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/FileCreateTransaction.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.FileCreateTransactionBody; -import com.hedera.hashgraph.sdk.proto.FileServiceGrpc; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.FileCreateTransactionBody; +import com.hiero.sdk.proto.FileServiceGrpc; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import java.time.Instant; @@ -66,7 +66,7 @@ public FileCreateTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - FileCreateTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + FileCreateTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -76,7 +76,7 @@ public FileCreateTransaction() { * * @param txBody protobuf TransactionBody */ - FileCreateTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + FileCreateTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -128,7 +128,7 @@ public Collection getKeys() { * paying for the transaction). Only one key must sign to delete the file, however. * *

To require more than one key to sign to delete a file, add them to a - * {@link com.hedera.hashgraph.sdk.KeyList} and pass that here. + * {@link com.hiero.sdk.KeyList} and pass that here. * *

The network currently requires a file to have at least one key (or key list or threshold key) * but this requirement may be lifted in the future. @@ -158,7 +158,7 @@ public ByteString getContents() { * *

Note that total size for a given transaction is limited to 6KiB (as of March 2020) by the * network; if you exceed this you may receive a {@link PrecheckStatusException} - * with {@link com.hedera.hashgraph.sdk.Status#TRANSACTION_OVERSIZE}. + * with {@link com.hiero.sdk.Status#TRANSACTION_OVERSIZE}. * *

In this case, you can use {@link FileAppendTransaction}, which automatically breaks the contents * into chunks for you, to append contents of arbitrary size. @@ -184,7 +184,7 @@ public FileCreateTransaction setContents(byte[] bytes) { * *

Note that total size for a given transaction is limited to 6KiB (as of March 2020) by the * network; if you exceed this you may receive a {@link PrecheckStatusException} - * with {@link com.hedera.hashgraph.sdk.Status#TRANSACTION_OVERSIZE}. + * with {@link com.hiero.sdk.Status#TRANSACTION_OVERSIZE}. * *

In this case, you can use {@link FileAppendTransaction}, which automatically breaks the contents * into chunks for you, to append contents of arbitrary size. @@ -222,7 +222,7 @@ public FileCreateTransaction setFileMemo(String memo) { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return FileServiceGrpc.getCreateFileMethod(); } @@ -249,7 +249,7 @@ void initFromTransactionBody() { /** * Build the transaction body. * - * @return {@link com.hedera.hashgraph.sdk.proto.FileCreateTransactionBody builder} + * @return {@link com.hiero.sdk.proto.FileCreateTransactionBody builder} */ FileCreateTransactionBody.Builder build() { var builder = FileCreateTransactionBody.newBuilder(); diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/FileDeleteTransaction.java b/sdk/src/main/java/com/hiero/sdk/FileDeleteTransaction.java similarity index 82% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/FileDeleteTransaction.java rename to sdk/src/main/java/com/hiero/sdk/FileDeleteTransaction.java index 556f1c101e..275486e7ae 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/FileDeleteTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/FileDeleteTransaction.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.FileDeleteTransactionBody; -import com.hedera.hashgraph.sdk.proto.FileServiceGrpc; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.FileDeleteTransactionBody; +import com.hiero.sdk.proto.FileServiceGrpc; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -39,7 +39,7 @@ * will throw {@link PrecheckStatusException} with a status of {@link Status#FILE_DELETED}. * *

Only one of the file's keys needs to sign to delete the file, unless the key you have is part - * of a {@link com.hedera.hashgraph.sdk.KeyList}. + * of a {@link com.hiero.sdk.KeyList}. */ public final class FileDeleteTransaction extends Transaction { @@ -59,7 +59,7 @@ public FileDeleteTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - FileDeleteTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + FileDeleteTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -69,7 +69,7 @@ public FileDeleteTransaction() { * * @param txBody protobuf TransactionBody */ - FileDeleteTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + FileDeleteTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -110,7 +110,7 @@ void initFromTransactionBody() { /** * Build the transaction body. * - * @return {@link com.hedera.hashgraph.sdk.proto.FileDeleteTransactionBody builder} + * @return {@link com.hiero.sdk.proto.FileDeleteTransactionBody builder} */ FileDeleteTransactionBody.Builder build() { var builder = FileDeleteTransactionBody.newBuilder(); @@ -129,7 +129,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return FileServiceGrpc.getDeleteFileMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/FileId.java b/sdk/src/main/java/com/hiero/sdk/FileId.java similarity index 98% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/FileId.java rename to sdk/src/main/java/com/hiero/sdk/FileId.java index a740b58e1c..e4ba08a9de 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/FileId.java +++ b/sdk/src/main/java/com/hiero/sdk/FileId.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.FileID; +import com.hiero.sdk.proto.FileID; import javax.annotation.Nonnegative; import javax.annotation.Nullable; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/FileInfo.java b/sdk/src/main/java/com/hiero/sdk/FileInfo.java similarity index 96% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/FileInfo.java rename to sdk/src/main/java/com/hiero/sdk/FileInfo.java index 10daa194e2..0c9e64c0ce 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/FileInfo.java +++ b/sdk/src/main/java/com/hiero/sdk/FileInfo.java @@ -17,11 +17,11 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.FileGetInfoResponse; +import com.hiero.sdk.proto.FileGetInfoResponse; import java.time.Instant; import javax.annotation.Nullable; @@ -135,7 +135,7 @@ FileGetInfoResponse.FileInfo toProtobuf() { .setLedgerId(ledgerId.toByteString()); if (keys != null) { - var keyList = com.hedera.hashgraph.sdk.proto.KeyList.newBuilder(); + var keyList = com.hiero.sdk.proto.KeyList.newBuilder(); for (Key key : keys) { keyList.addKeys(key.toProtobufKey()); diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/FileInfoQuery.java b/sdk/src/main/java/com/hiero/sdk/FileInfoQuery.java similarity index 83% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/FileInfoQuery.java rename to sdk/src/main/java/com/hiero/sdk/FileInfoQuery.java index 4d12d8a58b..74e6bf8a5b 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/FileInfoQuery.java +++ b/sdk/src/main/java/com/hiero/sdk/FileInfoQuery.java @@ -17,13 +17,13 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.FileGetInfoQuery; -import com.hedera.hashgraph.sdk.proto.FileServiceGrpc; -import com.hedera.hashgraph.sdk.proto.QueryHeader; -import com.hedera.hashgraph.sdk.proto.Response; -import com.hedera.hashgraph.sdk.proto.ResponseHeader; +import com.hiero.sdk.proto.FileGetInfoQuery; +import com.hiero.sdk.proto.FileServiceGrpc; +import com.hiero.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.Response; +import com.hiero.sdk.proto.ResponseHeader; import io.grpc.MethodDescriptor; import java.util.Objects; import java.util.concurrent.CompletableFuture; @@ -80,7 +80,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - void onMakeRequest(com.hedera.hashgraph.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { + void onMakeRequest(com.hiero.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { var builder = FileGetInfoQuery.newBuilder(); if (fileId != null) { builder.setFileID(fileId.toProtobuf()); @@ -95,17 +95,17 @@ ResponseHeader mapResponseHeader(Response response) { } @Override - QueryHeader mapRequestHeader(com.hedera.hashgraph.sdk.proto.Query request) { + QueryHeader mapRequestHeader(com.hiero.sdk.proto.Query request) { return request.getFileGetInfo().getHeader(); } @Override - FileInfo mapResponse(Response response, AccountId nodeId, com.hedera.hashgraph.sdk.proto.Query request) { + FileInfo mapResponse(Response response, AccountId nodeId, com.hiero.sdk.proto.Query request) { return FileInfo.fromProtobuf(response.getFileGetInfo().getFileInfo()); } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return FileServiceGrpc.getGetFileInfoMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/FileUpdateTransaction.java b/sdk/src/main/java/com/hiero/sdk/FileUpdateTransaction.java similarity index 93% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/FileUpdateTransaction.java rename to sdk/src/main/java/com/hiero/sdk/FileUpdateTransaction.java index 053a19634e..3409125f4d 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/FileUpdateTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/FileUpdateTransaction.java @@ -17,16 +17,16 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; import com.google.protobuf.StringValue; -import com.hedera.hashgraph.sdk.proto.FileServiceGrpc; -import com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.FileServiceGrpc; +import com.hiero.sdk.proto.FileUpdateTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import java.time.Instant; @@ -68,7 +68,7 @@ public FileUpdateTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - FileUpdateTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + FileUpdateTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -78,7 +78,7 @@ public FileUpdateTransaction() { * * @param txBody protobuf TransactionBody */ - FileUpdateTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + FileUpdateTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -278,7 +278,7 @@ void initFromTransactionBody() { /** * Build the correct transaction body. * - * @return {@link com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody builder } + * @return {@link com.hiero.sdk.proto.FileUpdateTransactionBody builder } */ FileUpdateTransactionBody.Builder build() { var builder = FileUpdateTransactionBody.newBuilder(); @@ -307,7 +307,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return FileServiceGrpc.getUpdateFileMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/FreezeTransaction.java b/sdk/src/main/java/com/hiero/sdk/FreezeTransaction.java similarity index 91% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/FreezeTransaction.java rename to sdk/src/main/java/com/hiero/sdk/FreezeTransaction.java index b78ca0e6df..1678983282 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/FreezeTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/FreezeTransaction.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.FreezeServiceGrpc; -import com.hedera.hashgraph.sdk.proto.FreezeTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.FreezeServiceGrpc; +import com.hiero.sdk.proto.FreezeTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import java.time.Instant; import java.time.OffsetTime; @@ -63,7 +63,7 @@ public FreezeTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - FreezeTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + FreezeTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -73,7 +73,7 @@ public FreezeTransaction() { * * @param txBody protobuf TransactionBody */ - FreezeTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + FreezeTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -234,7 +234,7 @@ public FreezeType getFreezeType() { /** * Assign the freeze type. - * {@link com.hedera.hashgraph.sdk.FreezeTransaction} + * {@link com.hiero.sdk.FreezeTransaction} * * @param freezeType the freeze type * @return {@code this} @@ -251,7 +251,7 @@ void validateChecksums(Client client) { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return FreezeServiceGrpc.getFreezeMethod(); } @@ -273,7 +273,7 @@ void initFromTransactionBody() { /** * Build the correct transaction body. * - * @return {@link com.hedera.hashgraph.sdk.proto.FreezeTransactionBody builder } + * @return {@link com.hiero.sdk.proto.FreezeTransactionBody builder } */ FreezeTransactionBody.Builder build() { var builder = FreezeTransactionBody.newBuilder(); diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/FreezeType.java b/sdk/src/main/java/com/hiero/sdk/FreezeType.java similarity index 78% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/FreezeType.java rename to sdk/src/main/java/com/hiero/sdk/FreezeType.java index 3921e0639e..a8376dbd63 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/FreezeType.java +++ b/sdk/src/main/java/com/hiero/sdk/FreezeType.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; /** * Enum for the freeze types. @@ -27,7 +27,7 @@ public enum FreezeType { * An (invalid) default value for this enum, to ensure the client explicitly sets * the intended type of freeze transaction. */ - UNKNOWN_FREEZE_TYPE(com.hedera.hashgraph.sdk.proto.FreezeType.UNKNOWN_FREEZE_TYPE), + UNKNOWN_FREEZE_TYPE(com.hiero.sdk.proto.FreezeType.UNKNOWN_FREEZE_TYPE), /** * Freezes the network at the specified time. The start_time field must be provided and @@ -35,39 +35,39 @@ public enum FreezeType { * fields will be ignored. This transaction does not perform any network changes or * upgrades and requires manual intervention to restart the network. */ - FREEZE_ONLY(com.hedera.hashgraph.sdk.proto.FreezeType.FREEZE_ONLY), + FREEZE_ONLY(com.hiero.sdk.proto.FreezeType.FREEZE_ONLY), /** * A non-freezing operation that initiates network wide preparation in advance of a * scheduled freeze upgrade. The update_file and file_hash fields must be provided and * valid. The start_time field may be omitted and any value present will be ignored. */ - PREPARE_UPGRADE(com.hedera.hashgraph.sdk.proto.FreezeType.PREPARE_UPGRADE), + PREPARE_UPGRADE(com.hiero.sdk.proto.FreezeType.PREPARE_UPGRADE), /** * Freezes the network at the specified time and performs the previously prepared * automatic upgrade across the entire network. */ - FREEZE_UPGRADE(com.hedera.hashgraph.sdk.proto.FreezeType.FREEZE_UPGRADE), + FREEZE_UPGRADE(com.hiero.sdk.proto.FreezeType.FREEZE_UPGRADE), /** * Aborts a pending network freeze operation. */ - FREEZE_ABORT(com.hedera.hashgraph.sdk.proto.FreezeType.FREEZE_ABORT), + FREEZE_ABORT(com.hiero.sdk.proto.FreezeType.FREEZE_ABORT), /** * Performs an immediate upgrade on auxilary services and containers providing * telemetry/metrics. Does not impact network operations. */ - TELEMETRY_UPGRADE(com.hedera.hashgraph.sdk.proto.FreezeType.TELEMETRY_UPGRADE); + TELEMETRY_UPGRADE(com.hiero.sdk.proto.FreezeType.TELEMETRY_UPGRADE); - final com.hedera.hashgraph.sdk.proto.FreezeType code; + final com.hiero.sdk.proto.FreezeType code; - FreezeType(com.hedera.hashgraph.sdk.proto.FreezeType code) { + FreezeType(com.hiero.sdk.proto.FreezeType code) { this.code = code; } - static FreezeType valueOf(com.hedera.hashgraph.sdk.proto.FreezeType code) { + static FreezeType valueOf(com.hiero.sdk.proto.FreezeType code) { return switch (code) { case UNKNOWN_FREEZE_TYPE -> UNKNOWN_FREEZE_TYPE; case FREEZE_ONLY -> FREEZE_ONLY; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/FutureConverter.java b/sdk/src/main/java/com/hiero/sdk/FutureConverter.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/FutureConverter.java rename to sdk/src/main/java/com/hiero/sdk/FutureConverter.java index f4e037e31c..4006d78ca3 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/FutureConverter.java +++ b/sdk/src/main/java/com/hiero/sdk/FutureConverter.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.util.concurrent.FutureCallback; import com.google.common.util.concurrent.Futures; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/Hbar.java b/sdk/src/main/java/com/hiero/sdk/Hbar.java similarity index 94% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/Hbar.java rename to sdk/src/main/java/com/hiero/sdk/Hbar.java index 5ccfc404fb..a621db40dc 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/Hbar.java +++ b/sdk/src/main/java/com/hiero/sdk/Hbar.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.Splitter; @@ -60,7 +60,7 @@ public Hbar(long amount) { /** * Constructs a new hbar of the specified value in the specified unit. - * {@link com.hedera.hashgraph.sdk.HbarUnit} + * {@link com.hiero.sdk.HbarUnit} * * @param amount the amount * @param unit the unit for amount @@ -84,7 +84,7 @@ public Hbar(BigDecimal amount) { /** * Constructs a new hbar of the specified value in the specified unit. - * {@link com.hedera.hashgraph.sdk.HbarUnit} + * {@link com.hiero.sdk.HbarUnit} * * @param amount the amount * @param unit the unit for amount @@ -112,7 +112,7 @@ private static HbarUnit getUnit(String symbolString) { * Converts the provided string into an amount of hbars. * * @param text The string representing the amount of Hbar - * @return {@link com.hedera.hashgraph.sdk.Hbar} + * @return {@link com.hiero.sdk.Hbar} */ public static Hbar fromString(CharSequence text) { var matcher = FROM_STRING_PATTERN.matcher(text); @@ -128,7 +128,7 @@ public static Hbar fromString(CharSequence text) { * * @param text The string representing the amount of set units * @param unit The unit to convert from to Hbar - * @return {@link com.hedera.hashgraph.sdk.Hbar} + * @return {@link com.hiero.sdk.Hbar} */ public static Hbar fromString(CharSequence text, HbarUnit unit) { return new Hbar(new BigDecimal(text.toString()), unit); @@ -138,7 +138,7 @@ public static Hbar fromString(CharSequence text, HbarUnit unit) { * Returns an Hbar whose value is equal to the specified long. * * @param hbars The value of Hbar - * @return {@link com.hedera.hashgraph.sdk.Hbar} + * @return {@link com.hiero.sdk.Hbar} */ public static Hbar from(long hbars) { return new Hbar(hbars, HbarUnit.HBAR); @@ -149,7 +149,7 @@ public static Hbar from(long hbars) { * * @param amount The long representing the amount of set units * @param unit The unit to convert from to Hbar - * @return {@link com.hedera.hashgraph.sdk.Hbar} + * @return {@link com.hiero.sdk.Hbar} */ public static Hbar from(long amount, HbarUnit unit) { return new Hbar(amount, unit); @@ -159,7 +159,7 @@ public static Hbar from(long amount, HbarUnit unit) { * Returns an Hbar whose value is equal to the specified long. * * @param hbars The BigDecimal representing the amount of Hbar - * @return {@link com.hedera.hashgraph.sdk.Hbar} + * @return {@link com.hiero.sdk.Hbar} */ public static Hbar from(BigDecimal hbars) { return new Hbar(hbars, HbarUnit.HBAR); @@ -170,7 +170,7 @@ public static Hbar from(BigDecimal hbars) { * * @param amount The BigDecimal representing the amount of set units * @param unit The unit to convert from to Hbar - * @return {@link com.hedera.hashgraph.sdk.Hbar} + * @return {@link com.hiero.sdk.Hbar} */ public static Hbar from(BigDecimal amount, HbarUnit unit) { return new Hbar(amount, unit); @@ -180,7 +180,7 @@ public static Hbar from(BigDecimal amount, HbarUnit unit) { * Returns an Hbar converted from the specified number of tinybars. * * @param tinybars The long representing the amount of tinybar - * @return {@link com.hedera.hashgraph.sdk.Hbar} + * @return {@link com.hiero.sdk.Hbar} */ public static Hbar fromTinybars(long tinybars) { return new Hbar(tinybars, HbarUnit.TINYBAR); diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/HbarAllowance.java b/sdk/src/main/java/com/hiero/sdk/HbarAllowance.java similarity index 97% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/HbarAllowance.java rename to sdk/src/main/java/com/hiero/sdk/HbarAllowance.java index 832f97d279..01bbf159ca 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/HbarAllowance.java +++ b/sdk/src/main/java/com/hiero/sdk/HbarAllowance.java @@ -17,12 +17,12 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.CryptoAllowance; -import com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowance; +import com.hiero.sdk.proto.CryptoAllowance; +import com.hiero.sdk.proto.GrantedCryptoAllowance; import javax.annotation.Nullable; import java.util.Objects; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/HbarUnit.java b/sdk/src/main/java/com/hiero/sdk/HbarUnit.java similarity index 98% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/HbarUnit.java rename to sdk/src/main/java/com/hiero/sdk/HbarUnit.java index e604b93bfe..6bb56a6453 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/HbarUnit.java +++ b/sdk/src/main/java/com/hiero/sdk/HbarUnit.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; /** * Common units of hbar; for the most part they follow SI prefix conventions. diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/HederaPreCheckStatusException.java b/sdk/src/main/java/com/hiero/sdk/HederaPreCheckStatusException.java similarity index 97% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/HederaPreCheckStatusException.java rename to sdk/src/main/java/com/hiero/sdk/HederaPreCheckStatusException.java index 73a5975327..155770948e 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/HederaPreCheckStatusException.java +++ b/sdk/src/main/java/com/hiero/sdk/HederaPreCheckStatusException.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import javax.annotation.Nullable; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/HederaReceiptStatusException.java b/sdk/src/main/java/com/hiero/sdk/HederaReceiptStatusException.java similarity index 97% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/HederaReceiptStatusException.java rename to sdk/src/main/java/com/hiero/sdk/HederaReceiptStatusException.java index 0ab1306152..7160f91dc7 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/HederaReceiptStatusException.java +++ b/sdk/src/main/java/com/hiero/sdk/HederaReceiptStatusException.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; /** * An Exception thrown on error status by {@link TransactionId#getReceipt(Client)}. diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/HederaTrustManager.java b/sdk/src/main/java/com/hiero/sdk/HederaTrustManager.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/HederaTrustManager.java rename to sdk/src/main/java/com/hiero/sdk/HederaTrustManager.java index dae46e2da9..35029fd2e6 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/HederaTrustManager.java +++ b/sdk/src/main/java/com/hiero/sdk/HederaTrustManager.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import org.bouncycastle.util.encoders.Hex; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/InstantConverter.java b/sdk/src/main/java/com/hiero/sdk/InstantConverter.java similarity index 94% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/InstantConverter.java rename to sdk/src/main/java/com/hiero/sdk/InstantConverter.java index 0380f114d7..7d7887bbc9 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/InstantConverter.java +++ b/sdk/src/main/java/com/hiero/sdk/InstantConverter.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.Timestamp; -import com.hedera.hashgraph.sdk.proto.TimestampSeconds; +import com.hiero.sdk.proto.Timestamp; +import com.hiero.sdk.proto.TimestampSeconds; import java.time.Duration; import java.time.Instant; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/Key.java b/sdk/src/main/java/com/hiero/sdk/Key.java similarity index 93% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/Key.java rename to sdk/src/main/java/com/hiero/sdk/Key.java index 234a959439..fdbe191949 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/Key.java +++ b/sdk/src/main/java/com/hiero/sdk/Key.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; import org.bouncycastle.asn1.ASN1ObjectIdentifier; @@ -52,7 +52,7 @@ public abstract class Key { * @param key the protobuf key of unknown type * @return the differentiated key */ - static Key fromProtobufKey(com.hedera.hashgraph.sdk.proto.Key key) { + static Key fromProtobufKey(com.hiero.sdk.proto.Key key) { switch (key.getKeyCase()) { case ED25519 -> { return new PublicKeyED25519(key.getEd25519().toByteArray()); @@ -86,7 +86,7 @@ static Key fromProtobufKey(com.hedera.hashgraph.sdk.proto.Key key) { /** * Serialize this key as a protobuf object */ - abstract com.hedera.hashgraph.sdk.proto.Key toProtobufKey(); + abstract com.hiero.sdk.proto.Key toProtobufKey(); /** * Create the byte array. @@ -105,6 +105,6 @@ public byte[] toBytes() { * @throws InvalidProtocolBufferException */ public static Key fromBytes(byte[] bytes) throws InvalidProtocolBufferException { - return fromProtobufKey(com.hedera.hashgraph.sdk.proto.Key.parseFrom(bytes)); + return fromProtobufKey(com.hiero.sdk.proto.Key.parseFrom(bytes)); } } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/KeyList.java b/sdk/src/main/java/com/hiero/sdk/KeyList.java similarity index 91% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/KeyList.java rename to sdk/src/main/java/com/hiero/sdk/KeyList.java index a0abd79e53..8df42806a0 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/KeyList.java +++ b/sdk/src/main/java/com/hiero/sdk/KeyList.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; -import com.hedera.hashgraph.sdk.proto.ThresholdKey; +import com.hiero.sdk.proto.ThresholdKey; import javax.annotation.Nullable; import java.util.ArrayList; @@ -97,7 +97,7 @@ public static KeyList withThreshold(int threshold) { * @param threshold the minimum number of keys that must sign * @return the key list */ - static KeyList fromProtobuf(com.hedera.hashgraph.sdk.proto.KeyList keyList, @Nullable Integer threshold) { + static KeyList fromProtobuf(com.hiero.sdk.proto.KeyList keyList, @Nullable Integer threshold) { var keys = (threshold != null ? new KeyList(threshold) : new KeyList()); for (var i = 0; i < keyList.getKeysCount(); ++i) { keys.add(Key.fromProtobufKey(keyList.getKeys(i))); @@ -194,21 +194,21 @@ public void clear() { } @Override - com.hedera.hashgraph.sdk.proto.Key toProtobufKey() { - var protoKeyList = com.hedera.hashgraph.sdk.proto.KeyList.newBuilder(); + com.hiero.sdk.proto.Key toProtobufKey() { + var protoKeyList = com.hiero.sdk.proto.KeyList.newBuilder(); for (var key : keys) { protoKeyList.addKeys(key.toProtobufKey()); } if (threshold != null) { - return com.hedera.hashgraph.sdk.proto.Key.newBuilder() + return com.hiero.sdk.proto.Key.newBuilder() .setThresholdKey(ThresholdKey.newBuilder() .setThreshold(threshold) .setKeys(protoKeyList)) .build(); } - return com.hedera.hashgraph.sdk.proto.Key.newBuilder() + return com.hiero.sdk.proto.Key.newBuilder() .setKeyList(protoKeyList) .build(); } @@ -218,8 +218,8 @@ com.hedera.hashgraph.sdk.proto.Key toProtobufKey() { * * @return the protobuf representation */ - com.hedera.hashgraph.sdk.proto.KeyList toProtobuf() { - var keyList = com.hedera.hashgraph.sdk.proto.KeyList.newBuilder(); + com.hiero.sdk.proto.KeyList toProtobuf() { + var keyList = com.hiero.sdk.proto.KeyList.newBuilder(); for (Key key : keys) { keyList.addKeys(key.toProtobufKey()); diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/Keystore.java b/sdk/src/main/java/com/hiero/sdk/Keystore.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/Keystore.java rename to sdk/src/main/java/com/hiero/sdk/Keystore.java index 6e94cb54e3..44a2c2f1b8 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/Keystore.java +++ b/sdk/src/main/java/com/hiero/sdk/Keystore.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.gson.Gson; import com.google.gson.JsonIOException; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/LedgerId.java b/sdk/src/main/java/com/hiero/sdk/LedgerId.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/LedgerId.java rename to sdk/src/main/java/com/hiero/sdk/LedgerId.java index fad6abfbd6..dcaaf3529d 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/LedgerId.java +++ b/sdk/src/main/java/com/hiero/sdk/LedgerId.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import org.bouncycastle.util.encoders.Hex; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/LiveHash.java b/sdk/src/main/java/com/hiero/sdk/LiveHash.java similarity index 90% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/LiveHash.java rename to sdk/src/main/java/com/hiero/sdk/LiveHash.java index ac0e1a9c2b..ff283bee1c 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/LiveHash.java +++ b/sdk/src/main/java/com/hiero/sdk/LiveHash.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.ByteString; @@ -76,7 +76,7 @@ private LiveHash(AccountId accountId, ByteString hash, KeyList keys, Duration du * @param liveHash the protobuf * @return the new live hash */ - protected static LiveHash fromProtobuf(com.hedera.hashgraph.sdk.proto.LiveHash liveHash) { + protected static LiveHash fromProtobuf(com.hiero.sdk.proto.LiveHash liveHash) { return new LiveHash( AccountId.fromProtobuf(liveHash.getAccountId()), liveHash.getHash(), @@ -93,7 +93,7 @@ protected static LiveHash fromProtobuf(com.hedera.hashgraph.sdk.proto.LiveHash l * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ public static LiveHash fromBytes(byte[] bytes) throws InvalidProtocolBufferException { - return fromProtobuf(com.hedera.hashgraph.sdk.proto.LiveHash.parseFrom(bytes).toBuilder().build()); + return fromProtobuf(com.hiero.sdk.proto.LiveHash.parseFrom(bytes).toBuilder().build()); } /** @@ -101,13 +101,13 @@ public static LiveHash fromBytes(byte[] bytes) throws InvalidProtocolBufferExcep * * @return the protobuf */ - protected com.hedera.hashgraph.sdk.proto.LiveHash toProtobuf() { - var keyList = com.hedera.hashgraph.sdk.proto.KeyList.newBuilder(); + protected com.hiero.sdk.proto.LiveHash toProtobuf() { + var keyList = com.hiero.sdk.proto.KeyList.newBuilder(); for (Key key : keys) { keyList.addKeys(key.toProtobufKey()); } - return com.hedera.hashgraph.sdk.proto.LiveHash.newBuilder() + return com.hiero.sdk.proto.LiveHash.newBuilder() .setAccountId(accountId.toProtobuf()) .setHash(hash) .setKeys(keyList) diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/LiveHashAddTransaction.java b/sdk/src/main/java/com/hiero/sdk/LiveHashAddTransaction.java similarity index 90% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/LiveHashAddTransaction.java rename to sdk/src/main/java/com/hiero/sdk/LiveHashAddTransaction.java index 97d52d5027..10d1130979 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/LiveHashAddTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/LiveHashAddTransaction.java @@ -17,16 +17,16 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.CryptoAddLiveHashTransactionBody; -import com.hedera.hashgraph.sdk.proto.CryptoServiceGrpc; -import com.hedera.hashgraph.sdk.proto.LiveHash; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.CryptoAddLiveHashTransactionBody; +import com.hiero.sdk.proto.CryptoServiceGrpc; +import com.hiero.sdk.proto.LiveHash; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import java.time.Duration; @@ -63,7 +63,7 @@ public LiveHashAddTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - LiveHashAddTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + LiveHashAddTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -194,7 +194,7 @@ void initFromTransactionBody() { /** * Build the correct transaction body. * - * @return {@link com.hedera.hashgraph.sdk.proto.CryptoAddLiveHashTransactionBody} + * @return {@link com.hiero.sdk.proto.CryptoAddLiveHashTransactionBody} */ CryptoAddLiveHashTransactionBody.Builder build() { var builder = CryptoAddLiveHashTransactionBody.newBuilder(); @@ -221,7 +221,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return CryptoServiceGrpc.getAddLiveHashMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/LiveHashDeleteTransaction.java b/sdk/src/main/java/com/hiero/sdk/LiveHashDeleteTransaction.java similarity index 87% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/LiveHashDeleteTransaction.java rename to sdk/src/main/java/com/hiero/sdk/LiveHashDeleteTransaction.java index ebbfc1a4e2..1094fda0a9 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/LiveHashDeleteTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/LiveHashDeleteTransaction.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.CryptoDeleteLiveHashTransactionBody; -import com.hedera.hashgraph.sdk.proto.CryptoServiceGrpc; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.CryptoDeleteLiveHashTransactionBody; +import com.hiero.sdk.proto.CryptoServiceGrpc; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -55,7 +55,7 @@ public LiveHashDeleteTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - LiveHashDeleteTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + LiveHashDeleteTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -130,7 +130,7 @@ void initFromTransactionBody() { /** * Build the correct transaction body. * - * @return {@link com.hedera.hashgraph.sdk.proto.CryptoAddLiveHashTransactionBody} + * @return {@link com.hiero.sdk.proto.CryptoAddLiveHashTransactionBody} */ CryptoDeleteLiveHashTransactionBody.Builder build() { var builder = CryptoDeleteLiveHashTransactionBody.newBuilder(); @@ -150,7 +150,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return CryptoServiceGrpc.getDeleteLiveHashMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/LiveHashQuery.java b/sdk/src/main/java/com/hiero/sdk/LiveHashQuery.java similarity index 82% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/LiveHashQuery.java rename to sdk/src/main/java/com/hiero/sdk/LiveHashQuery.java index 6d08e1425c..fd176e1d13 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/LiveHashQuery.java +++ b/sdk/src/main/java/com/hiero/sdk/LiveHashQuery.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; -import com.hedera.hashgraph.sdk.proto.CryptoGetLiveHashQuery; -import com.hedera.hashgraph.sdk.proto.CryptoServiceGrpc; -import com.hedera.hashgraph.sdk.proto.QueryHeader; -import com.hedera.hashgraph.sdk.proto.Response; -import com.hedera.hashgraph.sdk.proto.ResponseHeader; +import com.hiero.sdk.proto.CryptoGetLiveHashQuery; +import com.hiero.sdk.proto.CryptoServiceGrpc; +import com.hiero.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.Response; +import com.hiero.sdk.proto.ResponseHeader; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -95,7 +95,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - void onMakeRequest(com.hedera.hashgraph.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { + void onMakeRequest(com.hiero.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { var builder = CryptoGetLiveHashQuery.newBuilder(); if (accountId != null) { builder.setAccountID(accountId.toProtobuf()); @@ -106,7 +106,7 @@ void onMakeRequest(com.hedera.hashgraph.sdk.proto.Query.Builder queryBuilder, Qu } @Override - LiveHash mapResponse(Response response, AccountId nodeId, com.hedera.hashgraph.sdk.proto.Query request) { + LiveHash mapResponse(Response response, AccountId nodeId, com.hiero.sdk.proto.Query request) { return LiveHash.fromProtobuf(response.getCryptoGetLiveHash().getLiveHash()); } @@ -116,12 +116,12 @@ ResponseHeader mapResponseHeader(Response response) { } @Override - QueryHeader mapRequestHeader(com.hedera.hashgraph.sdk.proto.Query request) { + QueryHeader mapRequestHeader(com.hiero.sdk.proto.Query request) { return request.getCryptoGetLiveHash().getHeader(); } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return CryptoServiceGrpc.getCryptoGetBalanceMethod(); } } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/LockableList.java b/sdk/src/main/java/com/hiero/sdk/LockableList.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/LockableList.java rename to sdk/src/main/java/com/hiero/sdk/LockableList.java index a61ac8efc4..69e9644c77 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/LockableList.java +++ b/sdk/src/main/java/com/hiero/sdk/LockableList.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import java.util.*; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/MaxAttemptsExceededException.java b/sdk/src/main/java/com/hiero/sdk/MaxAttemptsExceededException.java similarity index 96% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/MaxAttemptsExceededException.java rename to sdk/src/main/java/com/hiero/sdk/MaxAttemptsExceededException.java index c2478f7925..5af1b08559 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/MaxAttemptsExceededException.java +++ b/sdk/src/main/java/com/hiero/sdk/MaxAttemptsExceededException.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import javax.annotation.Nullable; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/MaxQueryPaymentExceededException.java b/sdk/src/main/java/com/hiero/sdk/MaxQueryPaymentExceededException.java similarity index 98% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/MaxQueryPaymentExceededException.java rename to sdk/src/main/java/com/hiero/sdk/MaxQueryPaymentExceededException.java index ea78f3d1d8..e17a57c85d 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/MaxQueryPaymentExceededException.java +++ b/sdk/src/main/java/com/hiero/sdk/MaxQueryPaymentExceededException.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; /** * Signals that a query will cost more than a pre-configured maximum payment amount. diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/MirrorNetwork.java b/sdk/src/main/java/com/hiero/sdk/MirrorNetwork.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/MirrorNetwork.java rename to sdk/src/main/java/com/hiero/sdk/MirrorNetwork.java index 75df2b0337..208ce0b163 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/MirrorNetwork.java +++ b/sdk/src/main/java/com/hiero/sdk/MirrorNetwork.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import java.util.ArrayList; import java.util.HashMap; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/MirrorNode.java b/sdk/src/main/java/com/hiero/sdk/MirrorNode.java similarity index 97% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/MirrorNode.java rename to sdk/src/main/java/com/hiero/sdk/MirrorNode.java index 9ceec34db2..ae3e995f53 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/MirrorNode.java +++ b/sdk/src/main/java/com/hiero/sdk/MirrorNode.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import java.util.concurrent.ExecutorService; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/Mnemonic.java b/sdk/src/main/java/com/hiero/sdk/Mnemonic.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/Mnemonic.java rename to sdk/src/main/java/com/hiero/sdk/Mnemonic.java index 3a5004a0db..1d322d3b27 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/Mnemonic.java +++ b/sdk/src/main/java/com/hiero/sdk/Mnemonic.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.Joiner; -import com.hedera.hashgraph.sdk.utils.Bip32Utils; +import com.hiero.sdk.utils.Bip32Utils; import org.bouncycastle.crypto.digests.SHA256Digest; import org.bouncycastle.crypto.digests.SHA512Digest; import org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/Network.java b/sdk/src/main/java/com/hiero/sdk/Network.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/Network.java rename to sdk/src/main/java/com/hiero/sdk/Network.java index 350dc0a6d9..b8c97d1abd 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/Network.java +++ b/sdk/src/main/java/com/hiero/sdk/Network.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.io.ByteStreams; import com.google.protobuf.ByteString; @@ -256,7 +256,7 @@ protected Node createNodeFromNetworkEntry(Map.Entry entry) { * Pick 1/3 of the nodes sorted by health and expected delay from the network. * This is used by Query and Transaction for selecting node AccountId's. * - * @return {@link java.util.List} + * @return {@link java.util.List} */ synchronized List getNodeAccountIdsForExecute() throws InterruptedException { var nodes = getNumberOfMostHealthyNodes(getNumberOfNodesForRequest()); diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/NetworkName.java b/sdk/src/main/java/com/hiero/sdk/NetworkName.java similarity index 98% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/NetworkName.java rename to sdk/src/main/java/com/hiero/sdk/NetworkName.java index 6759c55b45..d8be9eb7e8 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/NetworkName.java +++ b/sdk/src/main/java/com/hiero/sdk/NetworkName.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; /** * Enum for the network names. diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/NetworkVersionInfo.java b/sdk/src/main/java/com/hiero/sdk/NetworkVersionInfo.java similarity index 96% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/NetworkVersionInfo.java rename to sdk/src/main/java/com/hiero/sdk/NetworkVersionInfo.java index 784033ae77..1b767001e0 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/NetworkVersionInfo.java +++ b/sdk/src/main/java/com/hiero/sdk/NetworkVersionInfo.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.NetworkGetVersionInfoResponse; +import com.hiero.sdk.proto.NetworkGetVersionInfoResponse; /** * Internal utility class. diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/NetworkVersionInfoQuery.java b/sdk/src/main/java/com/hiero/sdk/NetworkVersionInfoQuery.java similarity index 71% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/NetworkVersionInfoQuery.java rename to sdk/src/main/java/com/hiero/sdk/NetworkVersionInfoQuery.java index a457a02b6a..b453e55519 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/NetworkVersionInfoQuery.java +++ b/sdk/src/main/java/com/hiero/sdk/NetworkVersionInfoQuery.java @@ -17,13 +17,13 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.NetworkGetVersionInfoQuery; -import com.hedera.hashgraph.sdk.proto.NetworkServiceGrpc; -import com.hedera.hashgraph.sdk.proto.QueryHeader; -import com.hedera.hashgraph.sdk.proto.Response; -import com.hedera.hashgraph.sdk.proto.ResponseHeader; +import com.hiero.sdk.proto.NetworkGetVersionInfoQuery; +import com.hiero.sdk.proto.NetworkServiceGrpc; +import com.hiero.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.Response; +import com.hiero.sdk.proto.ResponseHeader; import io.grpc.MethodDescriptor; /** @@ -37,7 +37,7 @@ public NetworkVersionInfoQuery() { } @Override - void onMakeRequest(com.hedera.hashgraph.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { + void onMakeRequest(com.hiero.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { queryBuilder.setNetworkGetVersionInfo(NetworkGetVersionInfoQuery.newBuilder().setHeader(header)); } @@ -47,7 +47,7 @@ ResponseHeader mapResponseHeader(Response response) { } @Override - QueryHeader mapRequestHeader(com.hedera.hashgraph.sdk.proto.Query request) { + QueryHeader mapRequestHeader(com.hiero.sdk.proto.Query request) { return request.getNetworkGetVersionInfo().getHeader(); } @@ -57,12 +57,12 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - NetworkVersionInfo mapResponse(Response response, AccountId nodeId, com.hedera.hashgraph.sdk.proto.Query request) { + NetworkVersionInfo mapResponse(Response response, AccountId nodeId, com.hiero.sdk.proto.Query request) { return NetworkVersionInfo.fromProtobuf(response.getNetworkGetVersionInfo()); } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return NetworkServiceGrpc.getGetVersionInfoMethod(); } } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/NftId.java b/sdk/src/main/java/com/hiero/sdk/NftId.java similarity index 98% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/NftId.java rename to sdk/src/main/java/com/hiero/sdk/NftId.java index 33e0ca25b0..303c04cba4 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/NftId.java +++ b/sdk/src/main/java/com/hiero/sdk/NftId.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.NftID; +import com.hiero.sdk.proto.NftID; import javax.annotation.Nonnegative; import javax.annotation.Nullable; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/Node.java b/sdk/src/main/java/com/hiero/sdk/Node.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/Node.java rename to sdk/src/main/java/com/hiero/sdk/Node.java index 14406e94fa..b29c4d4547 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/Node.java +++ b/sdk/src/main/java/com/hiero/sdk/Node.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import io.grpc.ChannelCredentials; import io.grpc.TlsChannelCredentials; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/NodeAddress.java b/sdk/src/main/java/com/hiero/sdk/NodeAddress.java similarity index 96% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/NodeAddress.java rename to sdk/src/main/java/com/hiero/sdk/NodeAddress.java index 350455a03f..c5b7071f80 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/NodeAddress.java +++ b/sdk/src/main/java/com/hiero/sdk/NodeAddress.java @@ -17,11 +17,11 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.ByteString; -import com.hedera.hashgraph.sdk.proto.ServiceEndpoint; +import com.hiero.sdk.proto.ServiceEndpoint; import javax.annotation.Nullable; import java.nio.charset.StandardCharsets; @@ -80,7 +80,7 @@ public class NodeAddress implements Cloneable { * @param nodeAddress the protobuf * @return the new node */ - static NodeAddress fromProtobuf(com.hedera.hashgraph.sdk.proto.NodeAddress nodeAddress) { + static NodeAddress fromProtobuf(com.hiero.sdk.proto.NodeAddress nodeAddress) { var address = new ArrayList(nodeAddress.getServiceEndpointCount()); if (!nodeAddress.getIpAddress().isEmpty()) { @@ -269,8 +269,8 @@ public NodeAddress setStake(long stake) { * * @return the protobuf representation. */ - com.hedera.hashgraph.sdk.proto.NodeAddress toProtobuf() { - var builder = com.hedera.hashgraph.sdk.proto.NodeAddress.newBuilder() + com.hiero.sdk.proto.NodeAddress toProtobuf() { + var builder = com.hiero.sdk.proto.NodeAddress.newBuilder() .setNodeId(nodeId); if (certHash != null) { diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/NodeAddressBook.java b/sdk/src/main/java/com/hiero/sdk/NodeAddressBook.java similarity index 90% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/NodeAddressBook.java rename to sdk/src/main/java/com/hiero/sdk/NodeAddressBook.java index 2b53efdd2f..60e3e3def4 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/NodeAddressBook.java +++ b/sdk/src/main/java/com/hiero/sdk/NodeAddressBook.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.ByteString; @@ -75,7 +75,7 @@ static List cloneNodeAddresses(List addresses) { * @param book the protobuf * @return the new node address book */ - static NodeAddressBook fromProtobuf(com.hedera.hashgraph.sdk.proto.NodeAddressBook book) { + static NodeAddressBook fromProtobuf(com.hiero.sdk.proto.NodeAddressBook book) { var addresses = new ArrayList(book.getNodeAddressCount()); for (var address : book.getNodeAddressList()) { @@ -93,7 +93,7 @@ static NodeAddressBook fromProtobuf(com.hedera.hashgraph.sdk.proto.NodeAddressBo * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ public static NodeAddressBook fromBytes(ByteString bytes) throws InvalidProtocolBufferException { - return fromProtobuf(com.hedera.hashgraph.sdk.proto.NodeAddressBook.parseFrom(bytes)); + return fromProtobuf(com.hiero.sdk.proto.NodeAddressBook.parseFrom(bytes)); } /** @@ -101,8 +101,8 @@ public static NodeAddressBook fromBytes(ByteString bytes) throws InvalidProtocol * * @return the protobuf representation */ - com.hedera.hashgraph.sdk.proto.NodeAddressBook toProtobuf() { - var builder = com.hedera.hashgraph.sdk.proto.NodeAddressBook.newBuilder(); + com.hiero.sdk.proto.NodeAddressBook toProtobuf() { + var builder = com.hiero.sdk.proto.NodeAddressBook.newBuilder(); for (var nodeAdress : nodeAddresses) { builder.addNodeAddress(nodeAdress.toProtobuf()); diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/NodeCreateTransaction.java b/sdk/src/main/java/com/hiero/sdk/NodeCreateTransaction.java similarity index 95% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/NodeCreateTransaction.java rename to sdk/src/main/java/com/hiero/sdk/NodeCreateTransaction.java index 3f3be13b02..235bcc1d41 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/NodeCreateTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/NodeCreateTransaction.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.AddressBookServiceGrpc; -import com.hedera.hashgraph.sdk.proto.NodeCreateTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.AddressBookServiceGrpc; +import com.hiero.sdk.proto.NodeCreateTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import java.util.ArrayList; import java.util.LinkedHashMap; @@ -164,7 +164,7 @@ public NodeCreateTransaction() {} * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ NodeCreateTransaction( - LinkedHashMap> txs) + LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); @@ -175,7 +175,7 @@ public NodeCreateTransaction() {} * * @param txBody protobuf TransactionBody */ - NodeCreateTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + NodeCreateTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -352,7 +352,7 @@ public NodeCreateTransaction setAdminKey(Key adminKey) { /** * Build the transaction body. * - * @return {@link com.hedera.hashgraph.sdk.proto.NodeCreateTransactionBody} + * @return {@link com.hiero.sdk.proto.NodeCreateTransactionBody} */ NodeCreateTransactionBody.Builder build() { var builder = NodeCreateTransactionBody.newBuilder(); @@ -423,7 +423,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return AddressBookServiceGrpc.getCreateNodeMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/NodeDeleteTransaction.java b/sdk/src/main/java/com/hiero/sdk/NodeDeleteTransaction.java similarity index 87% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/NodeDeleteTransaction.java rename to sdk/src/main/java/com/hiero/sdk/NodeDeleteTransaction.java index 37c594f3c2..50d5b57d43 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/NodeDeleteTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/NodeDeleteTransaction.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.AddressBookServiceGrpc; -import com.hedera.hashgraph.sdk.proto.NodeDeleteTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.AddressBookServiceGrpc; +import com.hiero.sdk.proto.NodeDeleteTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import java.util.LinkedHashMap; @@ -69,7 +69,7 @@ public NodeDeleteTransaction() {} * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ NodeDeleteTransaction( - LinkedHashMap> txs) + LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); @@ -107,7 +107,7 @@ public NodeDeleteTransaction setNodeId(long nodeId) { /** * Build the transaction body. * - * @return {@link com.hedera.hashgraph.sdk.proto.NodeDeleteTransactionBody} + * @return {@link com.hiero.sdk.proto.NodeDeleteTransactionBody} */ NodeDeleteTransactionBody.Builder build() { var builder = NodeDeleteTransactionBody.newBuilder(); @@ -129,7 +129,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return AddressBookServiceGrpc.getDeleteNodeMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/NodeUpdateTransaction.java b/sdk/src/main/java/com/hiero/sdk/NodeUpdateTransaction.java similarity index 96% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/NodeUpdateTransaction.java rename to sdk/src/main/java/com/hiero/sdk/NodeUpdateTransaction.java index 7875b24106..11ac1c23fc 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/NodeUpdateTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/NodeUpdateTransaction.java @@ -17,17 +17,17 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.BytesValue; import com.google.protobuf.InvalidProtocolBufferException; import com.google.protobuf.StringValue; -import com.hedera.hashgraph.sdk.proto.AddressBookServiceGrpc; -import com.hedera.hashgraph.sdk.proto.NodeUpdateTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.AddressBookServiceGrpc; +import com.hiero.sdk.proto.NodeUpdateTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import java.util.ArrayList; import java.util.LinkedHashMap; @@ -191,7 +191,7 @@ public NodeUpdateTransaction() {} * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ NodeUpdateTransaction( - LinkedHashMap> txs) + LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); @@ -202,7 +202,7 @@ public NodeUpdateTransaction() {} * * @param txBody protobuf TransactionBody */ - NodeUpdateTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + NodeUpdateTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -409,7 +409,7 @@ public NodeUpdateTransaction setAdminKey(Key adminKey) { /** * Build the transaction body. * - * @return {@link com.hedera.hashgraph.sdk.proto.NodeUpdateTransactionBody} + * @return {@link com.hiero.sdk.proto.NodeUpdateTransactionBody} */ NodeUpdateTransactionBody.Builder build() { var builder = NodeUpdateTransactionBody.newBuilder(); @@ -486,7 +486,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return AddressBookServiceGrpc.getUpdateNodeMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/Pem.java b/sdk/src/main/java/com/hiero/sdk/Pem.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/Pem.java rename to sdk/src/main/java/com/hiero/sdk/Pem.java index f8ec830f86..9db6d43d01 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/Pem.java +++ b/sdk/src/main/java/com/hiero/sdk/Pem.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import org.bouncycastle.asn1.ASN1Primitive; import org.bouncycastle.asn1.nist.NISTObjectIdentifiers; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/PendingAirdropId.java b/sdk/src/main/java/com/hiero/sdk/PendingAirdropId.java similarity index 92% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/PendingAirdropId.java rename to sdk/src/main/java/com/hiero/sdk/PendingAirdropId.java index 2a826289d1..82a2e049de 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/PendingAirdropId.java +++ b/sdk/src/main/java/com/hiero/sdk/PendingAirdropId.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import javax.annotation.Nonnull; @@ -90,7 +90,7 @@ public PendingAirdropId setNftId(@Nullable NftId nftId) { return this; } - static PendingAirdropId fromProtobuf(com.hedera.hashgraph.sdk.proto.PendingAirdropId pendingAirdropId) { + static PendingAirdropId fromProtobuf(com.hiero.sdk.proto.PendingAirdropId pendingAirdropId) { if (pendingAirdropId.hasFungibleTokenType()) { return new PendingAirdropId(AccountId.fromProtobuf(pendingAirdropId.getSenderId()), AccountId.fromProtobuf(pendingAirdropId.getReceiverId()), @@ -102,8 +102,8 @@ static PendingAirdropId fromProtobuf(com.hedera.hashgraph.sdk.proto.PendingAirdr } } - com.hedera.hashgraph.sdk.proto.PendingAirdropId toProtobuf() { - var builder = com.hedera.hashgraph.sdk.proto.PendingAirdropId.newBuilder() + com.hiero.sdk.proto.PendingAirdropId toProtobuf() { + var builder = com.hiero.sdk.proto.PendingAirdropId.newBuilder() .setSenderId(sender.toProtobuf()) .setReceiverId(receiver.toProtobuf()); diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/PendingAirdropLogic.java b/sdk/src/main/java/com/hiero/sdk/PendingAirdropLogic.java similarity index 95% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/PendingAirdropLogic.java rename to sdk/src/main/java/com/hiero/sdk/PendingAirdropLogic.java index c8fafb043c..a5583331ad 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/PendingAirdropLogic.java +++ b/sdk/src/main/java/com/hiero/sdk/PendingAirdropLogic.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; import java.util.ArrayList; @@ -39,7 +39,7 @@ protected PendingAirdropLogic() {} * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ PendingAirdropLogic( - LinkedHashMap> txs) + LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); } @@ -49,7 +49,7 @@ protected PendingAirdropLogic() {} * * @param txBody protobuf TransactionBody */ - PendingAirdropLogic(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + PendingAirdropLogic(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/PendingAirdropRecord.java b/sdk/src/main/java/com/hiero/sdk/PendingAirdropRecord.java similarity index 83% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/PendingAirdropRecord.java rename to sdk/src/main/java/com/hiero/sdk/PendingAirdropRecord.java index ebff20ab96..2970b4fdb1 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/PendingAirdropRecord.java +++ b/sdk/src/main/java/com/hiero/sdk/PendingAirdropRecord.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; -import com.hedera.hashgraph.sdk.proto.PendingAirdropValue; +import com.hiero.sdk.proto.PendingAirdropValue; public class PendingAirdropRecord { private final PendingAirdropId pendingAirdropId; @@ -39,14 +39,14 @@ public long getPendingAirdropAmount() { return pendingAirdropAmount; } - com.hedera.hashgraph.sdk.proto.PendingAirdropRecord toProtobuf() { - return com.hedera.hashgraph.sdk.proto.PendingAirdropRecord.newBuilder() + com.hiero.sdk.proto.PendingAirdropRecord toProtobuf() { + return com.hiero.sdk.proto.PendingAirdropRecord.newBuilder() .setPendingAirdropId(this.pendingAirdropId.toProtobuf()) .setPendingAirdropValue(PendingAirdropValue.newBuilder().setAmount(pendingAirdropAmount)) .build(); } - static PendingAirdropRecord fromProtobuf(com.hedera.hashgraph.sdk.proto.PendingAirdropRecord pendingAirdropRecord) { + static PendingAirdropRecord fromProtobuf(com.hiero.sdk.proto.PendingAirdropRecord pendingAirdropRecord) { return new PendingAirdropRecord( PendingAirdropId.fromProtobuf(pendingAirdropRecord.getPendingAirdropId()), pendingAirdropRecord.getPendingAirdropValue().getAmount()); diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/PrecheckStatusException.java b/sdk/src/main/java/com/hiero/sdk/PrecheckStatusException.java similarity index 98% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/PrecheckStatusException.java rename to sdk/src/main/java/com/hiero/sdk/PrecheckStatusException.java index 10ac1ace55..8ae5696493 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/PrecheckStatusException.java +++ b/sdk/src/main/java/com/hiero/sdk/PrecheckStatusException.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import javax.annotation.Nullable; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/PrivateKey.java b/sdk/src/main/java/com/hiero/sdk/PrivateKey.java similarity index 98% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/PrivateKey.java rename to sdk/src/main/java/com/hiero/sdk/PrivateKey.java index 7152727c35..697e68fdc4 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/PrivateKey.java +++ b/sdk/src/main/java/com/hiero/sdk/PrivateKey.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import org.bouncycastle.asn1.pkcs.PrivateKeyInfo; import org.bouncycastle.asn1.sec.ECPrivateKey; @@ -251,7 +251,7 @@ private static PrivateKey fromPrivateKeyInfo(PrivateKeyInfo privateKeyInfo) { * This will read the first "PRIVATE KEY" section in the stream as an Ed25519 private key. * * @param pemFile The Reader containing the pem file - * @return {@link com.hedera.hashgraph.sdk.PrivateKey} + * @return {@link com.hiero.sdk.PrivateKey} * @throws IOException if one occurred while reading. * @throws BadKeyException if no "PRIVATE KEY" section was found or the key was not an Ed25519 * private key. @@ -281,7 +281,7 @@ public static PrivateKey readPem(Reader pemFile) throws IOException { * * @param pemFile the PEM encoded file * @param password the password to decrypt the PEM file; if null or empty, no decryption is performed. - * @return {@link com.hedera.hashgraph.sdk.PrivateKey} + * @return {@link com.hiero.sdk.PrivateKey} * @throws IOException if one occurred while reading the PEM file * @throws BadKeyException if no "ENCRYPTED PRIVATE KEY" or "PRIVATE KEY" section was found, * if the passphrase is wrong or the key was not an Ed25519 private key. @@ -294,7 +294,7 @@ public static PrivateKey readPem(Reader pemFile, @Nullable String password) thro * Parse a private key from a PEM encoded string. * * @param pemEncoded The String containing the pem - * @return {@link com.hedera.hashgraph.sdk.PrivateKey} + * @return {@link com.hiero.sdk.PrivateKey} * @throws IOException if the PEM string was improperly encoded * @throws BadKeyException if no "PRIVATE KEY" section was found or the key was not an Ed25519 * private key. @@ -311,7 +311,7 @@ public static PrivateKey fromPem(String pemEncoded) throws IOException { * * @param encodedPem the encoded PEM string * @param password the password to decrypt the PEM file; if null or empty, no decryption is performed. - * @return {@link com.hedera.hashgraph.sdk.PrivateKey} + * @return {@link com.hiero.sdk.PrivateKey} * @throws IOException if the PEM string was improperly encoded * @throws BadKeyException if no "ENCRYPTED PRIVATE KEY" or "PRIVATE KEY" section was found, * if the passphrase is wrong or the key was not an Ed25519 private key. @@ -451,7 +451,7 @@ public AccountId toAccountId(@Nonnegative long shard, @Nonnegative long realm) { } @Override - com.hedera.hashgraph.sdk.proto.Key toProtobufKey() { + com.hiero.sdk.proto.Key toProtobufKey() { // Forward to the corresponding public key. return getPublicKey().toProtobufKey(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/PrivateKeyECDSA.java b/sdk/src/main/java/com/hiero/sdk/PrivateKeyECDSA.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/PrivateKeyECDSA.java rename to sdk/src/main/java/com/hiero/sdk/PrivateKeyECDSA.java index 315bda757b..e7c289735a 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/PrivateKeyECDSA.java +++ b/sdk/src/main/java/com/hiero/sdk/PrivateKeyECDSA.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.utils.Bip32Utils; +import com.hiero.sdk.utils.Bip32Utils; import org.bouncycastle.asn1.*; import org.bouncycastle.asn1.pkcs.PrivateKeyInfo; import org.bouncycastle.asn1.sec.ECPrivateKey; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/PrivateKeyED25519.java b/sdk/src/main/java/com/hiero/sdk/PrivateKeyED25519.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/PrivateKeyED25519.java rename to sdk/src/main/java/com/hiero/sdk/PrivateKeyED25519.java index 5cbd61f0cd..424bb04579 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/PrivateKeyED25519.java +++ b/sdk/src/main/java/com/hiero/sdk/PrivateKeyED25519.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.utils.Bip32Utils; +import com.hiero.sdk.utils.Bip32Utils; import org.bouncycastle.asn1.ASN1OctetString; import org.bouncycastle.asn1.DEROctetString; import org.bouncycastle.asn1.pkcs.PrivateKeyInfo; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/PrngTransaction.java b/sdk/src/main/java/com/hiero/sdk/PrngTransaction.java similarity index 90% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/PrngTransaction.java rename to sdk/src/main/java/com/hiero/sdk/PrngTransaction.java index ba30ba3b45..7890086059 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/PrngTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/PrngTransaction.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.*; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.*; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -88,7 +88,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return UtilServiceGrpc.getPrngMethod(); } } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/ProxyStaker.java b/sdk/src/main/java/com/hiero/sdk/ProxyStaker.java similarity index 93% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/ProxyStaker.java rename to sdk/src/main/java/com/hiero/sdk/ProxyStaker.java index 8285607561..7c30ff0cb2 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/ProxyStaker.java +++ b/sdk/src/main/java/com/hiero/sdk/ProxyStaker.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; /** * Information about a single account that is proxy staking. @@ -50,7 +50,7 @@ private ProxyStaker(AccountId accountId, long amount) { * @param proxyStaker the protobuf * @return the new proxy staker object */ - static ProxyStaker fromProtobuf(com.hedera.hashgraph.sdk.proto.ProxyStaker proxyStaker) { + static ProxyStaker fromProtobuf(com.hiero.sdk.proto.ProxyStaker proxyStaker) { return new ProxyStaker(AccountId.fromProtobuf(proxyStaker.getAccountID()), proxyStaker.getAmount()); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/PublicKey.java b/sdk/src/main/java/com/hiero/sdk/PublicKey.java similarity index 97% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/PublicKey.java rename to sdk/src/main/java/com/hiero/sdk/PublicKey.java index 0b338bcaee..8ace37696d 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/PublicKey.java +++ b/sdk/src/main/java/com/hiero/sdk/PublicKey.java @@ -17,11 +17,11 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.SignaturePair; +import com.hiero.sdk.proto.SignaturePair; import org.bouncycastle.asn1.x509.AlgorithmIdentifier; import org.bouncycastle.asn1.x509.SubjectPublicKeyInfo; import org.bouncycastle.math.ec.rfc8032.Ed25519; @@ -153,7 +153,7 @@ private static PublicKey fromSubjectKeyInfo(SubjectPublicKeyInfo subjectPublicKe static PublicKey fromAliasBytes(ByteString aliasBytes) { if (!aliasBytes.isEmpty()) { try { - var key = Key.fromProtobufKey(com.hedera.hashgraph.sdk.proto.Key.parseFrom(aliasBytes)); + var key = Key.fromProtobufKey(com.hiero.sdk.proto.Key.parseFrom(aliasBytes)); return (key instanceof PublicKey) ? ((PublicKey) key) : null; } catch (InvalidProtocolBufferException ignored) { } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/PublicKeyECDSA.java b/sdk/src/main/java/com/hiero/sdk/PublicKeyECDSA.java similarity index 95% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/PublicKeyECDSA.java rename to sdk/src/main/java/com/hiero/sdk/PublicKeyECDSA.java index 06a50bea45..c523646aa7 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/PublicKeyECDSA.java +++ b/sdk/src/main/java/com/hiero/sdk/PublicKeyECDSA.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; -import com.hedera.hashgraph.sdk.proto.SignaturePair; +import com.hiero.sdk.proto.SignaturePair; import org.bouncycastle.asn1.x509.AlgorithmIdentifier; import org.bouncycastle.asn1.x509.SubjectPublicKeyInfo; import org.bouncycastle.crypto.params.ECPublicKeyParameters; @@ -30,7 +30,7 @@ import java.math.BigInteger; import java.util.Arrays; -import static com.hedera.hashgraph.sdk.Crypto.calcKeccak256; +import static com.hiero.sdk.Crypto.calcKeccak256; /** * Encapsulate the ECDSA public key. @@ -101,8 +101,8 @@ public boolean verify(byte[] message, byte[] signature) { } @Override - com.hedera.hashgraph.sdk.proto.Key toProtobufKey() { - return com.hedera.hashgraph.sdk.proto.Key.newBuilder() + com.hiero.sdk.proto.Key toProtobufKey() { + return com.hiero.sdk.proto.Key.newBuilder() .setECDSASecp256K1(ByteString.copyFrom(keyData)) .build(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/PublicKeyED25519.java b/sdk/src/main/java/com/hiero/sdk/PublicKeyED25519.java similarity index 95% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/PublicKeyED25519.java rename to sdk/src/main/java/com/hiero/sdk/PublicKeyED25519.java index 08c8accbbb..0ed1e4d6bb 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/PublicKeyED25519.java +++ b/sdk/src/main/java/com/hiero/sdk/PublicKeyED25519.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; -import com.hedera.hashgraph.sdk.proto.SignaturePair; +import com.hiero.sdk.proto.SignaturePair; import org.bouncycastle.asn1.x509.AlgorithmIdentifier; import org.bouncycastle.asn1.x509.SubjectPublicKeyInfo; import org.bouncycastle.math.ec.rfc8032.Ed25519; @@ -81,8 +81,8 @@ public boolean verify(byte[] message, byte[] signature) { } @Override - com.hedera.hashgraph.sdk.proto.Key toProtobufKey() { - return com.hedera.hashgraph.sdk.proto.Key.newBuilder() + com.hiero.sdk.proto.Key toProtobufKey() { + return com.hiero.sdk.proto.Key.newBuilder() .setEd25519(ByteString.copyFrom(keyData)) .build(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/Query.java b/sdk/src/main/java/com/hiero/sdk/Query.java similarity index 93% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/Query.java rename to sdk/src/main/java/com/hiero/sdk/Query.java index aa833af0e4..8c8dcff057 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/Query.java +++ b/sdk/src/main/java/com/hiero/sdk/Query.java @@ -17,16 +17,16 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.QueryHeader; -import com.hedera.hashgraph.sdk.proto.Response; -import com.hedera.hashgraph.sdk.proto.ResponseHeader; -import com.hedera.hashgraph.sdk.proto.ResponseType; -import com.hedera.hashgraph.sdk.proto.Transaction; -import com.hedera.hashgraph.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.Response; +import com.hiero.sdk.proto.ResponseHeader; +import com.hiero.sdk.proto.ResponseType; +import com.hiero.sdk.proto.Transaction; +import com.hiero.sdk.proto.TransactionBody; import io.grpc.MethodDescriptor; import java.time.Duration; import java.time.Instant; @@ -46,8 +46,8 @@ * @param The output type of the query. * @param The type of the query itself. Used to enable chaining. */ -public abstract class Query> extends Executable { - private final com.hedera.hashgraph.sdk.proto.Query.Builder builder; +public abstract class Query> extends Executable { + private final com.hiero.sdk.proto.Query.Builder builder; private final QueryHeader.Builder headerBuilder; @@ -77,7 +77,7 @@ public abstract class Query> extends Executable getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return Query.this.getMethodDescriptor(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/ReceiptStatusException.java b/sdk/src/main/java/com/hiero/sdk/ReceiptStatusException.java similarity index 98% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/ReceiptStatusException.java rename to sdk/src/main/java/com/hiero/sdk/ReceiptStatusException.java index 2792f5e205..033a270b4f 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/ReceiptStatusException.java +++ b/sdk/src/main/java/com/hiero/sdk/ReceiptStatusException.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import javax.annotation.Nullable; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/RequestType.java b/sdk/src/main/java/com/hiero/sdk/RequestType.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/RequestType.java rename to sdk/src/main/java/com/hiero/sdk/RequestType.java index c532e1eca4..e5a9947be5 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/RequestType.java +++ b/sdk/src/main/java/com/hiero/sdk/RequestType.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.HederaFunctionality; +import com.hiero.sdk.proto.HederaFunctionality; /** * Enum for the request types. diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/ScheduleCreateTransaction.java b/sdk/src/main/java/com/hiero/sdk/ScheduleCreateTransaction.java similarity index 93% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/ScheduleCreateTransaction.java rename to sdk/src/main/java/com/hiero/sdk/ScheduleCreateTransaction.java index 4cd57c7846..1c9ecd9ffd 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/ScheduleCreateTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/ScheduleCreateTransaction.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.ScheduleCreateTransactionBody; -import com.hedera.hashgraph.sdk.proto.ScheduleServiceGrpc; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.ScheduleCreateTransactionBody; +import com.hiero.sdk.proto.ScheduleServiceGrpc; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import java.time.Instant; @@ -65,7 +65,7 @@ public ScheduleCreateTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - ScheduleCreateTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + ScheduleCreateTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -228,7 +228,7 @@ public ScheduleCreateTransaction setScheduleMemo(String memo) { /** * Build the correct transaction body. * - * @return {@link com.hedera.hashgraph.sdk.proto.ScheduleCreateTransactionBody builder } + * @return {@link com.hiero.sdk.proto.ScheduleCreateTransactionBody builder } */ ScheduleCreateTransactionBody.Builder build() { var builder = ScheduleCreateTransactionBody.newBuilder(); @@ -276,7 +276,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return ScheduleServiceGrpc.getCreateScheduleMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/ScheduleDeleteTransaction.java b/sdk/src/main/java/com/hiero/sdk/ScheduleDeleteTransaction.java similarity index 82% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/ScheduleDeleteTransaction.java rename to sdk/src/main/java/com/hiero/sdk/ScheduleDeleteTransaction.java index c4d39ad114..ae96a174f8 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/ScheduleDeleteTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/ScheduleDeleteTransaction.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.ScheduleDeleteTransactionBody; -import com.hedera.hashgraph.sdk.proto.ScheduleServiceGrpc; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.ScheduleDeleteTransactionBody; +import com.hiero.sdk.proto.ScheduleServiceGrpc; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -55,7 +55,7 @@ public ScheduleDeleteTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - ScheduleDeleteTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + ScheduleDeleteTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -65,7 +65,7 @@ public ScheduleDeleteTransaction() { * * @param txBody protobuf TransactionBody */ - ScheduleDeleteTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + ScheduleDeleteTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -106,7 +106,7 @@ void initFromTransactionBody() { /** * Build the correct transaction body. * - * @return {@link com.hedera.hashgraph.sdk.proto.ScheduleDeleteTransactionBody builder } + * @return {@link com.hiero.sdk.proto.ScheduleDeleteTransactionBody builder } */ ScheduleDeleteTransactionBody.Builder build() { var builder = ScheduleDeleteTransactionBody.newBuilder(); @@ -125,7 +125,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return ScheduleServiceGrpc.getDeleteScheduleMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/ScheduleId.java b/sdk/src/main/java/com/hiero/sdk/ScheduleId.java similarity index 98% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/ScheduleId.java rename to sdk/src/main/java/com/hiero/sdk/ScheduleId.java index 5f18dfba4e..8ab8fb944b 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/ScheduleId.java +++ b/sdk/src/main/java/com/hiero/sdk/ScheduleId.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.ScheduleID; +import com.hiero.sdk.proto.ScheduleID; import javax.annotation.Nonnegative; import javax.annotation.Nullable; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/ScheduleInfo.java b/sdk/src/main/java/com/hiero/sdk/ScheduleInfo.java similarity index 94% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/ScheduleInfo.java rename to sdk/src/main/java/com/hiero/sdk/ScheduleInfo.java index 2262b051f3..7a16737c58 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/ScheduleInfo.java +++ b/sdk/src/main/java/com/hiero/sdk/ScheduleInfo.java @@ -17,12 +17,12 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.ScheduleGetInfoResponse; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.ScheduleGetInfoResponse; import java.time.Instant; import javax.annotation.Nullable; @@ -165,7 +165,7 @@ public final class ScheduleInfo { * @param info the protobuf * @return the new schedule info object */ - static ScheduleInfo fromProtobuf(com.hedera.hashgraph.sdk.proto.ScheduleInfo info) { + static ScheduleInfo fromProtobuf(com.hiero.sdk.proto.ScheduleInfo info) { var scheduleId = ScheduleId.fromProtobuf(info.getScheduleID()); var creatorAccountId = AccountId.fromProtobuf(info.getCreatorAccountID()); var payerAccountId = AccountId.fromProtobuf(info.getPayerAccountID()); @@ -199,7 +199,7 @@ static ScheduleInfo fromProtobuf(com.hedera.hashgraph.sdk.proto.ScheduleInfo inf * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ public static ScheduleInfo fromBytes(byte[] bytes) throws InvalidProtocolBufferException { - return fromProtobuf(com.hedera.hashgraph.sdk.proto.ScheduleInfo.parseFrom(bytes).toBuilder().build()); + return fromProtobuf(com.hiero.sdk.proto.ScheduleInfo.parseFrom(bytes).toBuilder().build()); } /** @@ -207,8 +207,8 @@ public static ScheduleInfo fromBytes(byte[] bytes) throws InvalidProtocolBufferE * * @return the protobuf representation */ - com.hedera.hashgraph.sdk.proto.ScheduleInfo toProtobuf() { - var info = com.hedera.hashgraph.sdk.proto.ScheduleInfo.newBuilder(); + com.hiero.sdk.proto.ScheduleInfo toProtobuf() { + var info = com.hiero.sdk.proto.ScheduleInfo.newBuilder(); if (adminKey != null) { info.setAdminKey(adminKey.toProtobufKey()); diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/ScheduleInfoQuery.java b/sdk/src/main/java/com/hiero/sdk/ScheduleInfoQuery.java similarity index 82% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/ScheduleInfoQuery.java rename to sdk/src/main/java/com/hiero/sdk/ScheduleInfoQuery.java index e5a7b0cdc9..1a5c8d27dc 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/ScheduleInfoQuery.java +++ b/sdk/src/main/java/com/hiero/sdk/ScheduleInfoQuery.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.Query; -import com.hedera.hashgraph.sdk.proto.QueryHeader; -import com.hedera.hashgraph.sdk.proto.Response; -import com.hedera.hashgraph.sdk.proto.ResponseHeader; -import com.hedera.hashgraph.sdk.proto.ScheduleGetInfoQuery; -import com.hedera.hashgraph.sdk.proto.ScheduleServiceGrpc; +import com.hiero.sdk.proto.Query; +import com.hiero.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.Response; +import com.hiero.sdk.proto.ResponseHeader; +import com.hiero.sdk.proto.ScheduleGetInfoQuery; +import com.hiero.sdk.proto.ScheduleServiceGrpc; import io.grpc.MethodDescriptor; import java.util.Objects; import java.util.concurrent.CompletableFuture; @@ -36,7 +36,7 @@ * * See Hedera Documentation */ -public class ScheduleInfoQuery extends com.hedera.hashgraph.sdk.Query { +public class ScheduleInfoQuery extends com.hiero.sdk.Query { @Nullable private ScheduleId scheduleId = null; @@ -76,7 +76,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - void onMakeRequest(com.hedera.hashgraph.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { + void onMakeRequest(com.hiero.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { var builder = ScheduleGetInfoQuery.newBuilder(); if (scheduleId != null) { builder.setScheduleID(scheduleId.toProtobuf()); @@ -91,7 +91,7 @@ ResponseHeader mapResponseHeader(Response response) { } @Override - QueryHeader mapRequestHeader(com.hedera.hashgraph.sdk.proto.Query request) { + QueryHeader mapRequestHeader(com.hiero.sdk.proto.Query request) { return request.getScheduleGetInfo().getHeader(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/ScheduleSignTransaction.java b/sdk/src/main/java/com/hiero/sdk/ScheduleSignTransaction.java similarity index 87% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/ScheduleSignTransaction.java rename to sdk/src/main/java/com/hiero/sdk/ScheduleSignTransaction.java index a1f04041b6..ef4ad4b906 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/ScheduleSignTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/ScheduleSignTransaction.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.ScheduleServiceGrpc; -import com.hedera.hashgraph.sdk.proto.ScheduleSignTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.ScheduleServiceGrpc; +import com.hiero.sdk.proto.ScheduleSignTransactionBody; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -63,7 +63,7 @@ public ScheduleSignTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - ScheduleSignTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + ScheduleSignTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -107,7 +107,7 @@ public ScheduleSignTransaction clearScheduleId() { * Build the correct transaction body. * * @return {@link - * com.hedera.hashgraph.sdk.proto.ScheduleSignTransactionBody + * com.hiero.sdk.proto.ScheduleSignTransactionBody * builder } */ ScheduleSignTransactionBody.Builder build() { @@ -137,7 +137,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return ScheduleServiceGrpc.getSignScheduleMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/SemanticVersion.java b/sdk/src/main/java/com/hiero/sdk/SemanticVersion.java similarity index 88% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/SemanticVersion.java rename to sdk/src/main/java/com/hiero/sdk/SemanticVersion.java index 3a27eb46f3..3f64f071ac 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/SemanticVersion.java +++ b/sdk/src/main/java/com/hiero/sdk/SemanticVersion.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; @@ -62,7 +62,7 @@ public class SemanticVersion { * @param version the protobuf * @return the new semantic version */ - protected static SemanticVersion fromProtobuf(com.hedera.hashgraph.sdk.proto.SemanticVersion version) { + protected static SemanticVersion fromProtobuf(com.hiero.sdk.proto.SemanticVersion version) { return new SemanticVersion( version.getMajor(), version.getMinor(), @@ -78,7 +78,7 @@ protected static SemanticVersion fromProtobuf(com.hedera.hashgraph.sdk.proto.Sem * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ public static SemanticVersion fromBytes(byte[] bytes) throws InvalidProtocolBufferException { - return fromProtobuf(com.hedera.hashgraph.sdk.proto.SemanticVersion.parseFrom(bytes)); + return fromProtobuf(com.hiero.sdk.proto.SemanticVersion.parseFrom(bytes)); } /** @@ -86,8 +86,8 @@ public static SemanticVersion fromBytes(byte[] bytes) throws InvalidProtocolBuff * * @return the protobuf representation */ - protected com.hedera.hashgraph.sdk.proto.SemanticVersion toProtobuf() { - return com.hedera.hashgraph.sdk.proto.SemanticVersion.newBuilder() + protected com.hiero.sdk.proto.SemanticVersion toProtobuf() { + return com.hiero.sdk.proto.SemanticVersion.newBuilder() .setMajor(major) .setMinor(minor) .setPatch(patch) diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/StakingInfo.java b/sdk/src/main/java/com/hiero/sdk/StakingInfo.java similarity index 93% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/StakingInfo.java rename to sdk/src/main/java/com/hiero/sdk/StakingInfo.java index f1eef7cb85..a436b65d36 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/StakingInfo.java +++ b/sdk/src/main/java/com/hiero/sdk/StakingInfo.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.InvalidProtocolBufferException; @@ -79,7 +79,7 @@ public StakingInfo(boolean declineStakingReward, Instant stakePeriodStart, Hbar this.stakedNodeId = stakedNodeId; } - static StakingInfo fromProtobuf(com.hedera.hashgraph.sdk.proto.StakingInfo info) { + static StakingInfo fromProtobuf(com.hiero.sdk.proto.StakingInfo info) { return new StakingInfo( info.getDeclineReward(), InstantConverter.fromProtobuf(info.getStakePeriodStart()), @@ -98,11 +98,11 @@ static StakingInfo fromProtobuf(com.hedera.hashgraph.sdk.proto.StakingInfo info) * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ public static StakingInfo fromBytes(byte[] bytes) throws InvalidProtocolBufferException { - return fromProtobuf(com.hedera.hashgraph.sdk.proto.StakingInfo.parseFrom(bytes)); + return fromProtobuf(com.hiero.sdk.proto.StakingInfo.parseFrom(bytes)); } - com.hedera.hashgraph.sdk.proto.StakingInfo toProtobuf() { - var builder = com.hedera.hashgraph.sdk.proto.StakingInfo.newBuilder() + com.hiero.sdk.proto.StakingInfo toProtobuf() { + var builder = com.hiero.sdk.proto.StakingInfo.newBuilder() .setDeclineReward(declineStakingReward) .setStakePeriodStart(InstantConverter.toProtobuf(stakePeriodStart)) .setPendingReward(pendingReward.toTinybars()) diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/Status.java b/sdk/src/main/java/com/hiero/sdk/Status.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/Status.java rename to sdk/src/main/java/com/hiero/sdk/Status.java index b0fc94041e..bcd10f29e2 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/Status.java +++ b/sdk/src/main/java/com/hiero/sdk/Status.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.ResponseCodeEnum; +import com.hiero.sdk.proto.ResponseCodeEnum; import java.util.Objects; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/StorageChange.java b/sdk/src/main/java/com/hiero/sdk/StorageChange.java similarity index 91% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/StorageChange.java rename to sdk/src/main/java/com/hiero/sdk/StorageChange.java index ddd0245ca1..741bb45056 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/StorageChange.java +++ b/sdk/src/main/java/com/hiero/sdk/StorageChange.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.BytesValue; @@ -72,7 +72,7 @@ public class StorageChange { // * @param storageChangeProto the protobuf // * @return the new storage charge object // */ - // static StorageChange fromProtobuf(com.hedera.hashgraph.sdk.proto.StorageChange storageChangeProto) { + // static StorageChange fromProtobuf(com.hiero.sdk.proto.StorageChange storageChangeProto) { // return new StorageChange( // new BigInteger(storageChangeProto.getSlot().toByteArray()), // new BigInteger(storageChangeProto.getValueRead().toByteArray()), @@ -92,7 +92,7 @@ public class StorageChange { // * @throws InvalidProtocolBufferException when there is an issue with the protobuf // */ // public static StorageChange fromBytes(byte[] bytes) throws InvalidProtocolBufferException { - // return fromProtobuf(com.hedera.hashgraph.sdk.proto.StorageChange.parseFrom(bytes)); + // return fromProtobuf(com.hiero.sdk.proto.StorageChange.parseFrom(bytes)); // } // // /** @@ -100,8 +100,8 @@ public class StorageChange { // * // * @return the byte array representation // */ - // com.hedera.hashgraph.sdk.proto.StorageChange toProtobuf() { - // var builder = com.hedera.hashgraph.sdk.proto.StorageChange.newBuilder() + // com.hiero.sdk.proto.StorageChange toProtobuf() { + // var builder = com.hiero.sdk.proto.StorageChange.newBuilder() // .setSlot(ByteString.copyFrom(slot.toByteArray())) // .setValueRead(ByteString.copyFrom(valueRead.toByteArray())); // if (valueWritten != null) { diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/SubscriptionHandle.java b/sdk/src/main/java/com/hiero/sdk/SubscriptionHandle.java similarity index 97% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/SubscriptionHandle.java rename to sdk/src/main/java/com/hiero/sdk/SubscriptionHandle.java index 9abc694ba4..8c8f6832e3 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/SubscriptionHandle.java +++ b/sdk/src/main/java/com/hiero/sdk/SubscriptionHandle.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import javax.annotation.Nullable; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/SystemDeleteTransaction.java b/sdk/src/main/java/com/hiero/sdk/SystemDeleteTransaction.java similarity index 89% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/SystemDeleteTransaction.java rename to sdk/src/main/java/com/hiero/sdk/SystemDeleteTransaction.java index 747c0d627c..8b0730622e 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/SystemDeleteTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/SystemDeleteTransaction.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.FileServiceGrpc; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.SmartContractServiceGrpc; -import com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.FileServiceGrpc; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.SmartContractServiceGrpc; +import com.hiero.sdk.proto.SystemDeleteTransactionBody; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import java.time.Instant; import java.util.LinkedHashMap; @@ -65,7 +65,7 @@ public SystemDeleteTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - SystemDeleteTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + SystemDeleteTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -75,7 +75,7 @@ public SystemDeleteTransaction() { * * @param txBody protobuf TransactionBody */ - SystemDeleteTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + SystemDeleteTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -161,7 +161,7 @@ public SystemDeleteTransaction setExpirationTime(Instant expirationTime) { /** * Build the transaction body. * - * @return {@link com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody} + * @return {@link com.hiero.sdk.proto.SystemDeleteTransactionBody} */ SystemDeleteTransactionBody.Builder build() { var builder = SystemDeleteTransactionBody.newBuilder(); @@ -215,7 +215,7 @@ CompletableFuture onExecuteAsync(Client client) { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { if (fileId != null) { return FileServiceGrpc.getSystemDeleteMethod(); } else { diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/SystemUndeleteTransaction.java b/sdk/src/main/java/com/hiero/sdk/SystemUndeleteTransaction.java similarity index 86% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/SystemUndeleteTransaction.java rename to sdk/src/main/java/com/hiero/sdk/SystemUndeleteTransaction.java index fb8f4478ec..9bb4c50a2a 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/SystemUndeleteTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/SystemUndeleteTransaction.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.FileServiceGrpc; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.SmartContractServiceGrpc; -import com.hedera.hashgraph.sdk.proto.SystemUndeleteTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.FileServiceGrpc; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.SmartContractServiceGrpc; +import com.hiero.sdk.proto.SystemUndeleteTransactionBody; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import java.util.LinkedHashMap; import java.util.Objects; @@ -56,7 +56,7 @@ public SystemUndeleteTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - SystemUndeleteTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + SystemUndeleteTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -66,7 +66,7 @@ public SystemUndeleteTransaction() { * * @param txBody protobuf TransactionBody */ - SystemUndeleteTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + SystemUndeleteTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -137,7 +137,7 @@ void initFromTransactionBody() { /** * Build the transaction body. * - * @return {@link com.hedera.hashgraph.sdk.proto.SystemUndeleteTransactionBody} + * @return {@link com.hiero.sdk.proto.SystemUndeleteTransactionBody} */ SystemUndeleteTransactionBody.Builder build() { var builder = SystemUndeleteTransactionBody.newBuilder(); @@ -173,7 +173,7 @@ CompletableFuture onExecuteAsync(Client client) { @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { if (fileId != null) { return FileServiceGrpc.getSystemUndeleteMethod(); } else { diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/ThreadLocalSecureRandom.java b/sdk/src/main/java/com/hiero/sdk/ThreadLocalSecureRandom.java similarity index 97% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/ThreadLocalSecureRandom.java rename to sdk/src/main/java/com/hiero/sdk/ThreadLocalSecureRandom.java index 0d272f3e17..ae237dd15d 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/ThreadLocalSecureRandom.java +++ b/sdk/src/main/java/com/hiero/sdk/ThreadLocalSecureRandom.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import java.security.SecureRandom; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenAirdropTransaction.java b/sdk/src/main/java/com/hiero/sdk/TokenAirdropTransaction.java similarity index 83% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenAirdropTransaction.java rename to sdk/src/main/java/com/hiero/sdk/TokenAirdropTransaction.java index 0fe56f3238..25776331d7 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenAirdropTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenAirdropTransaction.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenAirdropTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenServiceGrpc; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenAirdropTransactionBody; +import com.hiero.sdk.proto.TokenServiceGrpc; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import java.util.LinkedHashMap; @@ -50,7 +50,7 @@ public TokenAirdropTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - TokenAirdropTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + TokenAirdropTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -60,7 +60,7 @@ public TokenAirdropTransaction() { * * @param txBody protobuf TransactionBody */ - TokenAirdropTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + TokenAirdropTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -69,7 +69,7 @@ public TokenAirdropTransaction() { * Build the transaction body. * * @return {@link - * com.hedera.hashgraph.sdk.proto.TokenAirdropTransactionBody} + * com.hiero.sdk.proto.TokenAirdropTransactionBody} */ TokenAirdropTransactionBody.Builder build() { var transfers = sortTransfersAndBuild(); @@ -83,7 +83,7 @@ TokenAirdropTransactionBody.Builder build() { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return TokenServiceGrpc.getAirdropTokensMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenAllowance.java b/sdk/src/main/java/com/hiero/sdk/TokenAllowance.java similarity index 92% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenAllowance.java rename to sdk/src/main/java/com/hiero/sdk/TokenAllowance.java index 4dd4661ddf..bff655d3f9 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenAllowance.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenAllowance.java @@ -17,11 +17,11 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.GrantedTokenAllowance; +import com.hiero.sdk.proto.GrantedTokenAllowance; import javax.annotation.Nullable; import java.util.Objects; @@ -78,7 +78,7 @@ public class TokenAllowance { * @param allowanceProto the protobuf * @return the new token allowance */ - static TokenAllowance fromProtobuf(com.hedera.hashgraph.sdk.proto.TokenAllowance allowanceProto) { + static TokenAllowance fromProtobuf(com.hiero.sdk.proto.TokenAllowance allowanceProto) { return new TokenAllowance( allowanceProto.hasTokenId() ? TokenId.fromProtobuf(allowanceProto.getTokenId()) : null, allowanceProto.hasOwner() ? AccountId.fromProtobuf(allowanceProto.getOwner()) : null, @@ -110,7 +110,7 @@ static TokenAllowance fromProtobuf(GrantedTokenAllowance allowanceProto) { * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ public static TokenAllowance fromBytes(byte[] bytes) throws InvalidProtocolBufferException { - return fromProtobuf(com.hedera.hashgraph.sdk.proto.TokenAllowance.parseFrom(Objects.requireNonNull(bytes))); + return fromProtobuf(com.hiero.sdk.proto.TokenAllowance.parseFrom(Objects.requireNonNull(bytes))); } /** @@ -136,8 +136,8 @@ void validateChecksums(Client client) throws BadEntityIdException { * * @return the protobuf representation */ - com.hedera.hashgraph.sdk.proto.TokenAllowance toProtobuf() { - var builder = com.hedera.hashgraph.sdk.proto.TokenAllowance.newBuilder() + com.hiero.sdk.proto.TokenAllowance toProtobuf() { + var builder = com.hiero.sdk.proto.TokenAllowance.newBuilder() .setAmount(amount); if (tokenId != null) { builder.setTokenId(tokenId.toProtobuf()); diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenAssociateTransaction.java b/sdk/src/main/java/com/hiero/sdk/TokenAssociateTransaction.java similarity index 86% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenAssociateTransaction.java rename to sdk/src/main/java/com/hiero/sdk/TokenAssociateTransaction.java index a91b1b5463..3b18c98ffd 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenAssociateTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenAssociateTransaction.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenAssociateTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenServiceGrpc; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenAssociateTransactionBody; +import com.hiero.sdk.proto.TokenServiceGrpc; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -55,7 +55,7 @@ public TokenAssociateTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - TokenAssociateTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + TokenAssociateTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -65,7 +65,7 @@ public TokenAssociateTransaction() { * * @param txBody protobuf TransactionBody */ - TokenAssociateTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + TokenAssociateTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -118,7 +118,7 @@ public TokenAssociateTransaction setTokenIds(List tokens) { /** * Build the transaction body. * - * @return {@link com.hedera.hashgraph.sdk.proto.TokenAssociateTransactionBody} + * @return {@link com.hiero.sdk.proto.TokenAssociateTransactionBody} */ TokenAssociateTransactionBody.Builder build() { var builder = TokenAssociateTransactionBody.newBuilder(); @@ -164,7 +164,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return TokenServiceGrpc.getAssociateTokensMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenAssociation.java b/sdk/src/main/java/com/hiero/sdk/TokenAssociation.java similarity index 89% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenAssociation.java rename to sdk/src/main/java/com/hiero/sdk/TokenAssociation.java index 0604dc3662..02d06ae259 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenAssociation.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenAssociation.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.InvalidProtocolBufferException; @@ -61,7 +61,7 @@ public class TokenAssociation { * @param tokenAssociation the protobuf * @return the new token association */ - static TokenAssociation fromProtobuf(com.hedera.hashgraph.sdk.proto.TokenAssociation tokenAssociation) { + static TokenAssociation fromProtobuf(com.hiero.sdk.proto.TokenAssociation tokenAssociation) { return new TokenAssociation( tokenAssociation.hasTokenId() ? TokenId.fromProtobuf(tokenAssociation.getTokenId()) : new TokenId(0, 0, 0), tokenAssociation.hasAccountId() ? AccountId.fromProtobuf(tokenAssociation.getAccountId()) : new AccountId(0, 0, 0) @@ -76,7 +76,7 @@ static TokenAssociation fromProtobuf(com.hedera.hashgraph.sdk.proto.TokenAssocia * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ public static TokenAssociation fromBytes(byte[] bytes) throws InvalidProtocolBufferException { - return fromProtobuf(com.hedera.hashgraph.sdk.proto.TokenAssociation.parseFrom(bytes)); + return fromProtobuf(com.hiero.sdk.proto.TokenAssociation.parseFrom(bytes)); } /** @@ -84,8 +84,8 @@ public static TokenAssociation fromBytes(byte[] bytes) throws InvalidProtocolBuf * * @return the protobuf representation */ - com.hedera.hashgraph.sdk.proto.TokenAssociation toProtobuf() { - return com.hedera.hashgraph.sdk.proto.TokenAssociation.newBuilder() + com.hiero.sdk.proto.TokenAssociation toProtobuf() { + return com.hiero.sdk.proto.TokenAssociation.newBuilder() .setTokenId(tokenId.toProtobuf()) .setAccountId(accountId.toProtobuf()) .build(); diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenBurnTransaction.java b/sdk/src/main/java/com/hiero/sdk/TokenBurnTransaction.java similarity index 88% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenBurnTransaction.java rename to sdk/src/main/java/com/hiero/sdk/TokenBurnTransaction.java index ce2c3c3192..490f4f2c92 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenBurnTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenBurnTransaction.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenBurnTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenServiceGrpc; -import com.hedera.hashgraph.sdk.proto.Transaction; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenBurnTransactionBody; +import com.hiero.sdk.proto.TokenServiceGrpc; +import com.hiero.sdk.proto.Transaction; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import javax.annotation.Nonnegative; @@ -42,7 +42,7 @@ * * See Hedera Documentation */ -public class TokenBurnTransaction extends com.hedera.hashgraph.sdk.Transaction { +public class TokenBurnTransaction extends com.hiero.sdk.Transaction { /** * The ID of the token to burn supply */ @@ -70,7 +70,7 @@ public TokenBurnTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - TokenBurnTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + TokenBurnTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -80,7 +80,7 @@ public TokenBurnTransaction() { * * @param txBody protobuf TransactionBody */ - TokenBurnTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + TokenBurnTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -174,7 +174,7 @@ public TokenBurnTransaction addSerial(@Nonnegative long serial) { /** * Build the transaction body. * - * @return {@link com.hedera.hashgraph.sdk.proto.TokenBurnTransactionBody} + * @return {@link com.hiero.sdk.proto.TokenBurnTransactionBody} */ TokenBurnTransactionBody.Builder build() { var builder = TokenBurnTransactionBody.newBuilder(); diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenCancelAirdropTransaction.java b/sdk/src/main/java/com/hiero/sdk/TokenCancelAirdropTransaction.java similarity index 79% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenCancelAirdropTransaction.java rename to sdk/src/main/java/com/hiero/sdk/TokenCancelAirdropTransaction.java index 9e2e7c9db5..6583cde3f6 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenCancelAirdropTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenCancelAirdropTransaction.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenServiceGrpc; -import com.hedera.hashgraph.sdk.proto.TransactionBody.Builder; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenCancelAirdropTransactionBody; +import com.hiero.sdk.proto.TokenServiceGrpc; +import com.hiero.sdk.proto.TransactionBody.Builder; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import java.util.LinkedHashMap; @@ -44,7 +44,7 @@ public TokenCancelAirdropTransaction() { * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ TokenCancelAirdropTransaction( - LinkedHashMap> txs) + LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); @@ -55,7 +55,7 @@ public TokenCancelAirdropTransaction() { * * @param txBody protobuf TransactionBody */ - TokenCancelAirdropTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + TokenCancelAirdropTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -64,7 +64,7 @@ public TokenCancelAirdropTransaction() { /** * Build the transaction body. * - * @return {@link com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody} + * @return {@link com.hiero.sdk.proto.TokenCancelAirdropTransactionBody} */ TokenCancelAirdropTransactionBody.Builder build() { var builder = TokenCancelAirdropTransactionBody.newBuilder(); @@ -87,7 +87,7 @@ void initFromTransactionBody() { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return TokenServiceGrpc.getCancelAirdropMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenClaimAirdropTransaction.java b/sdk/src/main/java/com/hiero/sdk/TokenClaimAirdropTransaction.java similarity index 79% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenClaimAirdropTransaction.java rename to sdk/src/main/java/com/hiero/sdk/TokenClaimAirdropTransaction.java index cafcaa7b6c..465df2c1cd 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenClaimAirdropTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenClaimAirdropTransaction.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenClaimAirdropTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenServiceGrpc; -import com.hedera.hashgraph.sdk.proto.TransactionBody.Builder; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenClaimAirdropTransactionBody; +import com.hiero.sdk.proto.TokenServiceGrpc; +import com.hiero.sdk.proto.TransactionBody.Builder; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import java.util.LinkedHashMap; @@ -44,7 +44,7 @@ public TokenClaimAirdropTransaction() { * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ TokenClaimAirdropTransaction( - LinkedHashMap> txs) + LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); @@ -55,7 +55,7 @@ public TokenClaimAirdropTransaction() { * * @param txBody protobuf TransactionBody */ - TokenClaimAirdropTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + TokenClaimAirdropTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -63,7 +63,7 @@ public TokenClaimAirdropTransaction() { /** * Build the transaction body. * - * @return {@link com.hedera.hashgraph.sdk.proto.TokenClaimAirdropTransactionBody} + * @return {@link com.hiero.sdk.proto.TokenClaimAirdropTransactionBody} */ TokenClaimAirdropTransactionBody.Builder build() { var builder = TokenClaimAirdropTransactionBody.newBuilder(); @@ -86,7 +86,7 @@ void initFromTransactionBody() { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return TokenServiceGrpc.getClaimAirdropMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenCreateTransaction.java b/sdk/src/main/java/com/hiero/sdk/TokenCreateTransaction.java similarity index 97% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenCreateTransaction.java rename to sdk/src/main/java/com/hiero/sdk/TokenCreateTransaction.java index 79f2f434d5..84586baeb9 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenCreateTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenCreateTransaction.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenCreateTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenServiceGrpc; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenCreateTransactionBody; +import com.hiero.sdk.proto.TokenServiceGrpc; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import java.time.Duration; import java.time.Instant; @@ -210,7 +210,7 @@ public TokenCreateTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - TokenCreateTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + TokenCreateTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -220,7 +220,7 @@ public TokenCreateTransaction() { * * @param txBody protobuf TransactionBody */ - TokenCreateTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + TokenCreateTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -768,7 +768,7 @@ public TokenCreateTransaction freezeWith(@Nullable Client client) { /** * Build the transaction body. * - * @return {@link com.hedera.hashgraph.sdk.proto.TokenCreateTransactionBody} + * @return {@link com.hiero.sdk.proto.TokenCreateTransactionBody} */ TokenCreateTransactionBody.Builder build() { var builder = TokenCreateTransactionBody.newBuilder(); @@ -904,7 +904,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return TokenServiceGrpc.getCreateTokenMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenDeleteTransaction.java b/sdk/src/main/java/com/hiero/sdk/TokenDeleteTransaction.java similarity index 82% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenDeleteTransaction.java rename to sdk/src/main/java/com/hiero/sdk/TokenDeleteTransaction.java index c909005f9b..496ea3d661 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenDeleteTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenDeleteTransaction.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenDeleteTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenServiceGrpc; -import com.hedera.hashgraph.sdk.proto.Transaction; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenDeleteTransactionBody; +import com.hiero.sdk.proto.TokenServiceGrpc; +import com.hiero.sdk.proto.Transaction; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -42,7 +42,7 @@ * * See Hedera Documentation */ -public class TokenDeleteTransaction extends com.hedera.hashgraph.sdk.Transaction { +public class TokenDeleteTransaction extends com.hiero.sdk.Transaction { @Nullable private TokenId tokenId = null; @@ -59,7 +59,7 @@ public TokenDeleteTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - TokenDeleteTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + TokenDeleteTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -69,7 +69,7 @@ public TokenDeleteTransaction() { * * @param txBody protobuf TransactionBody */ - TokenDeleteTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + TokenDeleteTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -111,7 +111,7 @@ void initFromTransactionBody() { * Build the transaction body. * * @return {@link - * com.hedera.hashgraph.sdk.proto.TokenDeleteTransactionBody} + * com.hiero.sdk.proto.TokenDeleteTransactionBody} */ TokenDeleteTransactionBody.Builder build() { var builder = TokenDeleteTransactionBody.newBuilder(); diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenDissociateTransaction.java b/sdk/src/main/java/com/hiero/sdk/TokenDissociateTransaction.java similarity index 85% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenDissociateTransaction.java rename to sdk/src/main/java/com/hiero/sdk/TokenDissociateTransaction.java index bc9e66e9f4..a7896e2e19 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenDissociateTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenDissociateTransaction.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenDissociateTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenServiceGrpc; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenDissociateTransactionBody; +import com.hiero.sdk.proto.TokenServiceGrpc; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -42,7 +42,7 @@ * * See Hedera Documentation */ -public class TokenDissociateTransaction extends com.hedera.hashgraph.sdk.Transaction { +public class TokenDissociateTransaction extends com.hiero.sdk.Transaction { @Nullable private AccountId accountId = null; private List tokenIds = new ArrayList<>(); @@ -61,7 +61,7 @@ public TokenDissociateTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - TokenDissociateTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + TokenDissociateTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -71,7 +71,7 @@ public TokenDissociateTransaction() { * * @param txBody protobuf TransactionBody */ - TokenDissociateTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + TokenDissociateTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -138,7 +138,7 @@ void initFromTransactionBody() { * Build the transaction body. * * @return {@link - * com.hedera.hashgraph.sdk.proto.TokenDissociateTransactionBody} + * com.hiero.sdk.proto.TokenDissociateTransactionBody} */ TokenDissociateTransactionBody.Builder build() { var builder = TokenDissociateTransactionBody.newBuilder(); @@ -169,7 +169,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return TokenServiceGrpc.getDissociateTokensMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenFeeScheduleUpdateTransaction.java b/sdk/src/main/java/com/hiero/sdk/TokenFeeScheduleUpdateTransaction.java similarity index 86% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenFeeScheduleUpdateTransaction.java rename to sdk/src/main/java/com/hiero/sdk/TokenFeeScheduleUpdateTransaction.java index 30699d7cc6..60dc1f30fb 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenFeeScheduleUpdateTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenFeeScheduleUpdateTransaction.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenFeeScheduleUpdateTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenServiceGrpc; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenFeeScheduleUpdateTransactionBody; +import com.hiero.sdk.proto.TokenServiceGrpc; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -61,7 +61,7 @@ public TokenFeeScheduleUpdateTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - TokenFeeScheduleUpdateTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + TokenFeeScheduleUpdateTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -71,7 +71,7 @@ public TokenFeeScheduleUpdateTransaction() { * * @param txBody protobuf TransactionBody */ - TokenFeeScheduleUpdateTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + TokenFeeScheduleUpdateTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -139,7 +139,7 @@ void initFromTransactionBody() { * Build the transaction body. * * @return {@link - * com.hedera.hashgraph.sdk.proto.TokenFeeScheduleUpdateTransactionBody} + * com.hiero.sdk.proto.TokenFeeScheduleUpdateTransactionBody} */ TokenFeeScheduleUpdateTransactionBody.Builder build() { var builder = TokenFeeScheduleUpdateTransactionBody.newBuilder(); @@ -167,7 +167,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return TokenServiceGrpc.getUpdateTokenFeeScheduleMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenFreezeTransaction.java b/sdk/src/main/java/com/hiero/sdk/TokenFreezeTransaction.java similarity index 83% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenFreezeTransaction.java rename to sdk/src/main/java/com/hiero/sdk/TokenFreezeTransaction.java index e3ba72042a..b71876711e 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenFreezeTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenFreezeTransaction.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenFreezeAccountTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenServiceGrpc; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenFreezeAccountTransactionBody; +import com.hiero.sdk.proto.TokenServiceGrpc; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -38,7 +38,7 @@ * * See Hedera Documentation */ -public class TokenFreezeTransaction extends com.hedera.hashgraph.sdk.Transaction { +public class TokenFreezeTransaction extends com.hiero.sdk.Transaction { @Nullable private TokenId tokenId = null; @Nullable @@ -57,7 +57,7 @@ public TokenFreezeTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - TokenFreezeTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + TokenFreezeTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -67,7 +67,7 @@ public TokenFreezeTransaction() { * * @param txBody protobuf TransactionBody */ - TokenFreezeTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + TokenFreezeTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -136,7 +136,7 @@ void initFromTransactionBody() { * Build the transaction body. * * @return {@link - * com.hedera.hashgraph.sdk.proto.TokenFreezeAccountTransactionBody} + * com.hiero.sdk.proto.TokenFreezeAccountTransactionBody} */ TokenFreezeAccountTransactionBody.Builder build() { var builder = TokenFreezeAccountTransactionBody.newBuilder(); @@ -163,7 +163,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return TokenServiceGrpc.getFreezeTokenAccountMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenGrantKycTransaction.java b/sdk/src/main/java/com/hiero/sdk/TokenGrantKycTransaction.java similarity index 83% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenGrantKycTransaction.java rename to sdk/src/main/java/com/hiero/sdk/TokenGrantKycTransaction.java index 0fc96e5e4b..5717fac489 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenGrantKycTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenGrantKycTransaction.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenGrantKycTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenServiceGrpc; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenGrantKycTransactionBody; +import com.hiero.sdk.proto.TokenServiceGrpc; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -38,7 +38,7 @@ * * See Hedera Documentation */ -public class TokenGrantKycTransaction extends com.hedera.hashgraph.sdk.Transaction { +public class TokenGrantKycTransaction extends com.hiero.sdk.Transaction { @Nullable private TokenId tokenId = null; @Nullable @@ -57,7 +57,7 @@ public TokenGrantKycTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - TokenGrantKycTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + TokenGrantKycTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -67,7 +67,7 @@ public TokenGrantKycTransaction() { * * @param txBody protobuf TransactionBody */ - TokenGrantKycTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + TokenGrantKycTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -136,7 +136,7 @@ void initFromTransactionBody() { * Build the transaction body. * * @return {@link - * com.hedera.hashgraph.sdk.proto.TokenGrantKycTransactionBody} + * com.hiero.sdk.proto.TokenGrantKycTransactionBody} */ TokenGrantKycTransactionBody.Builder build() { var builder = TokenGrantKycTransactionBody.newBuilder(); @@ -163,7 +163,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return TokenServiceGrpc.getFreezeTokenAccountMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenId.java b/sdk/src/main/java/com/hiero/sdk/TokenId.java similarity index 98% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenId.java rename to sdk/src/main/java/com/hiero/sdk/TokenId.java index 15da7034f9..e968a7dd0d 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenId.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenId.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.TokenID; +import com.hiero.sdk.proto.TokenID; import javax.annotation.Nonnegative; import javax.annotation.Nullable; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenInfo.java b/sdk/src/main/java/com/hiero/sdk/TokenInfo.java similarity index 97% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenInfo.java rename to sdk/src/main/java/com/hiero/sdk/TokenInfo.java index cde44756a9..80fb3bab7c 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenInfo.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenInfo.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.TokenFreezeStatus; -import com.hedera.hashgraph.sdk.proto.TokenGetInfoResponse; -import com.hedera.hashgraph.sdk.proto.TokenKycStatus; -import com.hedera.hashgraph.sdk.proto.TokenPauseStatus; +import com.hiero.sdk.proto.TokenFreezeStatus; +import com.hiero.sdk.proto.TokenGetInfoResponse; +import com.hiero.sdk.proto.TokenKycStatus; +import com.hiero.sdk.proto.TokenPauseStatus; import java.time.Duration; import java.time.Instant; @@ -347,7 +347,7 @@ public static TokenInfo fromBytes(byte[] bytes) throws InvalidProtocolBufferExce * @param info the protobuf * @return the list of custom fee's */ - private static List customFeesFromProto(com.hedera.hashgraph.sdk.proto.TokenInfo info) { + private static List customFeesFromProto(com.hiero.sdk.proto.TokenInfo info) { var returnCustomFees = new ArrayList(info.getCustomFeesCount()); for (var feeProto : info.getCustomFeesList()) { returnCustomFees.add(CustomFee.fromProtobuf(feeProto)); @@ -391,7 +391,7 @@ static TokenPauseStatus pauseStatusToProtobuf(@Nullable Boolean pauseStatus) { * @return the protobuf representation */ TokenGetInfoResponse toProtobuf() { - var tokenInfoBuilder = com.hedera.hashgraph.sdk.proto.TokenInfo.newBuilder() + var tokenInfoBuilder = com.hiero.sdk.proto.TokenInfo.newBuilder() .setTokenId(tokenId.toProtobuf()) .setName(name) .setSymbol(symbol) diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenInfoQuery.java b/sdk/src/main/java/com/hiero/sdk/TokenInfoQuery.java similarity index 81% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenInfoQuery.java rename to sdk/src/main/java/com/hiero/sdk/TokenInfoQuery.java index fd0fe60aeb..660f40dcd7 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenInfoQuery.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenInfoQuery.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.Query; -import com.hedera.hashgraph.sdk.proto.QueryHeader; -import com.hedera.hashgraph.sdk.proto.Response; -import com.hedera.hashgraph.sdk.proto.ResponseHeader; -import com.hedera.hashgraph.sdk.proto.TokenGetInfoQuery; -import com.hedera.hashgraph.sdk.proto.TokenServiceGrpc; +import com.hiero.sdk.proto.Query; +import com.hiero.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.Response; +import com.hiero.sdk.proto.ResponseHeader; +import com.hiero.sdk.proto.TokenGetInfoQuery; +import com.hiero.sdk.proto.TokenServiceGrpc; import io.grpc.MethodDescriptor; import java.util.Objects; import java.util.concurrent.CompletableFuture; @@ -33,7 +33,7 @@ /** * Initializes the TokenInfoQuery object. */ -public class TokenInfoQuery extends com.hedera.hashgraph.sdk.Query { +public class TokenInfoQuery extends com.hiero.sdk.Query { @Nullable TokenId tokenId = null; @@ -73,7 +73,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - void onMakeRequest(com.hedera.hashgraph.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { + void onMakeRequest(com.hiero.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { var builder = TokenGetInfoQuery.newBuilder(); if (tokenId != null) { builder.setToken(tokenId.toProtobuf()); @@ -88,7 +88,7 @@ ResponseHeader mapResponseHeader(Response response) { } @Override - QueryHeader mapRequestHeader(com.hedera.hashgraph.sdk.proto.Query request) { + QueryHeader mapRequestHeader(com.hiero.sdk.proto.Query request) { return request.getTokenGetInfo().getHeader(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenKeyValidation.java b/sdk/src/main/java/com/hiero/sdk/TokenKeyValidation.java similarity index 74% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenKeyValidation.java rename to sdk/src/main/java/com/hiero/sdk/TokenKeyValidation.java index b19a61786a..9324438949 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenKeyValidation.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenKeyValidation.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; /** * Types of validation strategies for token keys. @@ -27,25 +27,25 @@ public enum TokenKeyValidation { /** * Currently the default behaviour. It will perform all token key validations. */ - FULL_VALIDATION(com.hedera.hashgraph.sdk.proto.TokenKeyValidation.FULL_VALIDATION), + FULL_VALIDATION(com.hiero.sdk.proto.TokenKeyValidation.FULL_VALIDATION), /** * Perform no validations at all for all passed token keys. */ - NO_VALIDATION(com.hedera.hashgraph.sdk.proto.TokenKeyValidation.NO_VALIDATION); + NO_VALIDATION(com.hiero.sdk.proto.TokenKeyValidation.NO_VALIDATION); - final com.hedera.hashgraph.sdk.proto.TokenKeyValidation code; + final com.hiero.sdk.proto.TokenKeyValidation code; /** * Constructor. * * @param code the token key validation */ - TokenKeyValidation(com.hedera.hashgraph.sdk.proto.TokenKeyValidation code) { + TokenKeyValidation(com.hiero.sdk.proto.TokenKeyValidation code) { this.code = code; } - static TokenKeyValidation valueOf(com.hedera.hashgraph.sdk.proto.TokenKeyValidation code) { + static TokenKeyValidation valueOf(com.hiero.sdk.proto.TokenKeyValidation code) { return switch (code) { case FULL_VALIDATION -> FULL_VALIDATION; case NO_VALIDATION -> NO_VALIDATION; @@ -61,7 +61,7 @@ public String toString() { }; } - public com.hedera.hashgraph.sdk.proto.TokenKeyValidation toProtobuf() { + public com.hiero.sdk.proto.TokenKeyValidation toProtobuf() { return this.code; } } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenMintTransaction.java b/sdk/src/main/java/com/hiero/sdk/TokenMintTransaction.java similarity index 88% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenMintTransaction.java rename to sdk/src/main/java/com/hiero/sdk/TokenMintTransaction.java index 256b7126cf..5c0c7e81d0 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenMintTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenMintTransaction.java @@ -17,16 +17,16 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenMintTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenServiceGrpc; -import com.hedera.hashgraph.sdk.proto.Transaction; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenMintTransactionBody; +import com.hiero.sdk.proto.TokenServiceGrpc; +import com.hiero.sdk.proto.Transaction; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import javax.annotation.Nonnegative; @@ -44,7 +44,7 @@ * * See Hedera Documentation */ -public class TokenMintTransaction extends com.hedera.hashgraph.sdk.Transaction { +public class TokenMintTransaction extends com.hiero.sdk.Transaction { @Nullable private TokenId tokenId = null; /** @@ -82,7 +82,7 @@ public TokenMintTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - TokenMintTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + TokenMintTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -92,7 +92,7 @@ public TokenMintTransaction() { * * @param txBody protobuf TransactionBody */ - TokenMintTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + TokenMintTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -193,7 +193,7 @@ void initFromTransactionBody() { * Build the transaction body. * * @return {@link - * com.hedera.hashgraph.sdk.proto.TokenMintTransactionBody} + * com.hiero.sdk.proto.TokenMintTransactionBody} */ TokenMintTransactionBody.Builder build() { var builder = TokenMintTransactionBody.newBuilder(); diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenNftAllowance.java b/sdk/src/main/java/com/hiero/sdk/TokenNftAllowance.java similarity index 97% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenNftAllowance.java rename to sdk/src/main/java/com/hiero/sdk/TokenNftAllowance.java index 4e1760437a..d3efa9b2cc 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenNftAllowance.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenNftAllowance.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.BoolValue; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.GrantedNftAllowance; -import com.hedera.hashgraph.sdk.proto.NftAllowance; -import com.hedera.hashgraph.sdk.proto.NftRemoveAllowance; +import com.hiero.sdk.proto.GrantedNftAllowance; +import com.hiero.sdk.proto.NftAllowance; +import com.hiero.sdk.proto.NftRemoveAllowance; import javax.annotation.Nullable; import java.util.ArrayList; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenNftInfo.java b/sdk/src/main/java/com/hiero/sdk/TokenNftInfo.java similarity index 93% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenNftInfo.java rename to sdk/src/main/java/com/hiero/sdk/TokenNftInfo.java index 160890e777..b7da692334 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenNftInfo.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenNftInfo.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.ByteString; @@ -96,7 +96,7 @@ public class TokenNftInfo { * @param info the protobuf * @return the new token nft info */ - static TokenNftInfo fromProtobuf(com.hedera.hashgraph.sdk.proto.TokenNftInfo info) { + static TokenNftInfo fromProtobuf(com.hiero.sdk.proto.TokenNftInfo info) { return new TokenNftInfo( NftId.fromProtobuf(info.getNftID()), AccountId.fromProtobuf(info.getAccountID()), @@ -115,7 +115,7 @@ static TokenNftInfo fromProtobuf(com.hedera.hashgraph.sdk.proto.TokenNftInfo inf * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ public static TokenNftInfo fromBytes(byte[] bytes) throws InvalidProtocolBufferException { - return fromProtobuf(com.hedera.hashgraph.sdk.proto.TokenNftInfo.parseFrom(bytes)); + return fromProtobuf(com.hiero.sdk.proto.TokenNftInfo.parseFrom(bytes)); } /** @@ -123,8 +123,8 @@ public static TokenNftInfo fromBytes(byte[] bytes) throws InvalidProtocolBufferE * * @return the protobuf representation */ - com.hedera.hashgraph.sdk.proto.TokenNftInfo toProtobuf() { - var builder = com.hedera.hashgraph.sdk.proto.TokenNftInfo.newBuilder() + com.hiero.sdk.proto.TokenNftInfo toProtobuf() { + var builder = com.hiero.sdk.proto.TokenNftInfo.newBuilder() .setNftID(nftId.toProtobuf()) .setAccountID(accountId.toProtobuf()) .setCreationTime(InstantConverter.toProtobuf(creationTime)) diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenNftInfoQuery.java b/sdk/src/main/java/com/hiero/sdk/TokenNftInfoQuery.java similarity index 90% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenNftInfoQuery.java rename to sdk/src/main/java/com/hiero/sdk/TokenNftInfoQuery.java index 2f26ad8f5b..01edb436e4 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenNftInfoQuery.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenNftInfoQuery.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; - -import com.hedera.hashgraph.sdk.proto.Query; -import com.hedera.hashgraph.sdk.proto.QueryHeader; -import com.hedera.hashgraph.sdk.proto.Response; -import com.hedera.hashgraph.sdk.proto.ResponseHeader; -import com.hedera.hashgraph.sdk.proto.TokenGetNftInfoQuery; -import com.hedera.hashgraph.sdk.proto.TokenServiceGrpc; +package com.hiero.sdk; + +import com.hiero.sdk.proto.Query; +import com.hiero.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.Response; +import com.hiero.sdk.proto.ResponseHeader; +import com.hiero.sdk.proto.TokenGetNftInfoQuery; +import com.hiero.sdk.proto.TokenServiceGrpc; import io.grpc.MethodDescriptor; import java.util.Collections; import java.util.List; @@ -40,7 +40,7 @@ * * See Hedera Documentation */ -public class TokenNftInfoQuery extends com.hedera.hashgraph.sdk.Query, TokenNftInfoQuery> { +public class TokenNftInfoQuery extends com.hiero.sdk.Query, TokenNftInfoQuery> { /** * The ID of the non-fungible token in x.y.z format. */ @@ -211,7 +211,7 @@ CompletableFuture onExecuteAsync(Client client) { } @Override - void onMakeRequest(com.hedera.hashgraph.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { + void onMakeRequest(com.hiero.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { var builder = TokenGetNftInfoQuery.newBuilder(); if(nftId != null) { builder.setNftID(nftId.toProtobuf()); @@ -225,12 +225,12 @@ ResponseHeader mapResponseHeader(Response response) { } @Override - QueryHeader mapRequestHeader(com.hedera.hashgraph.sdk.proto.Query request) { + QueryHeader mapRequestHeader(com.hiero.sdk.proto.Query request) { return request.getTokenGetInfo().getHeader(); } @Override - List mapResponse(Response response, AccountId nodeId, com.hedera.hashgraph.sdk.proto.Query request) { + List mapResponse(Response response, AccountId nodeId, com.hiero.sdk.proto.Query request) { return Collections.singletonList(TokenNftInfo.fromProtobuf(response.getTokenGetNftInfo().getNft())); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenNftTransfer.java b/sdk/src/main/java/com/hiero/sdk/TokenNftTransfer.java similarity index 96% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenNftTransfer.java rename to sdk/src/main/java/com/hiero/sdk/TokenNftTransfer.java index 7852df662d..2c78c9cc22 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenNftTransfer.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenNftTransfer.java @@ -17,13 +17,13 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.NftTransfer; -import com.hedera.hashgraph.sdk.proto.TokenID; -import com.hedera.hashgraph.sdk.proto.TokenTransferList; +import com.hiero.sdk.proto.NftTransfer; +import com.hiero.sdk.proto.TokenID; +import com.hiero.sdk.proto.TokenTransferList; import java.util.ArrayList; import java.util.List; import java.util.Objects; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenPauseTransaction.java b/sdk/src/main/java/com/hiero/sdk/TokenPauseTransaction.java similarity index 83% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenPauseTransaction.java rename to sdk/src/main/java/com/hiero/sdk/TokenPauseTransaction.java index c751855e03..2f1a7b6168 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenPauseTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenPauseTransaction.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenPauseTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenServiceGrpc; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenPauseTransactionBody; +import com.hiero.sdk.proto.TokenServiceGrpc; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -58,7 +58,7 @@ public TokenPauseTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - TokenPauseTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + TokenPauseTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -68,7 +68,7 @@ public TokenPauseTransaction() { * * @param txBody protobuf TransactionBody */ - TokenPauseTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + TokenPauseTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -107,7 +107,7 @@ void initFromTransactionBody() { * Build the transaction body. * * @return {@link - * com.hedera.hashgraph.sdk.proto.TokenPauseTransactionBody} + * com.hiero.sdk.proto.TokenPauseTransactionBody} */ TokenPauseTransactionBody.Builder build() { var builder = TokenPauseTransactionBody.newBuilder(); @@ -119,7 +119,7 @@ TokenPauseTransactionBody.Builder build() { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return TokenServiceGrpc.getPauseTokenMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenRejectFlow.java b/sdk/src/main/java/com/hiero/sdk/TokenRejectFlow.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenRejectFlow.java rename to sdk/src/main/java/com/hiero/sdk/TokenRejectFlow.java index 5015aeb2db..dea356237b 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenRejectFlow.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenRejectFlow.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import java.time.Duration; import java.util.ArrayList; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenRejectTransaction.java b/sdk/src/main/java/com/hiero/sdk/TokenRejectTransaction.java similarity index 89% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenRejectTransaction.java rename to sdk/src/main/java/com/hiero/sdk/TokenRejectTransaction.java index 6e45d54f71..c1e9a000e2 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenRejectTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenRejectTransaction.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenReference; -import com.hedera.hashgraph.sdk.proto.TokenRejectTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenServiceGrpc; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenReference; +import com.hiero.sdk.proto.TokenRejectTransactionBody; +import com.hiero.sdk.proto.TokenServiceGrpc; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import java.util.ArrayList; import java.util.LinkedHashMap; @@ -68,7 +68,7 @@ public TokenRejectTransaction() {} * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ TokenRejectTransaction( - LinkedHashMap> txs) + LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); @@ -79,7 +79,7 @@ public TokenRejectTransaction() {} * * @param txBody protobuf TransactionBody */ - TokenRejectTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + TokenRejectTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -170,7 +170,7 @@ public TokenRejectTransaction addNftId(NftId nftId) { /** * Build the transaction body. * - * @return {@link com.hedera.hashgraph.sdk.proto.TokenRejectTransactionBody} + * @return {@link com.hiero.sdk.proto.TokenRejectTransactionBody} */ TokenRejectTransactionBody.Builder build() { var builder = TokenRejectTransactionBody.newBuilder(); @@ -226,7 +226,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return TokenServiceGrpc.getRejectTokenMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenRelationship.java b/sdk/src/main/java/com/hiero/sdk/TokenRelationship.java similarity index 92% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenRelationship.java rename to sdk/src/main/java/com/hiero/sdk/TokenRelationship.java index 6d7bce9051..28bc2e2568 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenRelationship.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenRelationship.java @@ -17,12 +17,12 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.TokenFreezeStatus; -import com.hedera.hashgraph.sdk.proto.TokenKycStatus; +import com.hiero.sdk.proto.TokenFreezeStatus; +import com.hiero.sdk.proto.TokenKycStatus; import javax.annotation.Nullable; @@ -119,7 +119,7 @@ static Boolean kycStatusFromProtobuf(TokenKycStatus kycStatus) { * @param tokenRelationship the protobuf * @return the new token relationship */ - static TokenRelationship fromProtobuf(com.hedera.hashgraph.sdk.proto.TokenRelationship tokenRelationship) { + static TokenRelationship fromProtobuf(com.hiero.sdk.proto.TokenRelationship tokenRelationship) { return new TokenRelationship( TokenId.fromProtobuf(tokenRelationship.getTokenId()), tokenRelationship.getSymbol(), @@ -139,7 +139,7 @@ static TokenRelationship fromProtobuf(com.hedera.hashgraph.sdk.proto.TokenRelati * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ public static TokenRelationship fromBytes(byte[] bytes) throws InvalidProtocolBufferException { - return fromProtobuf(com.hedera.hashgraph.sdk.proto.TokenRelationship.parseFrom(bytes).toBuilder().build()); + return fromProtobuf(com.hiero.sdk.proto.TokenRelationship.parseFrom(bytes).toBuilder().build()); } /** @@ -167,8 +167,8 @@ static TokenKycStatus kycStatusToProtobuf(@Nullable Boolean kycStatus) { * * @return the protobuf representation */ - com.hedera.hashgraph.sdk.proto.TokenRelationship toProtobuf() { - return com.hedera.hashgraph.sdk.proto.TokenRelationship.newBuilder() + com.hiero.sdk.proto.TokenRelationship toProtobuf() { + return com.hiero.sdk.proto.TokenRelationship.newBuilder() .setTokenId(tokenId.toProtobuf()) .setSymbol(symbol) .setBalance(balance) diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenRevokeKycTransaction.java b/sdk/src/main/java/com/hiero/sdk/TokenRevokeKycTransaction.java similarity index 84% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenRevokeKycTransaction.java rename to sdk/src/main/java/com/hiero/sdk/TokenRevokeKycTransaction.java index 15f60d6eb1..5693c94e0f 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenRevokeKycTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenRevokeKycTransaction.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenRevokeKycTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenServiceGrpc; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenRevokeKycTransactionBody; +import com.hiero.sdk.proto.TokenServiceGrpc; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -39,7 +39,7 @@ * * See Hedera Documentation */ -public class TokenRevokeKycTransaction extends com.hedera.hashgraph.sdk.Transaction { +public class TokenRevokeKycTransaction extends com.hiero.sdk.Transaction { /** * The token ID that is associated with the account to remove the KYC flag for */ @@ -64,7 +64,7 @@ public TokenRevokeKycTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - TokenRevokeKycTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + TokenRevokeKycTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -74,7 +74,7 @@ public TokenRevokeKycTransaction() { * * @param txBody protobuf TransactionBody */ - TokenRevokeKycTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + TokenRevokeKycTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -140,7 +140,7 @@ void initFromTransactionBody() { * Build the transaction body. * * @return {@link - * com.hedera.hashgraph.sdk.proto.TokenRevokeKycTransactionBody} + * com.hiero.sdk.proto.TokenRevokeKycTransactionBody} */ TokenRevokeKycTransactionBody.Builder build() { var builder = TokenRevokeKycTransactionBody.newBuilder(); @@ -167,7 +167,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return TokenServiceGrpc.getFreezeTokenAccountMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenSupplyType.java b/sdk/src/main/java/com/hiero/sdk/TokenSupplyType.java similarity index 79% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenSupplyType.java rename to sdk/src/main/java/com/hiero/sdk/TokenSupplyType.java index dc973b2a3b..ee7f0317f1 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenSupplyType.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenSupplyType.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; /** * Possible Token Supply Types (IWA Compatibility). @@ -30,20 +30,20 @@ public enum TokenSupplyType { /** * Indicates that tokens of that type have an upper bound of Long.MAX_VALUE. */ - INFINITE(com.hedera.hashgraph.sdk.proto.TokenSupplyType.INFINITE), + INFINITE(com.hiero.sdk.proto.TokenSupplyType.INFINITE), /** * Indicates that tokens of that type have an upper bound of maxSupply, provided on token creation. */ - FINITE(com.hedera.hashgraph.sdk.proto.TokenSupplyType.FINITE); + FINITE(com.hiero.sdk.proto.TokenSupplyType.FINITE); - final com.hedera.hashgraph.sdk.proto.TokenSupplyType code; + final com.hiero.sdk.proto.TokenSupplyType code; /** * Constructor. * * @param code the token supply type */ - TokenSupplyType(com.hedera.hashgraph.sdk.proto.TokenSupplyType code) { + TokenSupplyType(com.hiero.sdk.proto.TokenSupplyType code) { this.code = code; } @@ -53,7 +53,7 @@ public enum TokenSupplyType { * @param code the token supply type in question * @return the token supply type */ - static TokenSupplyType valueOf(com.hedera.hashgraph.sdk.proto.TokenSupplyType code) { + static TokenSupplyType valueOf(com.hiero.sdk.proto.TokenSupplyType code) { return switch (code) { case INFINITE -> INFINITE; case FINITE -> FINITE; @@ -69,7 +69,7 @@ public String toString() { }; } - public com.hedera.hashgraph.sdk.proto.TokenSupplyType toProtobuf() { + public com.hiero.sdk.proto.TokenSupplyType toProtobuf() { return this.code; } } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenTransfer.java b/sdk/src/main/java/com/hiero/sdk/TokenTransfer.java similarity index 94% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenTransfer.java rename to sdk/src/main/java/com/hiero/sdk/TokenTransfer.java index 3261d6f344..c29d82620b 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenTransfer.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenTransfer.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; -import com.hedera.hashgraph.sdk.proto.AccountAmount; +import com.hiero.sdk.proto.AccountAmount; import javax.annotation.Nullable; import java.util.ArrayList; @@ -76,7 +76,7 @@ public class TokenTransfer { * @param tokenTransferLists the protobuf * @return the list of token transfer records */ - static List fromProtobuf(List tokenTransferLists) { + static List fromProtobuf(List tokenTransferLists) { var transfers = new ArrayList(); for (var tokenTransferList : tokenTransferLists) { diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenTransferList.java b/sdk/src/main/java/com/hiero/sdk/TokenTransferList.java similarity index 87% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenTransferList.java rename to sdk/src/main/java/com/hiero/sdk/TokenTransferList.java index 3d45b41acf..3a847484d8 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenTransferList.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenTransferList.java @@ -17,11 +17,11 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.UInt32Value; -import com.hedera.hashgraph.sdk.proto.AccountAmount; -import com.hedera.hashgraph.sdk.proto.NftTransfer; +import com.hiero.sdk.proto.AccountAmount; +import com.hiero.sdk.proto.NftTransfer; import java.util.ArrayList; import java.util.List; import javax.annotation.Nullable; @@ -47,7 +47,7 @@ class TokenTransferList { } } - com.hedera.hashgraph.sdk.proto.TokenTransferList toProtobuf() { + com.hiero.sdk.proto.TokenTransferList toProtobuf() { var transfers = new ArrayList(); var nftTransfers = new ArrayList(); @@ -59,7 +59,7 @@ com.hedera.hashgraph.sdk.proto.TokenTransferList toProtobuf() { nftTransfers.add(transfer.toProtobuf()); } - var builder = com.hedera.hashgraph.sdk.proto.TokenTransferList.newBuilder() + var builder = com.hiero.sdk.proto.TokenTransferList.newBuilder() .setToken(tokenId.toProtobuf()) .addAllTransfers(transfers) .addAllNftTransfers(nftTransfers); diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenType.java b/sdk/src/main/java/com/hiero/sdk/TokenType.java similarity index 83% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenType.java rename to sdk/src/main/java/com/hiero/sdk/TokenType.java index 38a9e7511a..853800cd6f 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenType.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenType.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; /** * Possible Token Types (IWA Compatibility). @@ -34,21 +34,21 @@ public enum TokenType { * Interchangeable value with one another, where any quantity of them has the same value as another equal quantity if they are in the same class. * Share a single set of properties, not distinct from one another. Simply represented as a balance or quantity to a given Hedera account. */ - FUNGIBLE_COMMON(com.hedera.hashgraph.sdk.proto.TokenType.FUNGIBLE_COMMON), + FUNGIBLE_COMMON(com.hiero.sdk.proto.TokenType.FUNGIBLE_COMMON), /** * Unique, not interchangeable with other tokens of the same type as they typically have different values. * Individually traced and can carry unique properties (e.g. serial number). */ - NON_FUNGIBLE_UNIQUE(com.hedera.hashgraph.sdk.proto.TokenType.NON_FUNGIBLE_UNIQUE); + NON_FUNGIBLE_UNIQUE(com.hiero.sdk.proto.TokenType.NON_FUNGIBLE_UNIQUE); - final com.hedera.hashgraph.sdk.proto.TokenType code; + final com.hiero.sdk.proto.TokenType code; /** * Constructor. * * @param code the token type */ - TokenType(com.hedera.hashgraph.sdk.proto.TokenType code) { + TokenType(com.hiero.sdk.proto.TokenType code) { this.code = code; } @@ -58,7 +58,7 @@ public enum TokenType { * @param code the token type in question * @return the token type */ - static TokenType valueOf(com.hedera.hashgraph.sdk.proto.TokenType code) { + static TokenType valueOf(com.hiero.sdk.proto.TokenType code) { return switch (code) { case FUNGIBLE_COMMON -> FUNGIBLE_COMMON; case NON_FUNGIBLE_UNIQUE -> NON_FUNGIBLE_UNIQUE; @@ -74,7 +74,7 @@ public String toString() { }; } - public com.hedera.hashgraph.sdk.proto.TokenType toProtobuf() { + public com.hiero.sdk.proto.TokenType toProtobuf() { return this.code; } } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenUnfreezeTransaction.java b/sdk/src/main/java/com/hiero/sdk/TokenUnfreezeTransaction.java similarity index 83% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenUnfreezeTransaction.java rename to sdk/src/main/java/com/hiero/sdk/TokenUnfreezeTransaction.java index fc7daa2b7c..a5a8e11c52 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenUnfreezeTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenUnfreezeTransaction.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenServiceGrpc; -import com.hedera.hashgraph.sdk.proto.TokenUnfreezeAccountTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenServiceGrpc; +import com.hiero.sdk.proto.TokenUnfreezeAccountTransactionBody; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -38,7 +38,7 @@ * * See Hedera Documentation */ -public class TokenUnfreezeTransaction extends com.hedera.hashgraph.sdk.Transaction { +public class TokenUnfreezeTransaction extends com.hiero.sdk.Transaction { @Nullable private TokenId tokenId = null; @Nullable @@ -57,7 +57,7 @@ public TokenUnfreezeTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - TokenUnfreezeTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + TokenUnfreezeTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -67,7 +67,7 @@ public TokenUnfreezeTransaction() { * * @param txBody protobuf TransactionBody */ - TokenUnfreezeTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + TokenUnfreezeTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -136,7 +136,7 @@ void initFromTransactionBody() { * Build the transaction body. * * @return {@code @link - * com.hedera.hashgraph.sdk.proto.TokenUnfreezeAccountTransactionBody} + * com.hiero.sdk.proto.TokenUnfreezeAccountTransactionBody} */ TokenUnfreezeAccountTransactionBody.Builder build() { var builder = TokenUnfreezeAccountTransactionBody.newBuilder(); @@ -163,7 +163,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return TokenServiceGrpc.getFreezeTokenAccountMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenUnpauseTransaction.java b/sdk/src/main/java/com/hiero/sdk/TokenUnpauseTransaction.java similarity index 83% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenUnpauseTransaction.java rename to sdk/src/main/java/com/hiero/sdk/TokenUnpauseTransaction.java index e71e980460..9b1fbd7abf 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenUnpauseTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenUnpauseTransaction.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenServiceGrpc; -import com.hedera.hashgraph.sdk.proto.TokenUnpauseTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenServiceGrpc; +import com.hiero.sdk.proto.TokenUnpauseTransactionBody; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -56,7 +56,7 @@ public TokenUnpauseTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - TokenUnpauseTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + TokenUnpauseTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -66,7 +66,7 @@ public TokenUnpauseTransaction() { * * @param txBody protobuf TransactionBody */ - TokenUnpauseTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + TokenUnpauseTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -108,7 +108,7 @@ void initFromTransactionBody() { * Build the transaction body. * * @return {@link - * com.hedera.hashgraph.sdk.proto.TokenUnpauseTransactionBody} + * com.hiero.sdk.proto.TokenUnpauseTransactionBody} */ TokenUnpauseTransactionBody.Builder build() { var builder = TokenUnpauseTransactionBody.newBuilder(); @@ -120,7 +120,7 @@ TokenUnpauseTransactionBody.Builder build() { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return TokenServiceGrpc.getUnpauseTokenMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenUpdateNftsTransaction.java b/sdk/src/main/java/com/hiero/sdk/TokenUpdateNftsTransaction.java similarity index 88% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenUpdateNftsTransaction.java rename to sdk/src/main/java/com/hiero/sdk/TokenUpdateNftsTransaction.java index 523d0365fe..298319ea0c 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenUpdateNftsTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenUpdateNftsTransaction.java @@ -17,16 +17,16 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.BytesValue; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenServiceGrpc; -import com.hedera.hashgraph.sdk.proto.TokenUpdateNftsTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenServiceGrpc; +import com.hiero.sdk.proto.TokenUpdateNftsTransactionBody; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import java.util.ArrayList; import java.util.LinkedHashMap; @@ -66,13 +66,13 @@ public TokenUpdateNftsTransaction() { * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ TokenUpdateNftsTransaction( - LinkedHashMap> txs) + LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } - TokenUpdateNftsTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + TokenUpdateNftsTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -173,7 +173,7 @@ void initFromTransactionBody() { /** * Build the transaction body. * - * @return {@link com.hedera.hashgraph.sdk.proto.TokenUpdateNftsTransactionBody} + * @return {@link com.hiero.sdk.proto.TokenUpdateNftsTransactionBody} */ TokenUpdateNftsTransactionBody.Builder build() { var builder = TokenUpdateNftsTransactionBody.newBuilder(); @@ -201,7 +201,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return TokenServiceGrpc.getUpdateNftsMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenUpdateTransaction.java b/sdk/src/main/java/com/hiero/sdk/TokenUpdateTransaction.java similarity index 96% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenUpdateTransaction.java rename to sdk/src/main/java/com/hiero/sdk/TokenUpdateTransaction.java index 39a27fba0e..fba7355884 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenUpdateTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenUpdateTransaction.java @@ -17,17 +17,17 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.BytesValue; import com.google.protobuf.InvalidProtocolBufferException; import com.google.protobuf.StringValue; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenServiceGrpc; -import com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenServiceGrpc; +import com.hiero.sdk.proto.TokenUpdateTransactionBody; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import java.time.Duration; import java.time.Instant; @@ -178,7 +178,7 @@ public TokenUpdateTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - TokenUpdateTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + TokenUpdateTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -188,7 +188,7 @@ public TokenUpdateTransaction() { * * @param txBody protobuf TransactionBody */ - TokenUpdateTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + TokenUpdateTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -674,7 +674,7 @@ void initFromTransactionBody() { * Build the transaction body. * * @return {@link - * com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody} + * com.hiero.sdk.proto.TokenUpdateTransactionBody} */ TokenUpdateTransactionBody.Builder build() { var builder = TokenUpdateTransactionBody.newBuilder(); @@ -747,7 +747,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return TokenServiceGrpc.getUpdateTokenMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenWipeTransaction.java b/sdk/src/main/java/com/hiero/sdk/TokenWipeTransaction.java similarity index 89% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TokenWipeTransaction.java rename to sdk/src/main/java/com/hiero/sdk/TokenWipeTransaction.java index 905d784691..750fa5a67a 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TokenWipeTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/TokenWipeTransaction.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenServiceGrpc; -import com.hedera.hashgraph.sdk.proto.TokenWipeAccountTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenServiceGrpc; +import com.hiero.sdk.proto.TokenWipeAccountTransactionBody; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import javax.annotation.Nonnegative; @@ -42,7 +42,7 @@ * * See Hedera Documentation */ -public class TokenWipeTransaction extends com.hedera.hashgraph.sdk.Transaction { +public class TokenWipeTransaction extends com.hiero.sdk.Transaction { /** * The ID of the token to wipe from the account */ @@ -80,7 +80,7 @@ public TokenWipeTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - TokenWipeTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + TokenWipeTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -90,7 +90,7 @@ public TokenWipeTransaction() { * * @param txBody protobuf TransactionBody */ - TokenWipeTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + TokenWipeTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -216,7 +216,7 @@ void initFromTransactionBody() { * Build the transaction body. * * @return {@link - * com.hedera.hashgraph.sdk.proto.TokenWipeAccountTransactionBody} + * com.hiero.sdk.proto.TokenWipeAccountTransactionBody} */ TokenWipeAccountTransactionBody.Builder build() { var builder = TokenWipeAccountTransactionBody.newBuilder(); @@ -247,7 +247,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return TokenServiceGrpc.getWipeTokenAccountMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TopicCreateTransaction.java b/sdk/src/main/java/com/hiero/sdk/TopicCreateTransaction.java similarity index 93% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TopicCreateTransaction.java rename to sdk/src/main/java/com/hiero/sdk/TopicCreateTransaction.java index 73bf7509d7..04705b62d0 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TopicCreateTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/TopicCreateTransaction.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.ConsensusCreateTopicTransactionBody; -import com.hedera.hashgraph.sdk.proto.ConsensusServiceGrpc; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.ConsensusCreateTopicTransactionBody; +import com.hiero.sdk.proto.ConsensusServiceGrpc; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import java.time.Duration; @@ -107,7 +107,7 @@ public TopicCreateTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - TopicCreateTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + TopicCreateTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -117,7 +117,7 @@ public TopicCreateTransaction() { * * @param txBody protobuf TransactionBody */ - TopicCreateTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + TopicCreateTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -282,7 +282,7 @@ void initFromTransactionBody() { * Build the transaction body. * * @return {@link - * com.hedera.hashgraph.sdk.proto.ConsensusCreateTopicTransactionBody} + * com.hiero.sdk.proto.ConsensusCreateTopicTransactionBody} */ ConsensusCreateTopicTransactionBody.Builder build() { var builder = ConsensusCreateTopicTransactionBody.newBuilder(); @@ -311,7 +311,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return ConsensusServiceGrpc.getCreateTopicMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TopicDeleteTransaction.java b/sdk/src/main/java/com/hiero/sdk/TopicDeleteTransaction.java similarity index 82% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TopicDeleteTransaction.java rename to sdk/src/main/java/com/hiero/sdk/TopicDeleteTransaction.java index 2f5ad1e6c2..94077f8c0f 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TopicDeleteTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/TopicDeleteTransaction.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.ConsensusDeleteTopicTransactionBody; -import com.hedera.hashgraph.sdk.proto.ConsensusServiceGrpc; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.ConsensusDeleteTopicTransactionBody; +import com.hiero.sdk.proto.ConsensusServiceGrpc; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -56,7 +56,7 @@ public TopicDeleteTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - TopicDeleteTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + TopicDeleteTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -66,7 +66,7 @@ public TopicDeleteTransaction() { * * @param txBody protobuf TransactionBody */ - TopicDeleteTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + TopicDeleteTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -108,7 +108,7 @@ void initFromTransactionBody() { * Build the transaction body. * * @return {@link - * com.hedera.hashgraph.sdk.proto.ConsensusDeleteTopicTransactionBody} + * com.hiero.sdk.proto.ConsensusDeleteTopicTransactionBody} */ ConsensusDeleteTopicTransactionBody.Builder build() { var builder = ConsensusDeleteTopicTransactionBody.newBuilder(); @@ -127,7 +127,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return ConsensusServiceGrpc.getDeleteTopicMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TopicId.java b/sdk/src/main/java/com/hiero/sdk/TopicId.java similarity index 98% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TopicId.java rename to sdk/src/main/java/com/hiero/sdk/TopicId.java index 6961592b48..3dc5a91573 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TopicId.java +++ b/sdk/src/main/java/com/hiero/sdk/TopicId.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.TopicID; +import com.hiero.sdk.proto.TopicID; import javax.annotation.Nonnegative; import javax.annotation.Nullable; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TopicInfo.java b/sdk/src/main/java/com/hiero/sdk/TopicInfo.java similarity index 97% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TopicInfo.java rename to sdk/src/main/java/com/hiero/sdk/TopicInfo.java index 70cdbd5943..2fb6165e5d 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TopicInfo.java +++ b/sdk/src/main/java/com/hiero/sdk/TopicInfo.java @@ -17,13 +17,13 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.ConsensusGetTopicInfoResponse; -import com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo; +import com.hiero.sdk.proto.ConsensusGetTopicInfoResponse; +import com.hiero.sdk.proto.ConsensusTopicInfo; import java.time.Duration; import java.time.Instant; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TopicInfoQuery.java b/sdk/src/main/java/com/hiero/sdk/TopicInfoQuery.java similarity index 79% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TopicInfoQuery.java rename to sdk/src/main/java/com/hiero/sdk/TopicInfoQuery.java index 65136b8fff..6407ea4e42 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TopicInfoQuery.java +++ b/sdk/src/main/java/com/hiero/sdk/TopicInfoQuery.java @@ -17,13 +17,13 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.ConsensusGetTopicInfoQuery; -import com.hedera.hashgraph.sdk.proto.ConsensusServiceGrpc; -import com.hedera.hashgraph.sdk.proto.QueryHeader; -import com.hedera.hashgraph.sdk.proto.Response; -import com.hedera.hashgraph.sdk.proto.ResponseHeader; +import com.hiero.sdk.proto.ConsensusGetTopicInfoQuery; +import com.hiero.sdk.proto.ConsensusServiceGrpc; +import com.hiero.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.Response; +import com.hiero.sdk.proto.ResponseHeader; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -74,7 +74,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - void onMakeRequest(com.hedera.hashgraph.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { + void onMakeRequest(com.hiero.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { var builder = ConsensusGetTopicInfoQuery.newBuilder(); if (topicId != null) { builder.setTopicID(topicId.toProtobuf()); @@ -89,17 +89,17 @@ ResponseHeader mapResponseHeader(Response response) { } @Override - QueryHeader mapRequestHeader(com.hedera.hashgraph.sdk.proto.Query request) { + QueryHeader mapRequestHeader(com.hiero.sdk.proto.Query request) { return request.getConsensusGetTopicInfo().getHeader(); } @Override - TopicInfo mapResponse(Response response, AccountId nodeId, com.hedera.hashgraph.sdk.proto.Query request) { + TopicInfo mapResponse(Response response, AccountId nodeId, com.hiero.sdk.proto.Query request) { return TopicInfo.fromProtobuf(response.getConsensusGetTopicInfo()); } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return ConsensusServiceGrpc.getGetTopicInfoMethod(); } } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TopicMessage.java b/sdk/src/main/java/com/hiero/sdk/TopicMessage.java similarity index 98% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TopicMessage.java rename to sdk/src/main/java/com/hiero/sdk/TopicMessage.java index 69bb8f2efa..cf90fd046a 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TopicMessage.java +++ b/sdk/src/main/java/com/hiero/sdk/TopicMessage.java @@ -17,11 +17,11 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.ByteString; -import com.hedera.hashgraph.sdk.proto.mirror.ConsensusTopicResponse; +import com.hiero.sdk.proto.mirror.ConsensusTopicResponse; import java.time.Instant; import javax.annotation.Nullable; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TopicMessageChunk.java b/sdk/src/main/java/com/hiero/sdk/TopicMessageChunk.java similarity index 92% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TopicMessageChunk.java rename to sdk/src/main/java/com/hiero/sdk/TopicMessageChunk.java index 3c1dd4302b..299d3f78ac 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TopicMessageChunk.java +++ b/sdk/src/main/java/com/hiero/sdk/TopicMessageChunk.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.mirror.ConsensusTopicResponse; +import com.hiero.sdk.proto.mirror.ConsensusTopicResponse; import java.time.Instant; /** diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TopicMessageQuery.java b/sdk/src/main/java/com/hiero/sdk/TopicMessageQuery.java similarity index 97% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TopicMessageQuery.java rename to sdk/src/main/java/com/hiero/sdk/TopicMessageQuery.java index 6a9b151077..178096cf89 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TopicMessageQuery.java +++ b/sdk/src/main/java/com/hiero/sdk/TopicMessageQuery.java @@ -17,13 +17,13 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.Timestamp; -import com.hedera.hashgraph.sdk.proto.TransactionID; -import com.hedera.hashgraph.sdk.proto.mirror.ConsensusServiceGrpc; -import com.hedera.hashgraph.sdk.proto.mirror.ConsensusTopicQuery; -import com.hedera.hashgraph.sdk.proto.mirror.ConsensusTopicResponse; +import com.hiero.sdk.proto.Timestamp; +import com.hiero.sdk.proto.TransactionID; +import com.hiero.sdk.proto.mirror.ConsensusServiceGrpc; +import com.hiero.sdk.proto.mirror.ConsensusTopicQuery; +import com.hiero.sdk.proto.mirror.ConsensusTopicResponse; import io.grpc.CallOptions; import io.grpc.ClientCall; import io.grpc.Status; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TopicMessageSubmitTransaction.java b/sdk/src/main/java/com/hiero/sdk/TopicMessageSubmitTransaction.java similarity index 87% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TopicMessageSubmitTransaction.java rename to sdk/src/main/java/com/hiero/sdk/TopicMessageSubmitTransaction.java index 01df81950c..618c569ced 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TopicMessageSubmitTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/TopicMessageSubmitTransaction.java @@ -17,17 +17,17 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.ConsensusMessageChunkInfo; -import com.hedera.hashgraph.sdk.proto.ConsensusServiceGrpc; -import com.hedera.hashgraph.sdk.proto.ConsensusSubmitMessageTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionID; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.ConsensusMessageChunkInfo; +import com.hiero.sdk.proto.ConsensusServiceGrpc; +import com.hiero.sdk.proto.ConsensusSubmitMessageTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionID; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -62,7 +62,7 @@ public TopicMessageSubmitTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - TopicMessageSubmitTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + TopicMessageSubmitTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -72,7 +72,7 @@ public TopicMessageSubmitTransaction() { * * @param txBody protobuf TransactionBody */ - TopicMessageSubmitTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + TopicMessageSubmitTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -169,7 +169,7 @@ void initFromTransactionBody() { * Build the transaction body. * * @return {@link - * com.hedera.hashgraph.sdk.proto.ConsensusSubmitMessageTransactionBody} + * com.hiero.sdk.proto.ConsensusSubmitMessageTransactionBody} */ ConsensusSubmitMessageTransactionBody.Builder build() { var builder = ConsensusSubmitMessageTransactionBody.newBuilder(); @@ -189,7 +189,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return ConsensusServiceGrpc.getSubmitMessageMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TopicUpdateTransaction.java b/sdk/src/main/java/com/hiero/sdk/TopicUpdateTransaction.java similarity index 93% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TopicUpdateTransaction.java rename to sdk/src/main/java/com/hiero/sdk/TopicUpdateTransaction.java index e8743dc533..2c9737ebca 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TopicUpdateTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/TopicUpdateTransaction.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; import com.google.protobuf.StringValue; -import com.hedera.hashgraph.sdk.proto.ConsensusServiceGrpc; -import com.hedera.hashgraph.sdk.proto.ConsensusUpdateTopicTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.ConsensusServiceGrpc; +import com.hiero.sdk.proto.ConsensusUpdateTopicTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.MethodDescriptor; import java.time.Duration; import java.time.Instant; @@ -97,7 +97,7 @@ public TopicUpdateTransaction() { * records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - TopicUpdateTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { + TopicUpdateTransaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); } @@ -107,7 +107,7 @@ public TopicUpdateTransaction() { * * @param txBody protobuf TransactionBody */ - TopicUpdateTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + TopicUpdateTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -361,7 +361,7 @@ void initFromTransactionBody() { * Build the transaction body. * * @return {@link - * com.hedera.hashgraph.sdk.proto.ConsensusUpdateTopicTransactionBody} + * com.hiero.sdk.proto.ConsensusUpdateTopicTransactionBody} */ ConsensusUpdateTopicTransactionBody.Builder build() { var builder = ConsensusUpdateTopicTransactionBody.newBuilder(); @@ -403,7 +403,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return ConsensusServiceGrpc.getUpdateTopicMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/Transaction.java b/sdk/src/main/java/com/hiero/sdk/Transaction.java similarity index 96% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/Transaction.java rename to sdk/src/main/java/com/hiero/sdk/Transaction.java index 488ba06f4c..3544724704 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/Transaction.java +++ b/sdk/src/main/java/com/hiero/sdk/Transaction.java @@ -17,16 +17,16 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.SignatureMap; -import com.hedera.hashgraph.sdk.proto.SignaturePair; -import com.hedera.hashgraph.sdk.proto.SignedTransaction; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionList; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.SignatureMap; +import com.hiero.sdk.proto.SignaturePair; +import com.hiero.sdk.proto.SignedTransaction; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionList; import java.lang.reflect.Modifier; import java.time.Duration; import java.time.Instant; @@ -52,7 +52,7 @@ */ public abstract class Transaction> extends - Executable { + Executable { /** * Default auto renew duration for accounts, contracts, topics, and files (entities) @@ -92,14 +92,14 @@ public abstract class Transaction> * except pointing to different nodes. When retrying a transaction after a network error or retry-able status * response, we try a different transaction and thus a different node. */ - protected List outerTransactions = Collections.emptyList(); + protected List outerTransactions = Collections.emptyList(); /** * An SDK [Transaction] is composed of multiple, raw protobuf transactions. These should be functionally identical, * except pointing to different nodes. When retrying a transaction after a network error or retry-able status * response, we try a different transaction and thus a different node. */ - protected List innerSignedTransactions = Collections.emptyList(); + protected List innerSignedTransactions = Collections.emptyList(); /** * A set of signatures corresponding to every unique public key used to sign the transaction. @@ -154,7 +154,7 @@ public abstract class Transaction> * * @param txBody protobuf TransactionBody */ - Transaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + Transaction(com.hiero.sdk.proto.TransactionBody txBody) { setTransactionValidDuration(DEFAULT_TRANSACTION_VALID_DURATION); setMaxTransactionFee(Hbar.fromTinybars(txBody.getTransactionFee())); setTransactionMemo(txBody.getMemo()); @@ -170,9 +170,9 @@ public abstract class Transaction> * @param txs Compound list of transaction id's list of (AccountId, Transaction) records * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ - Transaction(LinkedHashMap> txs) + Transaction(LinkedHashMap> txs) throws InvalidProtocolBufferException { - LinkedHashMap transactionMap = txs.values().iterator().next(); + LinkedHashMap transactionMap = txs.values().iterator().next(); if (!transactionMap.isEmpty() && transactionMap.keySet().iterator().next().equals(DUMMY_ACCOUNT_ID)) { // If the first account ID is a dummy account ID, then only the source TransactionBody needs to be copied. var signedTransaction = SignedTransaction.parseFrom(transactionMap.values().iterator().next().getSignedTransactionBytes()); @@ -252,13 +252,13 @@ public abstract class Transaction> * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ public static Transaction fromBytes(byte[] bytes) throws InvalidProtocolBufferException { - var txs = new LinkedHashMap>(); + var txs = new LinkedHashMap>(); TransactionBody.DataCase dataCase = TransactionBody.DataCase.DATA_NOT_SET; var list = TransactionList.parseFrom(bytes); if (list.getTransactionListList().isEmpty()) { - var transaction = com.hedera.hashgraph.sdk.proto.Transaction.parseFrom(bytes).toBuilder(); + var transaction = com.hiero.sdk.proto.Transaction.parseFrom(bytes).toBuilder(); TransactionBody txBody; if (transaction.getSignedTransactionBytes().isEmpty()) { @@ -283,7 +283,7 @@ public static Transaction fromBytes(byte[] bytes) throws InvalidProtocolBuffe var transactionId = txBody.hasTransactionID() ? TransactionId.fromProtobuf(txBody.getTransactionID()) : DUMMY_TRANSACTION_ID; - var linked = new LinkedHashMap(); + var linked = new LinkedHashMap(); linked.put(account, transaction.build()); txs.put(transactionId, linked); } else { @@ -302,7 +302,7 @@ public static Transaction fromBytes(byte[] bytes) throws InvalidProtocolBuffe var linked = txs.containsKey(transactionId) ? Objects.requireNonNull(txs.get(transactionId)) : - new LinkedHashMap(); + new LinkedHashMap(); linked.put(account, transaction); @@ -372,7 +372,7 @@ public static Transaction fromBytes(byte[] bytes) throws InvalidProtocolBuffe * @return the new transaction */ public static Transaction fromScheduledTransaction( - com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody scheduled) { + com.hiero.sdk.proto.SchedulableTransactionBody scheduled) { var body = TransactionBody.newBuilder() .setMemo(scheduled.getMemo()) .setTransactionFee(scheduled.getTransactionFee()); @@ -738,7 +738,7 @@ public byte[] toBytes() { .setBodyBytes(bodyBuilder.build().toByteString()) .build(); - var transaction = com.hedera.hashgraph.sdk.proto.Transaction.newBuilder() + var transaction = com.hiero.sdk.proto.Transaction.newBuilder() .setSignedTransactionBytes(signedTransaction.toByteString()) .build(); @@ -1225,7 +1225,7 @@ void buildTransaction(int index) { signTransaction(index); - outerTransactions.set(index, com.hedera.hashgraph.sdk.proto.Transaction.newBuilder() + outerTransactions.set(index, com.hiero.sdk.proto.Transaction.newBuilder() .setSignedTransactionBytes( innerSignedTransactions.get(index) .setSigMap(sigPairLists.get(index)) @@ -1272,7 +1272,7 @@ void signTransaction(int index) { abstract void onScheduled(SchedulableTransactionBody.Builder scheduled); @Override - final com.hedera.hashgraph.sdk.proto.Transaction makeRequest() { + final com.hiero.sdk.proto.Transaction makeRequest() { var index = nodeAccountIds.getIndex() + (transactionIds.getIndex() * nodeAccountIds.size()); buildTransaction(index); @@ -1282,9 +1282,9 @@ final com.hedera.hashgraph.sdk.proto.Transaction makeRequest() { @Override TransactionResponse mapResponse( - com.hedera.hashgraph.sdk.proto.TransactionResponse transactionResponse, + com.hiero.sdk.proto.TransactionResponse transactionResponse, AccountId nodeId, - com.hedera.hashgraph.sdk.proto.Transaction request + com.hiero.sdk.proto.Transaction request ) { var transactionId = Objects.requireNonNull(getTransactionIdInternal()); var hash = hash(request.getSignedTransactionBytes().toByteArray()); @@ -1293,7 +1293,7 @@ TransactionResponse mapResponse( } @Override - final Status mapResponseStatus(com.hedera.hashgraph.sdk.proto.TransactionResponse transactionResponse) { + final Status mapResponseStatus(com.hiero.sdk.proto.TransactionResponse transactionResponse) { return Status.valueOf(transactionResponse.getNodeTransactionPrecheckCode()); } @@ -1335,7 +1335,7 @@ CompletableFuture onExecuteAsync(Client client) { } @Override - ExecutionState getExecutionState(Status status, com.hedera.hashgraph.sdk.proto.TransactionResponse response) { + ExecutionState getExecutionState(Status status, com.hiero.sdk.proto.TransactionResponse response) { if (status == Status.TRANSACTION_EXPIRED) { if ((regenerateTransactionId != null && !regenerateTransactionId) || transactionIds.isLocked()) { return ExecutionState.REQUEST_ERROR; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TransactionFeeSchedule.java b/sdk/src/main/java/com/hiero/sdk/TransactionFeeSchedule.java similarity index 91% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TransactionFeeSchedule.java rename to sdk/src/main/java/com/hiero/sdk/TransactionFeeSchedule.java index a5b893ee8d..1f579b4bcb 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TransactionFeeSchedule.java +++ b/sdk/src/main/java/com/hiero/sdk/TransactionFeeSchedule.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.InvalidProtocolBufferException; @@ -54,7 +54,7 @@ public TransactionFeeSchedule() { * @param transactionFeeSchedule the protobuf * @return the new transaction fee schedule */ - static TransactionFeeSchedule fromProtobuf(com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule transactionFeeSchedule) { + static TransactionFeeSchedule fromProtobuf(com.hiero.sdk.proto.TransactionFeeSchedule transactionFeeSchedule) { var returnFeeSchedule = new TransactionFeeSchedule() .setRequestType(RequestType.valueOf(transactionFeeSchedule.getHederaFunctionality())) .setFeeData(transactionFeeSchedule.hasFeeData() ? FeeData.fromProtobuf(transactionFeeSchedule.getFeeData()) : null); @@ -72,7 +72,7 @@ static TransactionFeeSchedule fromProtobuf(com.hedera.hashgraph.sdk.proto.Transa * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ public static TransactionFeeSchedule fromBytes(byte[] bytes) throws InvalidProtocolBufferException { - return fromProtobuf(com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule.parseFrom(bytes).toBuilder().build()); + return fromProtobuf(com.hiero.sdk.proto.TransactionFeeSchedule.parseFrom(bytes).toBuilder().build()); } /** @@ -142,10 +142,10 @@ public TransactionFeeSchedule addFee(FeeData fee) { * Build the transaction body. * * @return {@link - * com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule} + * com.hiero.sdk.proto.TransactionFeeSchedule} */ - com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule toProtobuf() { - var returnBuilder = com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule.newBuilder() + com.hiero.sdk.proto.TransactionFeeSchedule toProtobuf() { + var returnBuilder = com.hiero.sdk.proto.TransactionFeeSchedule.newBuilder() .setHederaFunctionality(getRequestType().code); if (feeData != null) { returnBuilder.setFeeData(feeData.toProtobuf()); diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TransactionId.java b/sdk/src/main/java/com/hiero/sdk/TransactionId.java similarity index 99% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TransactionId.java rename to sdk/src/main/java/com/hiero/sdk/TransactionId.java index abcbb49381..25637e772b 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TransactionId.java +++ b/sdk/src/main/java/com/hiero/sdk/TransactionId.java @@ -17,13 +17,13 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import static java.util.concurrent.CompletableFuture.completedFuture; import static java.util.concurrent.CompletableFuture.failedFuture; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.TransactionID; +import com.hiero.sdk.proto.TransactionID; import java.time.Duration; import java.time.Instant; import java.util.Objects; @@ -101,7 +101,7 @@ public static TransactionId withValidStart(AccountId accountId, Instant validSta * that will be charged the transaction fees for the transaction. * * @param accountId the ID of the Hedera account that will be charge the transaction fees. - * @return {@link com.hedera.hashgraph.sdk.TransactionId} + * @return {@link com.hiero.sdk.TransactionId} */ public static TransactionId generate(AccountId accountId) { long currentTime; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TransactionReceipt.java b/sdk/src/main/java/com/hiero/sdk/TransactionReceipt.java similarity index 94% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TransactionReceipt.java rename to sdk/src/main/java/com/hiero/sdk/TransactionReceipt.java index 3410ad2e26..7c2c95a45e 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TransactionReceipt.java +++ b/sdk/src/main/java/com/hiero/sdk/TransactionReceipt.java @@ -17,13 +17,13 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.ExchangeRateSet; -import com.hedera.hashgraph.sdk.proto.TimestampSeconds; +import com.hiero.sdk.proto.ExchangeRateSet; +import com.hiero.sdk.proto.TimestampSeconds; import org.bouncycastle.util.encoders.Hex; import javax.annotation.Nullable; @@ -190,7 +190,7 @@ public final class TransactionReceipt { * @return the new transaction receipt */ static TransactionReceipt fromProtobuf( - com.hedera.hashgraph.sdk.proto.TransactionReceipt transactionReceipt, + com.hiero.sdk.proto.TransactionReceipt transactionReceipt, List duplicates, List children, @Nullable TransactionId transactionId @@ -278,12 +278,12 @@ static TransactionReceipt fromProtobuf( * @param transactionReceipt the protobuf * @return the new transaction receipt */ - public static TransactionReceipt fromProtobuf(com.hedera.hashgraph.sdk.proto.TransactionReceipt transactionReceipt) { + public static TransactionReceipt fromProtobuf(com.hiero.sdk.proto.TransactionReceipt transactionReceipt) { return fromProtobuf(transactionReceipt, new ArrayList<>(), new ArrayList<>(), null); } static TransactionReceipt fromProtobuf( - com.hedera.hashgraph.sdk.proto.TransactionReceipt transactionReceipt, + com.hiero.sdk.proto.TransactionReceipt transactionReceipt, @Nullable TransactionId transactionId ) { return fromProtobuf(transactionReceipt, new ArrayList<>(), new ArrayList<>(), transactionId); @@ -297,7 +297,7 @@ static TransactionReceipt fromProtobuf( * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ public static TransactionReceipt fromBytes(byte[] bytes) throws InvalidProtocolBufferException { - return fromProtobuf(com.hedera.hashgraph.sdk.proto.TransactionReceipt.parseFrom(bytes).toBuilder().build()); + return fromProtobuf(com.hiero.sdk.proto.TransactionReceipt.parseFrom(bytes).toBuilder().build()); } /** @@ -319,11 +319,11 @@ public TransactionReceipt validateStatus(boolean shouldValidate) throws ReceiptS * * @return the protobuf representation */ - com.hedera.hashgraph.sdk.proto.TransactionReceipt toProtobuf() { - var transactionReceiptBuilder = com.hedera.hashgraph.sdk.proto.TransactionReceipt.newBuilder() + com.hiero.sdk.proto.TransactionReceipt toProtobuf() { + var transactionReceiptBuilder = com.hiero.sdk.proto.TransactionReceipt.newBuilder() .setStatus(status.code) .setExchangeRate(ExchangeRateSet.newBuilder() - .setCurrentRate(com.hedera.hashgraph.sdk.proto.ExchangeRate.newBuilder() + .setCurrentRate(com.hiero.sdk.proto.ExchangeRate.newBuilder() .setHbarEquiv(exchangeRate.hbars) .setCentEquiv(exchangeRate.cents) .setExpirationTime(TimestampSeconds.newBuilder() diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TransactionReceiptQuery.java b/sdk/src/main/java/com/hiero/sdk/TransactionReceiptQuery.java similarity index 90% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TransactionReceiptQuery.java rename to sdk/src/main/java/com/hiero/sdk/TransactionReceiptQuery.java index 903ca74ae5..5ac61055cd 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TransactionReceiptQuery.java +++ b/sdk/src/main/java/com/hiero/sdk/TransactionReceiptQuery.java @@ -17,13 +17,13 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.CryptoServiceGrpc; -import com.hedera.hashgraph.sdk.proto.QueryHeader; -import com.hedera.hashgraph.sdk.proto.Response; -import com.hedera.hashgraph.sdk.proto.ResponseHeader; -import com.hedera.hashgraph.sdk.proto.TransactionGetReceiptQuery; +import com.hiero.sdk.proto.CryptoServiceGrpc; +import com.hiero.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.Response; +import com.hiero.sdk.proto.ResponseHeader; +import com.hiero.sdk.proto.TransactionGetReceiptQuery; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -134,7 +134,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - void onMakeRequest(com.hedera.hashgraph.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { + void onMakeRequest(com.hiero.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { var builder = TransactionGetReceiptQuery.newBuilder() .setIncludeChildReceipts(includeChildren) .setIncludeDuplicates(includeDuplicates); @@ -153,7 +153,7 @@ Status mapResponseStatus(Response response) { } @Override - TransactionReceipt mapResponse(Response response, AccountId nodeId, com.hedera.hashgraph.sdk.proto.Query request) { + TransactionReceipt mapResponse(Response response, AccountId nodeId, com.hiero.sdk.proto.Query request) { var receiptResponse = response.getTransactionGetReceipt(); var duplicates = mapReceiptList(receiptResponse.getDuplicateTransactionReceiptsList()); var children = mapReceiptList(receiptResponse.getChildTransactionReceiptsList()); @@ -167,7 +167,7 @@ TransactionReceipt mapResponse(Response response, AccountId nodeId, com.hedera.h * @return the list of transaction receipts */ private static List mapReceiptList( - List protoReceiptList + List protoReceiptList ) { List outList = new ArrayList<>(protoReceiptList.size()); for (var protoReceipt : protoReceiptList) { @@ -177,7 +177,7 @@ private static List mapReceiptList( } @Override - QueryHeader mapRequestHeader(com.hedera.hashgraph.sdk.proto.Query request) { + QueryHeader mapRequestHeader(com.hiero.sdk.proto.Query request) { return request.getTransactionGetReceipt().getHeader(); } @@ -187,7 +187,7 @@ ResponseHeader mapResponseHeader(Response response) { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return CryptoServiceGrpc.getGetTransactionReceiptsMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TransactionRecord.java b/sdk/src/main/java/com/hiero/sdk/TransactionRecord.java similarity index 96% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TransactionRecord.java rename to sdk/src/main/java/com/hiero/sdk/TransactionRecord.java index 5b6559d477..f632a9833d 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TransactionRecord.java +++ b/sdk/src/main/java/com/hiero/sdk/TransactionRecord.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.AccountAmount; -import com.hedera.hashgraph.sdk.proto.NftTransfer; -import com.hedera.hashgraph.sdk.proto.TokenTransferList; -import com.hedera.hashgraph.sdk.proto.TransferList; +import com.hiero.sdk.proto.AccountAmount; +import com.hiero.sdk.proto.NftTransfer; +import com.hiero.sdk.proto.TokenTransferList; +import com.hiero.sdk.proto.TransferList; import org.bouncycastle.util.encoders.Hex; import java.time.Instant; @@ -275,7 +275,7 @@ public final class TransactionRecord { * @return the new transaction record */ static TransactionRecord fromProtobuf( - com.hedera.hashgraph.sdk.proto.TransactionRecord transactionRecord, + com.hiero.sdk.proto.TransactionRecord transactionRecord, List children, List duplicates, @Nullable TransactionId transactionId @@ -366,7 +366,7 @@ static TransactionRecord fromProtobuf( * @param transactionRecord the protobuf * @return the new transaction record */ - static TransactionRecord fromProtobuf(com.hedera.hashgraph.sdk.proto.TransactionRecord transactionRecord) { + static TransactionRecord fromProtobuf(com.hiero.sdk.proto.TransactionRecord transactionRecord) { return fromProtobuf(transactionRecord, new ArrayList<>(), new ArrayList<>(), null); } @@ -378,7 +378,7 @@ static TransactionRecord fromProtobuf(com.hedera.hashgraph.sdk.proto.Transaction * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ public static TransactionRecord fromBytes(byte[] bytes) throws InvalidProtocolBufferException { - return fromProtobuf(com.hedera.hashgraph.sdk.proto.TransactionRecord.parseFrom(bytes).toBuilder().build()); + return fromProtobuf(com.hiero.sdk.proto.TransactionRecord.parseFrom(bytes).toBuilder().build()); } /** @@ -398,13 +398,13 @@ public TransactionRecord validateReceiptStatus(boolean shouldValidate) throws Re * * @return the protobuf representation */ - com.hedera.hashgraph.sdk.proto.TransactionRecord toProtobuf() { + com.hiero.sdk.proto.TransactionRecord toProtobuf() { var transferList = TransferList.newBuilder(); for (Transfer transfer : transfers) { transferList.addAccountAmounts(transfer.toProtobuf()); } - var transactionRecord = com.hedera.hashgraph.sdk.proto.TransactionRecord.newBuilder() + var transactionRecord = com.hiero.sdk.proto.TransactionRecord.newBuilder() .setReceipt(receipt.toProtobuf()) .setTransactionHash(transactionHash) .setConsensusTimestamp(InstantConverter.toProtobuf(consensusTimestamp)) diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TransactionRecordQuery.java b/sdk/src/main/java/com/hiero/sdk/TransactionRecordQuery.java similarity index 90% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TransactionRecordQuery.java rename to sdk/src/main/java/com/hiero/sdk/TransactionRecordQuery.java index 2ee0055881..7264a90ec6 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TransactionRecordQuery.java +++ b/sdk/src/main/java/com/hiero/sdk/TransactionRecordQuery.java @@ -17,13 +17,13 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.CryptoServiceGrpc; -import com.hedera.hashgraph.sdk.proto.QueryHeader; -import com.hedera.hashgraph.sdk.proto.Response; -import com.hedera.hashgraph.sdk.proto.ResponseHeader; -import com.hedera.hashgraph.sdk.proto.TransactionGetRecordQuery; +import com.hiero.sdk.proto.CryptoServiceGrpc; +import com.hiero.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.Response; +import com.hiero.sdk.proto.ResponseHeader; +import com.hiero.sdk.proto.TransactionGetRecordQuery; import io.grpc.MethodDescriptor; import javax.annotation.Nullable; @@ -129,7 +129,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - void onMakeRequest(com.hedera.hashgraph.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { + void onMakeRequest(com.hiero.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { var builder = TransactionGetRecordQuery.newBuilder() .setIncludeChildRecords(includeChildren) .setIncludeDuplicates(includeDuplicates); @@ -146,12 +146,12 @@ ResponseHeader mapResponseHeader(Response response) { } @Override - QueryHeader mapRequestHeader(com.hedera.hashgraph.sdk.proto.Query request) { + QueryHeader mapRequestHeader(com.hiero.sdk.proto.Query request) { return request.getTransactionGetRecord().getHeader(); } @Override - TransactionRecord mapResponse(Response response, AccountId nodeId, com.hedera.hashgraph.sdk.proto.Query request) { + TransactionRecord mapResponse(Response response, AccountId nodeId, com.hiero.sdk.proto.Query request) { var recordResponse = response.getTransactionGetRecord(); List children = mapRecordList(recordResponse.getChildTransactionRecordsList()); List duplicates = mapRecordList(recordResponse.getDuplicateTransactionRecordsList()); @@ -159,7 +159,7 @@ TransactionRecord mapResponse(Response response, AccountId nodeId, com.hedera.ha } private List mapRecordList( - List protoRecordList + List protoRecordList ) { List outList = new ArrayList<>(protoRecordList.size()); for (var protoRecord : protoRecordList) { @@ -169,7 +169,7 @@ private List mapRecordList( } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return CryptoServiceGrpc.getGetTxRecordByTxIDMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TransactionResponse.java b/sdk/src/main/java/com/hiero/sdk/TransactionResponse.java similarity index 98% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TransactionResponse.java rename to sdk/src/main/java/com/hiero/sdk/TransactionResponse.java index 3b0bb1c815..8c56c0a9b9 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TransactionResponse.java +++ b/sdk/src/main/java/com/hiero/sdk/TransactionResponse.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import java.time.Duration; @@ -136,7 +136,7 @@ public TransactionReceipt getReceipt(Client client, Duration timeout) throws Tim /** * Create receipt query from the {@link #transactionId} and {@link #transactionHash} * - * @return {@link com.hedera.hashgraph.sdk.TransactionReceiptQuery} + * @return {@link com.hiero.sdk.TransactionReceiptQuery} */ public TransactionReceiptQuery getReceiptQuery() { return new TransactionReceiptQuery() @@ -248,7 +248,7 @@ public TransactionRecord getRecord(Client client, Duration timeout) throws Timeo /** * Create record query from the {@link #transactionId} and {@link #transactionHash} * - * @return {@link com.hedera.hashgraph.sdk.TransactionRecordQuery} + * @return {@link com.hiero.sdk.TransactionRecordQuery} */ public TransactionRecordQuery getRecordQuery() { return new TransactionRecordQuery() diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/Transfer.java b/sdk/src/main/java/com/hiero/sdk/Transfer.java similarity index 96% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/Transfer.java rename to sdk/src/main/java/com/hiero/sdk/Transfer.java index c76d32f8ff..7390afd765 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/Transfer.java +++ b/sdk/src/main/java/com/hiero/sdk/Transfer.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; -import com.hedera.hashgraph.sdk.proto.AccountAmount; +import com.hiero.sdk.proto.AccountAmount; /** * A transfer of Hbar that occurred within a transaction. diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/TransferTransaction.java b/sdk/src/main/java/com/hiero/sdk/TransferTransaction.java similarity index 91% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/TransferTransaction.java rename to sdk/src/main/java/com/hiero/sdk/TransferTransaction.java index 25bac22f29..5fd170be7f 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/TransferTransaction.java +++ b/sdk/src/main/java/com/hiero/sdk/TransferTransaction.java @@ -17,17 +17,17 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.MoreObjects; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.AccountAmount; -import com.hedera.hashgraph.sdk.proto.CryptoServiceGrpc; -import com.hedera.hashgraph.sdk.proto.CryptoTransferTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; -import com.hedera.hashgraph.sdk.proto.TransferList; +import com.hiero.sdk.proto.AccountAmount; +import com.hiero.sdk.proto.CryptoServiceGrpc; +import com.hiero.sdk.proto.CryptoTransferTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.TransferList; import io.grpc.MethodDescriptor; import java.util.ArrayList; import java.util.Comparator; @@ -88,7 +88,7 @@ public TransferTransaction() { * @throws InvalidProtocolBufferException when there is an issue with the protobuf */ TransferTransaction( - LinkedHashMap> txs) + LinkedHashMap> txs) throws InvalidProtocolBufferException { super(txs); initFromTransactionBody(); @@ -99,7 +99,7 @@ public TransferTransaction() { * * @param txBody protobuf TransactionBody */ - TransferTransaction(com.hedera.hashgraph.sdk.proto.TransactionBody txBody) { + TransferTransaction(com.hiero.sdk.proto.TransactionBody txBody) { super(txBody); initFromTransactionBody(); } @@ -190,7 +190,7 @@ public TransferTransaction setHbarTransferApproval(AccountId accountId, boolean /** * Build the transaction body. * - * @return {@link com.hedera.hashgraph.sdk.proto.CryptoTransferTransactionBody} + * @return {@link com.hiero.sdk.proto.CryptoTransferTransactionBody} */ CryptoTransferTransactionBody.Builder build() { var transfers = sortTransfersAndBuild(); @@ -220,7 +220,7 @@ void validateChecksums(Client client) throws BadEntityIdException { } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return CryptoServiceGrpc.getCryptoTransferMethod(); } diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/logger/LogLevel.java b/sdk/src/main/java/com/hiero/sdk/logger/LogLevel.java similarity index 95% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/logger/LogLevel.java rename to sdk/src/main/java/com/hiero/sdk/logger/LogLevel.java index da4ef430d7..5e70a29dba 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/logger/LogLevel.java +++ b/sdk/src/main/java/com/hiero/sdk/logger/LogLevel.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.logger; +package com.hiero.sdk.logger; public enum LogLevel { TRACE(0), diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/logger/Logger.java b/sdk/src/main/java/com/hiero/sdk/logger/Logger.java similarity index 98% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/logger/Logger.java rename to sdk/src/main/java/com/hiero/sdk/logger/Logger.java index e3a43a2f05..6efc18ca11 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/logger/Logger.java +++ b/sdk/src/main/java/com/hiero/sdk/logger/Logger.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.logger; +package com.hiero.sdk.logger; import org.slf4j.LoggerFactory; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/package-info.java b/sdk/src/main/java/com/hiero/sdk/package-info.java similarity index 96% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/package-info.java rename to sdk/src/main/java/com/hiero/sdk/package-info.java index b5c2338bd0..867a4c50eb 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/package-info.java +++ b/sdk/src/main/java/com/hiero/sdk/package-info.java @@ -19,6 +19,6 @@ * See Hedera Documentation */ @ParametersAreNonnullByDefault -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import javax.annotation.ParametersAreNonnullByDefault; diff --git a/sdk/src/main/java/com/hedera/hashgraph/sdk/utils/Bip32Utils.java b/sdk/src/main/java/com/hiero/sdk/utils/Bip32Utils.java similarity index 97% rename from sdk/src/main/java/com/hedera/hashgraph/sdk/utils/Bip32Utils.java rename to sdk/src/main/java/com/hiero/sdk/utils/Bip32Utils.java index 7c24adba55..43aefee0e6 100644 --- a/sdk/src/main/java/com/hedera/hashgraph/sdk/utils/Bip32Utils.java +++ b/sdk/src/main/java/com/hiero/sdk/utils/Bip32Utils.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.utils; +package com.hiero.sdk.utils; /** * Utility class for BIP32 functionalities diff --git a/sdk/src/main/java/module-info.java b/sdk/src/main/java/module-info.java index d9f19f2fe2..8ce78dc548 100644 --- a/sdk/src/main/java/module-info.java +++ b/sdk/src/main/java/module-info.java @@ -18,7 +18,7 @@ * */ -module com.hedera.hashgraph.sdk { +module com.hiero.sdk { requires transitive com.google.protobuf; requires com.google.common; @@ -35,9 +35,9 @@ requires static transitive java.annotation; - exports com.hedera.hashgraph.sdk; - exports com.hedera.hashgraph.sdk.logger; - exports com.hedera.hashgraph.sdk.proto; + exports com.hiero.sdk; + exports com.hiero.sdk.logger; + exports com.hiero.sdk.proto; - opens com.hedera.hashgraph.sdk; + opens com.hiero.sdk; } diff --git a/sdk/src/main/proto/account.proto b/sdk/src/main/proto/account.proto index 3c7cfce552..84d180ac96 100644 --- a/sdk/src/main/proto/account.proto +++ b/sdk/src/main/proto/account.proto @@ -25,7 +25,7 @@ package proto; import "common.proto"; import "basic_types.proto"; -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/account_pending_airdrop.proto b/sdk/src/main/proto/account_pending_airdrop.proto index 6b2c7b47b9..1dc83b0a50 100644 --- a/sdk/src/main/proto/account_pending_airdrop.proto +++ b/sdk/src/main/proto/account_pending_airdrop.proto @@ -20,7 +20,7 @@ package proto; import "basic_types.proto"; -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/address_book_service.proto b/sdk/src/main/proto/address_book_service.proto index cb1a5ac618..6264813846 100644 --- a/sdk/src/main/proto/address_book_service.proto +++ b/sdk/src/main/proto/address_book_service.proto @@ -18,7 +18,7 @@ package proto; * limitations under the License. */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package import "query.proto"; diff --git a/sdk/src/main/proto/basic_types.proto b/sdk/src/main/proto/basic_types.proto index 7ce6755b46..15a7d7e732 100644 --- a/sdk/src/main/proto/basic_types.proto +++ b/sdk/src/main/proto/basic_types.proto @@ -25,7 +25,7 @@ package proto; import "timestamp.proto"; import "google/protobuf/wrappers.proto"; -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/block_info.proto b/sdk/src/main/proto/block_info.proto index cdd0508d67..5276f0fd31 100644 --- a/sdk/src/main/proto/block_info.proto +++ b/sdk/src/main/proto/block_info.proto @@ -24,7 +24,7 @@ package proto; import "timestamp.proto"; -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/block_stream_info.proto b/sdk/src/main/proto/block_stream_info.proto index 100efd0e81..e465586407 100644 --- a/sdk/src/main/proto/block_stream_info.proto +++ b/sdk/src/main/proto/block_stream_info.proto @@ -32,7 +32,7 @@ package com.hedera.hapi.node.state.blockstream; import "timestamp.proto"; -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/bytecode.proto b/sdk/src/main/proto/bytecode.proto index 8652fce947..4b44868b5c 100644 --- a/sdk/src/main/proto/bytecode.proto +++ b/sdk/src/main/proto/bytecode.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/common.proto b/sdk/src/main/proto/common.proto index 5eb76044a3..32a61e8f42 100644 --- a/sdk/src/main/proto/common.proto +++ b/sdk/src/main/proto/common.proto @@ -23,7 +23,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/congestion_level_starts.proto b/sdk/src/main/proto/congestion_level_starts.proto index d9a3ac25a6..3ec209a896 100644 --- a/sdk/src/main/proto/congestion_level_starts.proto +++ b/sdk/src/main/proto/congestion_level_starts.proto @@ -24,7 +24,7 @@ package proto; import "timestamp.proto"; -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/consensus_create_topic.proto b/sdk/src/main/proto/consensus_create_topic.proto index cd2e468777..dc6b8b7ed6 100644 --- a/sdk/src/main/proto/consensus_create_topic.proto +++ b/sdk/src/main/proto/consensus_create_topic.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/consensus_delete_topic.proto b/sdk/src/main/proto/consensus_delete_topic.proto index 6b68113fd5..0d866c602c 100644 --- a/sdk/src/main/proto/consensus_delete_topic.proto +++ b/sdk/src/main/proto/consensus_delete_topic.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/consensus_get_topic_info.proto b/sdk/src/main/proto/consensus_get_topic_info.proto index 408641f197..4a122e2ae5 100644 --- a/sdk/src/main/proto/consensus_get_topic_info.proto +++ b/sdk/src/main/proto/consensus_get_topic_info.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/consensus_service.proto b/sdk/src/main/proto/consensus_service.proto index da1bfbf9c9..066aca7fbc 100644 --- a/sdk/src/main/proto/consensus_service.proto +++ b/sdk/src/main/proto/consensus_service.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package import "query.proto"; diff --git a/sdk/src/main/proto/consensus_submit_message.proto b/sdk/src/main/proto/consensus_submit_message.proto index ece3155e98..cc90426713 100644 --- a/sdk/src/main/proto/consensus_submit_message.proto +++ b/sdk/src/main/proto/consensus_submit_message.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/consensus_topic_info.proto b/sdk/src/main/proto/consensus_topic_info.proto index c31b2d6255..9608cf2f2d 100644 --- a/sdk/src/main/proto/consensus_topic_info.proto +++ b/sdk/src/main/proto/consensus_topic_info.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/consensus_update_topic.proto b/sdk/src/main/proto/consensus_update_topic.proto index 7a1acf9c46..e2863a1ca4 100644 --- a/sdk/src/main/proto/consensus_update_topic.proto +++ b/sdk/src/main/proto/consensus_update_topic.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/contract_call.proto b/sdk/src/main/proto/contract_call.proto index 9000e339ca..5295fae1e5 100644 --- a/sdk/src/main/proto/contract_call.proto +++ b/sdk/src/main/proto/contract_call.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/contract_call_local.proto b/sdk/src/main/proto/contract_call_local.proto index 2fd51a5b35..ccd86576f4 100644 --- a/sdk/src/main/proto/contract_call_local.proto +++ b/sdk/src/main/proto/contract_call_local.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/contract_create.proto b/sdk/src/main/proto/contract_create.proto index b2aea7fa92..9ee07c033b 100644 --- a/sdk/src/main/proto/contract_create.proto +++ b/sdk/src/main/proto/contract_create.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/contract_delete.proto b/sdk/src/main/proto/contract_delete.proto index 2260a55eb1..1e83152973 100644 --- a/sdk/src/main/proto/contract_delete.proto +++ b/sdk/src/main/proto/contract_delete.proto @@ -21,7 +21,7 @@ package proto; * limitations under the License. * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/contract_get_bytecode.proto b/sdk/src/main/proto/contract_get_bytecode.proto index ba6224ecc2..e6c83263ff 100644 --- a/sdk/src/main/proto/contract_get_bytecode.proto +++ b/sdk/src/main/proto/contract_get_bytecode.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/contract_get_info.proto b/sdk/src/main/proto/contract_get_info.proto index d9c16b4052..0ca13d3ab5 100644 --- a/sdk/src/main/proto/contract_get_info.proto +++ b/sdk/src/main/proto/contract_get_info.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/contract_get_records.proto b/sdk/src/main/proto/contract_get_records.proto index b4d68fab9f..8423c7e3ec 100644 --- a/sdk/src/main/proto/contract_get_records.proto +++ b/sdk/src/main/proto/contract_get_records.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/contract_types.proto b/sdk/src/main/proto/contract_types.proto index b345d239ea..9625478346 100644 --- a/sdk/src/main/proto/contract_types.proto +++ b/sdk/src/main/proto/contract_types.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/contract_update.proto b/sdk/src/main/proto/contract_update.proto index d54fec5a96..633e10974a 100644 --- a/sdk/src/main/proto/contract_update.proto +++ b/sdk/src/main/proto/contract_update.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/crypto_add_live_hash.proto b/sdk/src/main/proto/crypto_add_live_hash.proto index 826dd3d165..9fc9c0641b 100644 --- a/sdk/src/main/proto/crypto_add_live_hash.proto +++ b/sdk/src/main/proto/crypto_add_live_hash.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/crypto_approve_allowance.proto b/sdk/src/main/proto/crypto_approve_allowance.proto index 4177788179..f12ed692d9 100644 --- a/sdk/src/main/proto/crypto_approve_allowance.proto +++ b/sdk/src/main/proto/crypto_approve_allowance.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/crypto_create.proto b/sdk/src/main/proto/crypto_create.proto index 5281a65918..1f507d0e61 100644 --- a/sdk/src/main/proto/crypto_create.proto +++ b/sdk/src/main/proto/crypto_create.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/crypto_delete.proto b/sdk/src/main/proto/crypto_delete.proto index 30719afe42..efd2619c80 100644 --- a/sdk/src/main/proto/crypto_delete.proto +++ b/sdk/src/main/proto/crypto_delete.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/crypto_delete_allowance.proto b/sdk/src/main/proto/crypto_delete_allowance.proto index 475df5f869..a398989009 100644 --- a/sdk/src/main/proto/crypto_delete_allowance.proto +++ b/sdk/src/main/proto/crypto_delete_allowance.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/crypto_delete_live_hash.proto b/sdk/src/main/proto/crypto_delete_live_hash.proto index 41ba5dfbc3..28ef28965b 100644 --- a/sdk/src/main/proto/crypto_delete_live_hash.proto +++ b/sdk/src/main/proto/crypto_delete_live_hash.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/crypto_get_account_balance.proto b/sdk/src/main/proto/crypto_get_account_balance.proto index 7f72512ddf..084a023533 100644 --- a/sdk/src/main/proto/crypto_get_account_balance.proto +++ b/sdk/src/main/proto/crypto_get_account_balance.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/crypto_get_account_records.proto b/sdk/src/main/proto/crypto_get_account_records.proto index 1832972490..889989d3a7 100644 --- a/sdk/src/main/proto/crypto_get_account_records.proto +++ b/sdk/src/main/proto/crypto_get_account_records.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/crypto_get_info.proto b/sdk/src/main/proto/crypto_get_info.proto index d217398315..cab51f5a68 100644 --- a/sdk/src/main/proto/crypto_get_info.proto +++ b/sdk/src/main/proto/crypto_get_info.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/crypto_get_live_hash.proto b/sdk/src/main/proto/crypto_get_live_hash.proto index 1bf80ef324..98da20e637 100644 --- a/sdk/src/main/proto/crypto_get_live_hash.proto +++ b/sdk/src/main/proto/crypto_get_live_hash.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/crypto_get_stakers.proto b/sdk/src/main/proto/crypto_get_stakers.proto index 44f52eb5a0..008f215e88 100644 --- a/sdk/src/main/proto/crypto_get_stakers.proto +++ b/sdk/src/main/proto/crypto_get_stakers.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/crypto_service.proto b/sdk/src/main/proto/crypto_service.proto index 226943555f..0a0ede7761 100644 --- a/sdk/src/main/proto/crypto_service.proto +++ b/sdk/src/main/proto/crypto_service.proto @@ -21,7 +21,7 @@ package proto; * limitations under the License. * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package import "query.proto"; diff --git a/sdk/src/main/proto/crypto_transfer.proto b/sdk/src/main/proto/crypto_transfer.proto index 5c25747e3d..662da5c0b1 100644 --- a/sdk/src/main/proto/crypto_transfer.proto +++ b/sdk/src/main/proto/crypto_transfer.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/crypto_update.proto b/sdk/src/main/proto/crypto_update.proto index c83e8a80a1..dcbc6679eb 100644 --- a/sdk/src/main/proto/crypto_update.proto +++ b/sdk/src/main/proto/crypto_update.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/custom_fees.proto b/sdk/src/main/proto/custom_fees.proto index bda20b4680..49ccb1ea5f 100644 --- a/sdk/src/main/proto/custom_fees.proto +++ b/sdk/src/main/proto/custom_fees.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/duration.proto b/sdk/src/main/proto/duration.proto index 0883f7d595..82bcf88367 100644 --- a/sdk/src/main/proto/duration.proto +++ b/sdk/src/main/proto/duration.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/ethereum_transaction.proto b/sdk/src/main/proto/ethereum_transaction.proto index dad33e10bc..c88fd3e153 100644 --- a/sdk/src/main/proto/ethereum_transaction.proto +++ b/sdk/src/main/proto/ethereum_transaction.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/exchange_rate.proto b/sdk/src/main/proto/exchange_rate.proto index 0a0c3f7b81..002f1c7937 100644 --- a/sdk/src/main/proto/exchange_rate.proto +++ b/sdk/src/main/proto/exchange_rate.proto @@ -21,7 +21,7 @@ package proto; * limitations under the License. * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/file.proto b/sdk/src/main/proto/file.proto index 657af7b4fa..64cfa14bf0 100644 --- a/sdk/src/main/proto/file.proto +++ b/sdk/src/main/proto/file.proto @@ -24,7 +24,7 @@ package proto; import "basic_types.proto"; -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/file_append.proto b/sdk/src/main/proto/file_append.proto index c70cd18f4e..4c956fbaf2 100644 --- a/sdk/src/main/proto/file_append.proto +++ b/sdk/src/main/proto/file_append.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/file_create.proto b/sdk/src/main/proto/file_create.proto index b3df3a5926..c8a140b967 100644 --- a/sdk/src/main/proto/file_create.proto +++ b/sdk/src/main/proto/file_create.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/file_delete.proto b/sdk/src/main/proto/file_delete.proto index f4b23c988f..ee9fc3a422 100644 --- a/sdk/src/main/proto/file_delete.proto +++ b/sdk/src/main/proto/file_delete.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/file_get_contents.proto b/sdk/src/main/proto/file_get_contents.proto index ee888d6af0..06138d8f82 100644 --- a/sdk/src/main/proto/file_get_contents.proto +++ b/sdk/src/main/proto/file_get_contents.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/file_get_info.proto b/sdk/src/main/proto/file_get_info.proto index a408ebd88d..ef67fbd65c 100644 --- a/sdk/src/main/proto/file_get_info.proto +++ b/sdk/src/main/proto/file_get_info.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/file_service.proto b/sdk/src/main/proto/file_service.proto index 04087353fa..ee3450fce5 100644 --- a/sdk/src/main/proto/file_service.proto +++ b/sdk/src/main/proto/file_service.proto @@ -21,7 +21,7 @@ package proto; * limitations under the License. * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package import "query.proto"; diff --git a/sdk/src/main/proto/file_update.proto b/sdk/src/main/proto/file_update.proto index 74e0490ec0..c76791de7c 100644 --- a/sdk/src/main/proto/file_update.proto +++ b/sdk/src/main/proto/file_update.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/freeze.proto b/sdk/src/main/proto/freeze.proto index a466b41816..31699dea42 100644 --- a/sdk/src/main/proto/freeze.proto +++ b/sdk/src/main/proto/freeze.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/freeze_service.proto b/sdk/src/main/proto/freeze_service.proto index b43d1f8de6..988b31245d 100644 --- a/sdk/src/main/proto/freeze_service.proto +++ b/sdk/src/main/proto/freeze_service.proto @@ -21,7 +21,7 @@ package proto; * limitations under the License. * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package import "transaction_response.proto"; diff --git a/sdk/src/main/proto/freeze_type.proto b/sdk/src/main/proto/freeze_type.proto index 7abcf47f66..49fdc2bc5e 100644 --- a/sdk/src/main/proto/freeze_type.proto +++ b/sdk/src/main/proto/freeze_type.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/get_account_details.proto b/sdk/src/main/proto/get_account_details.proto index 98ebe7f271..17db5948fe 100644 --- a/sdk/src/main/proto/get_account_details.proto +++ b/sdk/src/main/proto/get_account_details.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/get_by_key.proto b/sdk/src/main/proto/get_by_key.proto index e166b3367a..2bb5ff2bd1 100644 --- a/sdk/src/main/proto/get_by_key.proto +++ b/sdk/src/main/proto/get_by_key.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/get_by_solidity_id.proto b/sdk/src/main/proto/get_by_solidity_id.proto index 1c9d111c3c..fd26baea4f 100644 --- a/sdk/src/main/proto/get_by_solidity_id.proto +++ b/sdk/src/main/proto/get_by_solidity_id.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/ledger_id.proto b/sdk/src/main/proto/ledger_id.proto index 83e1b54789..84ae18dfff 100644 --- a/sdk/src/main/proto/ledger_id.proto +++ b/sdk/src/main/proto/ledger_id.proto @@ -33,7 +33,7 @@ package com.hedera.hapi.node.state.roster; * limitations under the License. */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/mirror/consensus_service.proto b/sdk/src/main/proto/mirror/consensus_service.proto index 686f3e7ab1..217d324c12 100644 --- a/sdk/src/main/proto/mirror/consensus_service.proto +++ b/sdk/src/main/proto/mirror/consensus_service.proto @@ -27,7 +27,7 @@ package com.hedera.mirror.api.proto; */ option java_multiple_files = true; -option java_package = "com.hedera.hashgraph.sdk.proto.mirror"; +option java_package = "com.hiero.sdk.proto.mirror"; import "basic_types.proto"; import "timestamp.proto"; diff --git a/sdk/src/main/proto/mirror/mirror_network_service.proto b/sdk/src/main/proto/mirror/mirror_network_service.proto index 460da29f30..8d6d791e8d 100644 --- a/sdk/src/main/proto/mirror/mirror_network_service.proto +++ b/sdk/src/main/proto/mirror/mirror_network_service.proto @@ -23,7 +23,7 @@ syntax = "proto3"; package com.hedera.mirror.api.proto; option java_multiple_files = true; // Required for the reactor-grpc generator to work correctly -option java_package = "com.hedera.hashgraph.sdk.proto.mirror"; +option java_package = "com.hiero.sdk.proto.mirror"; import "basic_types.proto"; import "timestamp.proto"; @@ -54,4 +54,3 @@ service NetworkService { */ rpc getNodes (AddressBookQuery) returns (stream .proto.NodeAddress); } - diff --git a/sdk/src/main/proto/network_get_execution_time.proto b/sdk/src/main/proto/network_get_execution_time.proto index 0c282f1a7b..8469790d7e 100644 --- a/sdk/src/main/proto/network_get_execution_time.proto +++ b/sdk/src/main/proto/network_get_execution_time.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/network_get_version_info.proto b/sdk/src/main/proto/network_get_version_info.proto index 64978788db..ca97df7361 100644 --- a/sdk/src/main/proto/network_get_version_info.proto +++ b/sdk/src/main/proto/network_get_version_info.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/network_service.proto b/sdk/src/main/proto/network_service.proto index 49f06e5d5e..ad55905750 100644 --- a/sdk/src/main/proto/network_service.proto +++ b/sdk/src/main/proto/network_service.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package import "query.proto"; diff --git a/sdk/src/main/proto/network_staking_rewards.proto b/sdk/src/main/proto/network_staking_rewards.proto index 66d99530e3..608c9f9c87 100644 --- a/sdk/src/main/proto/network_staking_rewards.proto +++ b/sdk/src/main/proto/network_staking_rewards.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/nft.proto b/sdk/src/main/proto/nft.proto index bfb17fcebf..5d7f471555 100644 --- a/sdk/src/main/proto/nft.proto +++ b/sdk/src/main/proto/nft.proto @@ -25,7 +25,7 @@ package proto; import "timestamp.proto"; import "basic_types.proto"; -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/node.proto b/sdk/src/main/proto/node.proto index 9b99cf1d06..57ce0df896 100644 --- a/sdk/src/main/proto/node.proto +++ b/sdk/src/main/proto/node.proto @@ -20,7 +20,7 @@ package com.hedera.hapi.node.state.addressbook; import "basic_types.proto"; -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/node_create.proto b/sdk/src/main/proto/node_create.proto index 8d828c724d..9fe24f7702 100644 --- a/sdk/src/main/proto/node_create.proto +++ b/sdk/src/main/proto/node_create.proto @@ -18,7 +18,7 @@ package com.hedera.hapi.node.addressbook; * limitations under the License. */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/node_delete.proto b/sdk/src/main/proto/node_delete.proto index 9bbdc494c4..53dc9940c5 100644 --- a/sdk/src/main/proto/node_delete.proto +++ b/sdk/src/main/proto/node_delete.proto @@ -18,7 +18,7 @@ package com.hedera.hapi.node.addressbook; * limitations under the License. */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/node_stake_update.proto b/sdk/src/main/proto/node_stake_update.proto index a8afdb2c3b..630b5bb27a 100644 --- a/sdk/src/main/proto/node_stake_update.proto +++ b/sdk/src/main/proto/node_stake_update.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/node_update.proto b/sdk/src/main/proto/node_update.proto index a8b84e7ab8..740d907d53 100644 --- a/sdk/src/main/proto/node_update.proto +++ b/sdk/src/main/proto/node_update.proto @@ -18,7 +18,7 @@ package com.hedera.hapi.node.addressbook; * limitations under the License. */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/primitives.proto b/sdk/src/main/proto/primitives.proto index 7917055e1d..6c2fc73c58 100644 --- a/sdk/src/main/proto/primitives.proto +++ b/sdk/src/main/proto/primitives.proto @@ -24,7 +24,7 @@ package proto; * type instead. */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/query.proto b/sdk/src/main/proto/query.proto index 7bf38eb0c6..a7734d611c 100644 --- a/sdk/src/main/proto/query.proto +++ b/sdk/src/main/proto/query.proto @@ -18,7 +18,7 @@ package proto; * limitations under the License. */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/query_header.proto b/sdk/src/main/proto/query_header.proto index c96aa250ad..55ebdb035d 100644 --- a/sdk/src/main/proto/query_header.proto +++ b/sdk/src/main/proto/query_header.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/recordcache.proto b/sdk/src/main/proto/recordcache.proto index 93b61f4beb..4f37635150 100644 --- a/sdk/src/main/proto/recordcache.proto +++ b/sdk/src/main/proto/recordcache.proto @@ -26,7 +26,7 @@ import "basic_types.proto"; import "transaction_record.proto"; import "response_code.proto"; -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/response.proto b/sdk/src/main/proto/response.proto index 62daa7fb63..42ccb7a4ba 100644 --- a/sdk/src/main/proto/response.proto +++ b/sdk/src/main/proto/response.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/response_code.proto b/sdk/src/main/proto/response_code.proto index 752a012f74..86e32738d8 100644 --- a/sdk/src/main/proto/response_code.proto +++ b/sdk/src/main/proto/response_code.proto @@ -18,7 +18,7 @@ package proto; * limitations under the License. */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/response_header.proto b/sdk/src/main/proto/response_header.proto index 56f9c35710..03b5909707 100644 --- a/sdk/src/main/proto/response_header.proto +++ b/sdk/src/main/proto/response_header.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/roster.proto b/sdk/src/main/proto/roster.proto index f160e927db..c67deef170 100644 --- a/sdk/src/main/proto/roster.proto +++ b/sdk/src/main/proto/roster.proto @@ -20,7 +20,7 @@ package com.hedera.hapi.node.state.roster; import "basic_types.proto"; -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/roster_state.proto b/sdk/src/main/proto/roster_state.proto index 6532694e13..00ec76dacc 100644 --- a/sdk/src/main/proto/roster_state.proto +++ b/sdk/src/main/proto/roster_state.proto @@ -20,7 +20,7 @@ package com.hedera.hapi.node.state.roster; import "basic_types.proto"; -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/running_hashes.proto b/sdk/src/main/proto/running_hashes.proto index 856de26b8d..331104c613 100644 --- a/sdk/src/main/proto/running_hashes.proto +++ b/sdk/src/main/proto/running_hashes.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/schedulable_transaction_body.proto b/sdk/src/main/proto/schedulable_transaction_body.proto index 1cfa1cd286..9e665a07ef 100644 --- a/sdk/src/main/proto/schedulable_transaction_body.proto +++ b/sdk/src/main/proto/schedulable_transaction_body.proto @@ -18,7 +18,7 @@ package proto; * limitations under the License. */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/schedule.proto b/sdk/src/main/proto/schedule.proto index ea997e04b0..8ef6136811 100644 --- a/sdk/src/main/proto/schedule.proto +++ b/sdk/src/main/proto/schedule.proto @@ -27,7 +27,7 @@ import "timestamp.proto"; import "schedulable_transaction_body.proto"; import "transaction_body.proto"; -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/schedule_create.proto b/sdk/src/main/proto/schedule_create.proto index c7536aeee6..275f892011 100644 --- a/sdk/src/main/proto/schedule_create.proto +++ b/sdk/src/main/proto/schedule_create.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/schedule_delete.proto b/sdk/src/main/proto/schedule_delete.proto index 4f6de56473..4c610770da 100644 --- a/sdk/src/main/proto/schedule_delete.proto +++ b/sdk/src/main/proto/schedule_delete.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/schedule_get_info.proto b/sdk/src/main/proto/schedule_get_info.proto index e723764104..e1aa91ae39 100644 --- a/sdk/src/main/proto/schedule_get_info.proto +++ b/sdk/src/main/proto/schedule_get_info.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/schedule_service.proto b/sdk/src/main/proto/schedule_service.proto index 2289f586de..cc9d8eb4c0 100644 --- a/sdk/src/main/proto/schedule_service.proto +++ b/sdk/src/main/proto/schedule_service.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package import "query.proto"; diff --git a/sdk/src/main/proto/schedule_sign.proto b/sdk/src/main/proto/schedule_sign.proto index 784970377e..f06d144313 100644 --- a/sdk/src/main/proto/schedule_sign.proto +++ b/sdk/src/main/proto/schedule_sign.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/smart_contract_service.proto b/sdk/src/main/proto/smart_contract_service.proto index 05fc6c9bcc..efec8b8b4d 100644 --- a/sdk/src/main/proto/smart_contract_service.proto +++ b/sdk/src/main/proto/smart_contract_service.proto @@ -21,7 +21,7 @@ package proto; * limitations under the License. * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package import "transaction_response.proto"; diff --git a/sdk/src/main/proto/staking_node_info.proto b/sdk/src/main/proto/staking_node_info.proto index 508acee943..35daae8b09 100644 --- a/sdk/src/main/proto/staking_node_info.proto +++ b/sdk/src/main/proto/staking_node_info.proto @@ -25,7 +25,7 @@ package proto; import "common.proto"; import "basic_types.proto"; -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/storage_slot.proto b/sdk/src/main/proto/storage_slot.proto index 3df5527b28..531209644d 100644 --- a/sdk/src/main/proto/storage_slot.proto +++ b/sdk/src/main/proto/storage_slot.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/system_delete.proto b/sdk/src/main/proto/system_delete.proto index a49b9ec810..770f18034e 100644 --- a/sdk/src/main/proto/system_delete.proto +++ b/sdk/src/main/proto/system_delete.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/system_undelete.proto b/sdk/src/main/proto/system_undelete.proto index 4eab2349a3..8cb67051d8 100644 --- a/sdk/src/main/proto/system_undelete.proto +++ b/sdk/src/main/proto/system_undelete.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/throttle_definitions.proto b/sdk/src/main/proto/throttle_definitions.proto index 4be3aef644..7b4b95ef7a 100644 --- a/sdk/src/main/proto/throttle_definitions.proto +++ b/sdk/src/main/proto/throttle_definitions.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/throttle_usage_snapshots.proto b/sdk/src/main/proto/throttle_usage_snapshots.proto index b325b6b269..71187dd74d 100644 --- a/sdk/src/main/proto/throttle_usage_snapshots.proto +++ b/sdk/src/main/proto/throttle_usage_snapshots.proto @@ -24,7 +24,7 @@ package proto; import "timestamp.proto"; -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/timestamp.proto b/sdk/src/main/proto/timestamp.proto index 0ca2798a7d..7e612b8cdc 100644 --- a/sdk/src/main/proto/timestamp.proto +++ b/sdk/src/main/proto/timestamp.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/token.proto b/sdk/src/main/proto/token.proto index 78a6c60a98..f3cc2fe757 100644 --- a/sdk/src/main/proto/token.proto +++ b/sdk/src/main/proto/token.proto @@ -25,7 +25,7 @@ package proto; import "basic_types.proto"; import "custom_fees.proto"; -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/token_airdrop.proto b/sdk/src/main/proto/token_airdrop.proto index cef39a2850..88a2851634 100644 --- a/sdk/src/main/proto/token_airdrop.proto +++ b/sdk/src/main/proto/token_airdrop.proto @@ -30,7 +30,7 @@ package proto; * limitations under the License. */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/token_associate.proto b/sdk/src/main/proto/token_associate.proto index b1438b01a7..ae763bb4e2 100644 --- a/sdk/src/main/proto/token_associate.proto +++ b/sdk/src/main/proto/token_associate.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/token_burn.proto b/sdk/src/main/proto/token_burn.proto index fba56c492a..2e4ceb19a5 100644 --- a/sdk/src/main/proto/token_burn.proto +++ b/sdk/src/main/proto/token_burn.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/token_cancel_airdrop.proto b/sdk/src/main/proto/token_cancel_airdrop.proto index 074aee7eee..34bbb319f9 100644 --- a/sdk/src/main/proto/token_cancel_airdrop.proto +++ b/sdk/src/main/proto/token_cancel_airdrop.proto @@ -28,7 +28,7 @@ package proto; * */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/token_claim_airdrop.proto b/sdk/src/main/proto/token_claim_airdrop.proto index 2d89789c4a..e331b66621 100644 --- a/sdk/src/main/proto/token_claim_airdrop.proto +++ b/sdk/src/main/proto/token_claim_airdrop.proto @@ -28,7 +28,7 @@ package proto; * */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/token_create.proto b/sdk/src/main/proto/token_create.proto index e10be8c3b4..002d4fc405 100644 --- a/sdk/src/main/proto/token_create.proto +++ b/sdk/src/main/proto/token_create.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/token_delete.proto b/sdk/src/main/proto/token_delete.proto index 2f6f443f3a..2bf5c3ae58 100644 --- a/sdk/src/main/proto/token_delete.proto +++ b/sdk/src/main/proto/token_delete.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/token_dissociate.proto b/sdk/src/main/proto/token_dissociate.proto index d51043091e..f10359f4c5 100644 --- a/sdk/src/main/proto/token_dissociate.proto +++ b/sdk/src/main/proto/token_dissociate.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/token_fee_schedule_update.proto b/sdk/src/main/proto/token_fee_schedule_update.proto index 64ed137398..d4b284034e 100644 --- a/sdk/src/main/proto/token_fee_schedule_update.proto +++ b/sdk/src/main/proto/token_fee_schedule_update.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/token_freeze_account.proto b/sdk/src/main/proto/token_freeze_account.proto index b25d64230a..47afe04dcb 100644 --- a/sdk/src/main/proto/token_freeze_account.proto +++ b/sdk/src/main/proto/token_freeze_account.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/token_get_account_nft_infos.proto b/sdk/src/main/proto/token_get_account_nft_infos.proto index 3a22091bcc..6131985589 100644 --- a/sdk/src/main/proto/token_get_account_nft_infos.proto +++ b/sdk/src/main/proto/token_get_account_nft_infos.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/token_get_info.proto b/sdk/src/main/proto/token_get_info.proto index 3845ff78a6..9ce2461081 100644 --- a/sdk/src/main/proto/token_get_info.proto +++ b/sdk/src/main/proto/token_get_info.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/token_get_nft_info.proto b/sdk/src/main/proto/token_get_nft_info.proto index b81c323a1d..92aad14bb5 100644 --- a/sdk/src/main/proto/token_get_nft_info.proto +++ b/sdk/src/main/proto/token_get_nft_info.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/token_get_nft_infos.proto b/sdk/src/main/proto/token_get_nft_infos.proto index 7c782abcd7..09e3df18f1 100644 --- a/sdk/src/main/proto/token_get_nft_infos.proto +++ b/sdk/src/main/proto/token_get_nft_infos.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/token_grant_kyc.proto b/sdk/src/main/proto/token_grant_kyc.proto index a45d4d109e..b82410f3f3 100644 --- a/sdk/src/main/proto/token_grant_kyc.proto +++ b/sdk/src/main/proto/token_grant_kyc.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/token_mint.proto b/sdk/src/main/proto/token_mint.proto index bd2c499e7c..0dd38f7057 100644 --- a/sdk/src/main/proto/token_mint.proto +++ b/sdk/src/main/proto/token_mint.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/token_pause.proto b/sdk/src/main/proto/token_pause.proto index 261b913b65..4eeb6e0dbd 100644 --- a/sdk/src/main/proto/token_pause.proto +++ b/sdk/src/main/proto/token_pause.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/token_reject.proto b/sdk/src/main/proto/token_reject.proto index d90f0051c6..246467ce24 100644 --- a/sdk/src/main/proto/token_reject.proto +++ b/sdk/src/main/proto/token_reject.proto @@ -32,7 +32,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/token_relation.proto b/sdk/src/main/proto/token_relation.proto index aa594d92de..cc37239877 100644 --- a/sdk/src/main/proto/token_relation.proto +++ b/sdk/src/main/proto/token_relation.proto @@ -24,7 +24,7 @@ package proto; import "basic_types.proto"; -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; /** diff --git a/sdk/src/main/proto/token_revoke_kyc.proto b/sdk/src/main/proto/token_revoke_kyc.proto index 5cb3bd0993..b207c0e6b0 100644 --- a/sdk/src/main/proto/token_revoke_kyc.proto +++ b/sdk/src/main/proto/token_revoke_kyc.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; option java_multiple_files = true; // <<>> This comment is special code for setting PBJ Compiler java package diff --git a/sdk/src/main/proto/token_service.proto b/sdk/src/main/proto/token_service.proto index 65e30c9eca..a1177ce99e 100644 --- a/sdk/src/main/proto/token_service.proto +++ b/sdk/src/main/proto/token_service.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package import "query.proto"; diff --git a/sdk/src/main/proto/token_unfreeze_account.proto b/sdk/src/main/proto/token_unfreeze_account.proto index d490d128fd..e0cd170c4a 100644 --- a/sdk/src/main/proto/token_unfreeze_account.proto +++ b/sdk/src/main/proto/token_unfreeze_account.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/token_unpause.proto b/sdk/src/main/proto/token_unpause.proto index e8107f82e8..2bbf70d28f 100644 --- a/sdk/src/main/proto/token_unpause.proto +++ b/sdk/src/main/proto/token_unpause.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/token_update.proto b/sdk/src/main/proto/token_update.proto index 9974b403ae..48854a8888 100644 --- a/sdk/src/main/proto/token_update.proto +++ b/sdk/src/main/proto/token_update.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/token_update_nfts.proto b/sdk/src/main/proto/token_update_nfts.proto index a5ede209c0..42d557cdd0 100644 --- a/sdk/src/main/proto/token_update_nfts.proto +++ b/sdk/src/main/proto/token_update_nfts.proto @@ -18,7 +18,7 @@ package proto; * limitations under the License. */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/token_wipe_account.proto b/sdk/src/main/proto/token_wipe_account.proto index a46c1dab61..3b65bec88b 100644 --- a/sdk/src/main/proto/token_wipe_account.proto +++ b/sdk/src/main/proto/token_wipe_account.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/topic.proto b/sdk/src/main/proto/topic.proto index 8015ce7e4d..ab8a6a121f 100644 --- a/sdk/src/main/proto/topic.proto +++ b/sdk/src/main/proto/topic.proto @@ -24,7 +24,7 @@ package proto; import "basic_types.proto"; -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/transaction.proto b/sdk/src/main/proto/transaction.proto index 2f285f393c..b1d1b689eb 100644 --- a/sdk/src/main/proto/transaction.proto +++ b/sdk/src/main/proto/transaction.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/transaction_body.proto b/sdk/src/main/proto/transaction_body.proto index 2fab1d530f..2a53ba7b89 100644 --- a/sdk/src/main/proto/transaction_body.proto +++ b/sdk/src/main/proto/transaction_body.proto @@ -18,7 +18,7 @@ package proto; * limitations under the License. */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/transaction_contents.proto b/sdk/src/main/proto/transaction_contents.proto index 01f2912216..76826ef792 100644 --- a/sdk/src/main/proto/transaction_contents.proto +++ b/sdk/src/main/proto/transaction_contents.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/transaction_get_fast_record.proto b/sdk/src/main/proto/transaction_get_fast_record.proto index 49c0e49f83..bea0e79c93 100644 --- a/sdk/src/main/proto/transaction_get_fast_record.proto +++ b/sdk/src/main/proto/transaction_get_fast_record.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/transaction_get_receipt.proto b/sdk/src/main/proto/transaction_get_receipt.proto index a38c5b74eb..2f6fd32dd8 100644 --- a/sdk/src/main/proto/transaction_get_receipt.proto +++ b/sdk/src/main/proto/transaction_get_receipt.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/transaction_get_record.proto b/sdk/src/main/proto/transaction_get_record.proto index 8f17b99449..aab21087d5 100644 --- a/sdk/src/main/proto/transaction_get_record.proto +++ b/sdk/src/main/proto/transaction_get_record.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/transaction_list.proto b/sdk/src/main/proto/transaction_list.proto index 91e1727407..f0bf8fb85f 100644 --- a/sdk/src/main/proto/transaction_list.proto +++ b/sdk/src/main/proto/transaction_list.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package proto; -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; option java_multiple_files = true; import "transaction.proto"; diff --git a/sdk/src/main/proto/transaction_receipt.proto b/sdk/src/main/proto/transaction_receipt.proto index e744c2a763..18d9922db0 100644 --- a/sdk/src/main/proto/transaction_receipt.proto +++ b/sdk/src/main/proto/transaction_receipt.proto @@ -18,7 +18,7 @@ package proto; * limitations under the License. */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/transaction_record.proto b/sdk/src/main/proto/transaction_record.proto index 87b84c1171..8d273dd0d7 100644 --- a/sdk/src/main/proto/transaction_record.proto +++ b/sdk/src/main/proto/transaction_record.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/transaction_response.proto b/sdk/src/main/proto/transaction_response.proto index 94b98db13b..fceb66b4ab 100644 --- a/sdk/src/main/proto/transaction_response.proto +++ b/sdk/src/main/proto/transaction_response.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/unchecked_submit.proto b/sdk/src/main/proto/unchecked_submit.proto index 86f3e192b7..ab048c3535 100644 --- a/sdk/src/main/proto/unchecked_submit.proto +++ b/sdk/src/main/proto/unchecked_submit.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/util_prng.proto b/sdk/src/main/proto/util_prng.proto index 11ca5d01c9..a13a6f18f8 100644 --- a/sdk/src/main/proto/util_prng.proto +++ b/sdk/src/main/proto/util_prng.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package option java_multiple_files = true; diff --git a/sdk/src/main/proto/util_service.proto b/sdk/src/main/proto/util_service.proto index c920c2869c..2c343a17ec 100644 --- a/sdk/src/main/proto/util_service.proto +++ b/sdk/src/main/proto/util_service.proto @@ -22,7 +22,7 @@ package proto; * ‍ */ -option java_package = "com.hedera.hashgraph.sdk.proto"; +option java_package = "com.hiero.sdk.proto"; // <<>> This comment is special code for setting PBJ Compiler java package import "transaction_response.proto"; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountAllowanceApproveTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountAllowanceApproveTransactionTest.snap deleted file mode 100644 index 278c428dc9..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountAllowanceApproveTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.AccountAllowanceApproveTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\ncrypto_approve_allowance {\n crypto_allowances {\n amount: 300000000\n spender {\n account_num: 1\n realm_num: 1\n shard_num: 1\n }\n }\n crypto_allowances {\n amount: 300000000\n owner {\n account_num: 7\n realm_num: 6\n shard_num: 5\n }\n spender {\n account_num: 1\n realm_num: 1\n shard_num: 1\n }\n }\n nft_allowances {\n serial_numbers: 123\n serial_numbers: 456\n spender {\n account_num: 5\n realm_num: 5\n shard_num: 5\n }\n token_id {\n realm_num: 4\n shard_num: 4\n token_num: 4\n }\n }\n nft_allowances {\n serial_numbers: 456\n spender {\n account_num: 5\n realm_num: 5\n shard_num: 5\n }\n token_id {\n realm_num: 8\n shard_num: 8\n token_num: 8\n }\n }\n nft_allowances {\n serial_numbers: 789\n spender {\n account_num: 9\n realm_num: 9\n shard_num: 9\n }\n token_id {\n realm_num: 4\n shard_num: 4\n token_num: 4\n }\n }\n nft_allowances {\n approved_for_all {\n value: true\n }\n spender {\n account_num: 7\n realm_num: 7\n shard_num: 7\n }\n token_id {\n realm_num: 6\n shard_num: 6\n token_num: 6\n }\n }\n nft_allowances {\n owner {\n account_num: 7\n realm_num: 6\n shard_num: 5\n }\n serial_numbers: 123\n serial_numbers: 456\n spender {\n account_num: 5\n realm_num: 5\n shard_num: 5\n }\n token_id {\n realm_num: 4\n shard_num: 4\n token_num: 4\n }\n }\n nft_allowances {\n owner {\n account_num: 7\n realm_num: 6\n shard_num: 5\n }\n serial_numbers: 456\n spender {\n account_num: 5\n realm_num: 5\n shard_num: 5\n }\n token_id {\n realm_num: 8\n shard_num: 8\n token_num: 8\n }\n }\n nft_allowances {\n owner {\n account_num: 7\n realm_num: 6\n shard_num: 5\n }\n serial_numbers: 789\n spender {\n account_num: 9\n realm_num: 9\n shard_num: 9\n }\n token_id {\n realm_num: 4\n shard_num: 4\n token_num: 4\n }\n }\n nft_allowances {\n approved_for_all {\n value: true\n }\n owner {\n account_num: 7\n realm_num: 6\n shard_num: 5\n }\n spender {\n account_num: 7\n realm_num: 7\n shard_num: 7\n }\n token_id {\n realm_num: 6\n shard_num: 6\n token_num: 6\n }\n }\n token_allowances {\n amount: 6\n spender {\n account_num: 3\n realm_num: 3\n shard_num: 3\n }\n token_id {\n realm_num: 2\n shard_num: 2\n token_num: 2\n }\n }\n token_allowances {\n amount: 6\n owner {\n account_num: 7\n realm_num: 6\n shard_num: 5\n }\n spender {\n account_num: 3\n realm_num: 3\n shard_num: 3\n }\n token_id {\n realm_num: 2\n shard_num: 2\n token_num: 2\n }\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountAllowanceDeleteTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountAllowanceDeleteTransactionTest.snap deleted file mode 100644 index e4c35c14e5..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountAllowanceDeleteTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.AccountAllowanceDeleteTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\ncrypto_delete_allowance {\n nft_allowances {\n owner {\n account_num: 7\n realm_num: 6\n shard_num: 5\n }\n serial_numbers: 123\n serial_numbers: 456\n serial_numbers: 789\n token_id {\n realm_num: 4\n shard_num: 4\n token_num: 4\n }\n }\n nft_allowances {\n owner {\n account_num: 7\n realm_num: 6\n shard_num: 5\n }\n serial_numbers: 456\n token_id {\n realm_num: 8\n shard_num: 8\n token_num: 8\n }\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountBalanceQueryTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountBalanceQueryTest.snap deleted file mode 100644 index c15c62c73a..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountBalanceQueryTest.snap +++ /dev/null @@ -1,8 +0,0 @@ -com.hedera.hashgraph.sdk.AccountBalanceQueryTest.shouldSerializeWithAccountId=[ - "# com.hedera.hashgraph.sdk.proto.Query\ncryptoget_account_balance {\n account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n }\n header {\n }\n}" -] - - -com.hedera.hashgraph.sdk.AccountBalanceQueryTest.shouldSerializeWithContractId=[ - "# com.hedera.hashgraph.sdk.proto.Query\ncryptoget_account_balance {\n contract_i_d {\n contract_num: 5005\n realm_num: 0\n shard_num: 0\n }\n header {\n }\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountCreateTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountCreateTransactionTest.snap deleted file mode 100644 index dfc3daf78d..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountCreateTransactionTest.snap +++ /dev/null @@ -1,8 +0,0 @@ -com.hedera.hashgraph.sdk.AccountCreateTransactionTest.shouldSerialize2=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\ncrypto_create_account {\n auto_renew_period {\n seconds: 36000\n }\n initial_balance: 450\n key {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n max_automatic_token_associations: 100\n memo: \"some dumb memo\"\n proxy_account_i_d {\n account_num: 1001\n realm_num: 0\n shard_num: 0\n }\n receive_record_threshold: 0\n receiver_sig_required: true\n send_record_threshold: 0\n staked_node_id: 4\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] - - -com.hedera.hashgraph.sdk.AccountCreateTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\ncrypto_create_account {\n alias: \"\\\\V.\\220\\376\\257\\016\\353\\323>\\247]!\\002O$\\235E\\024\\027\"\n auto_renew_period {\n seconds: 36000\n }\n initial_balance: 450\n key {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n max_automatic_token_associations: 100\n memo: \"some dumb memo\"\n proxy_account_i_d {\n account_num: 1001\n realm_num: 0\n shard_num: 0\n }\n receive_record_threshold: 0\n receiver_sig_required: true\n send_record_threshold: 0\n staked_account_id {\n account_num: 3\n realm_num: 0\n shard_num: 0\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountDeleteTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountDeleteTransactionTest.snap deleted file mode 100644 index a390abedf2..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountDeleteTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.AccountDeleteTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\ncrypto_delete {\n delete_account_i_d {\n account_num: 5007\n realm_num: 0\n shard_num: 0\n }\n transfer_account_i_d {\n account_num: 5008\n realm_num: 0\n shard_num: 0\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountIdTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountIdTest.snap deleted file mode 100644 index d1bb2f2fc1..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountIdTest.snap +++ /dev/null @@ -1,88 +0,0 @@ -com.hedera.hashgraph.sdk.AccountIdTest.fromBytes=[ - "0.0.5005" -] - - -com.hedera.hashgraph.sdk.AccountIdTest.fromBytesAlias=[ - "0.0.302a300506032b6570032100114e6abc371b82dab5c15ea149f02d34a012087b163516dd70f44acafabf7777" -] - - -com.hedera.hashgraph.sdk.AccountIdTest.fromBytesAliasEvmAddress=[ - "0.0.302a300506032b6570032100114e6abc371b82da" -] - - -com.hedera.hashgraph.sdk.AccountIdTest.fromBytesEvmAddress=[ - "0.0.302a300506032b6570032100114e6abc371b82da" -] - - -com.hedera.hashgraph.sdk.AccountIdTest.fromSolidityAddress=[ - "0.0.5005" -] - - -com.hedera.hashgraph.sdk.AccountIdTest.fromSolidityAddressWith0x=[ - "0.0.5005" -] - - -com.hedera.hashgraph.sdk.AccountIdTest.fromString=[ - "0.0.5005" -] - - -com.hedera.hashgraph.sdk.AccountIdTest.fromStringWithAliasEvmAddress=[ - "0.0.302a300506032b6570032100114e6abc371b82da" -] - - -com.hedera.hashgraph.sdk.AccountIdTest.fromStringWithAliasKey=[ - "0.0.302a300506032b6570032100114e6abc371b82dab5c15ea149f02d34a012087b163516dd70f44acafabf7777" -] - - -com.hedera.hashgraph.sdk.AccountIdTest.fromStringWithChecksumOnMainnet=[ - "0.0.123-vfmkw" -] - - -com.hedera.hashgraph.sdk.AccountIdTest.fromStringWithChecksumOnPreviewnet=[ - "0.0.123-ogizo" -] - - -com.hedera.hashgraph.sdk.AccountIdTest.fromStringWithChecksumOnTestnet=[ - "0.0.123-esxsf" -] - - -com.hedera.hashgraph.sdk.AccountIdTest.fromStringWithEvmAddress=[ - "0.0.302a300506032b6570032100114e6abc371b82da" -] - - -com.hedera.hashgraph.sdk.AccountIdTest.toBytes=[ - "188d27" -] - - -com.hedera.hashgraph.sdk.AccountIdTest.toBytesAlias=[ - "22221220114e6abc371b82dab5c15ea149f02d34a012087b163516dd70f44acafabf7777" -] - - -com.hedera.hashgraph.sdk.AccountIdTest.toBytesAliasEvmAddress=[ - "2214302a300506032b6570032100114e6abc371b82da" -] - - -com.hedera.hashgraph.sdk.AccountIdTest.toBytesEvmAddress=[ - "2214302a300506032b6570032100114e6abc371b82da" -] - - -com.hedera.hashgraph.sdk.AccountIdTest.toSolidityAddress=[ - "000000000000000000000000000000000000138d" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountInfoQueryTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountInfoQueryTest.snap deleted file mode 100644 index bf3cb17f93..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountInfoQueryTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.AccountInfoQueryTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.Query\ncrypto_get_info {\n account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n }\n header {\n }\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountRecordsQueryTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountRecordsQueryTest.snap deleted file mode 100644 index 9785e76039..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountRecordsQueryTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.AccountRecordsQueryTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.Query\ncrypto_get_account_records {\n account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n }\n header {\n }\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountStakersQueryTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountStakersQueryTest.snap deleted file mode 100644 index d85d2964f2..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountStakersQueryTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.AccountStakersQueryTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.Query\ncrypto_get_proxy_stakers {\n account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n }\n header {\n }\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountUpdateTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountUpdateTransactionTest.snap deleted file mode 100644 index c0b99c66ed..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountUpdateTransactionTest.snap +++ /dev/null @@ -1,8 +0,0 @@ -com.hedera.hashgraph.sdk.AccountUpdateTransactionTest.shouldSerialize2=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\ncrypto_update_account {\n account_i_d_to_update {\n account_num: 2002\n realm_num: 0\n shard_num: 0\n }\n auto_renew_period {\n seconds: 36000\n }\n expiration_time {\n seconds: 1554158543\n }\n key {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n max_automatic_token_associations {\n value: 100\n }\n memo {\n value: \"Some memo\"\n }\n proxy_account_i_d {\n account_num: 1001\n realm_num: 0\n shard_num: 0\n }\n receiver_sig_required_wrapper {\n }\n staked_node_id: 4\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] - - -com.hedera.hashgraph.sdk.AccountUpdateTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\ncrypto_update_account {\n account_i_d_to_update {\n account_num: 2002\n realm_num: 0\n shard_num: 0\n }\n auto_renew_period {\n seconds: 36000\n }\n expiration_time {\n seconds: 1554158543\n }\n key {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n max_automatic_token_associations {\n value: 100\n }\n memo {\n value: \"Some memo\"\n }\n proxy_account_i_d {\n account_num: 1001\n realm_num: 0\n shard_num: 0\n }\n receiver_sig_required_wrapper {\n }\n staked_account_id {\n account_num: 3\n realm_num: 0\n shard_num: 0\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AssessedCustomFeeTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/AssessedCustomFeeTest.snap deleted file mode 100644 index f148579e50..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AssessedCustomFeeTest.snap +++ /dev/null @@ -1,13 +0,0 @@ -com.hedera.hashgraph.sdk.AssessedCustomFeeTest.fromProtobuf=[ - "AssessedCustomFee{amount=1, tokenId=2.3.4, feeCollectorAccountId=5.6.7, payerAccountIdList=[8.9.10, 11.12.13, 14.15.16]}" -] - - -com.hedera.hashgraph.sdk.AssessedCustomFeeTest.shouldSerialize=[ - "AssessedCustomFee{amount=201, tokenId=1.2.3, feeCollectorAccountId=4.5.6, payerAccountIdList=[0.0.1, 0.0.2, 0.0.3]}" -] - - -com.hedera.hashgraph.sdk.AssessedCustomFeeTest.toProtobuf=[ - "# com.hedera.hashgraph.sdk.proto.AssessedCustomFee@55ba505b\namount: 1\neffective_payer_account_id {\n account_num: 10\n realm_num: 9\n shard_num: 8\n}\neffective_payer_account_id {\n account_num: 13\n realm_num: 12\n shard_num: 11\n}\neffective_payer_account_id {\n account_num: 16\n realm_num: 15\n shard_num: 14\n}\nfee_collector_account_id {\n account_num: 7\n realm_num: 6\n shard_num: 5\n}\ntoken_id {\n realm_num: 3\n shard_num: 2\n token_num: 4\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractByteCodeQueryTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractByteCodeQueryTest.snap deleted file mode 100644 index 3bcf495af4..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractByteCodeQueryTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.ContractByteCodeQueryTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.Query\ncontract_get_bytecode {\n contract_i_d {\n contract_num: 5005\n realm_num: 0\n shard_num: 0\n }\n header {\n }\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractCallQueryTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractCallQueryTest.snap deleted file mode 100644 index c758a8b2a7..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractCallQueryTest.snap +++ /dev/null @@ -1,8 +0,0 @@ -com.hedera.hashgraph.sdk.ContractCallQueryTest.setFunctionParameters=[ - "# com.hedera.hashgraph.sdk.proto.Query\ncontract_call_local {\n contract_i_d {\n contract_num: 5005\n realm_num: 0\n shard_num: 0\n }\n function_parameters: \"\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000@\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\200\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\005Hello\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\006world!\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\"\n gas: 1541\n header {\n }\n max_result_size: 0\n sender_id {\n account_num: 3\n realm_num: 2\n shard_num: 1\n }\n}" -] - - -com.hedera.hashgraph.sdk.ContractCallQueryTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.Query\ncontract_call_local {\n contract_i_d {\n contract_num: 5005\n realm_num: 0\n shard_num: 0\n }\n function_parameters: \"\\022J\\203\\372\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000@\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\200\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\005Hello\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\006world!\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\"\n gas: 1541\n header {\n }\n max_result_size: 0\n sender_id {\n account_num: 3\n realm_num: 2\n shard_num: 1\n }\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractCreateTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractCreateTransactionTest.snap deleted file mode 100644 index fb650f2133..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractCreateTransactionTest.snap +++ /dev/null @@ -1,8 +0,0 @@ -com.hedera.hashgraph.sdk.ContractCreateTransactionTest.shouldSerialize2=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\ncontract_create_instance {\n admin_key {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n auto_renew_account_id {\n account_num: 30\n realm_num: 0\n shard_num: 0\n }\n auto_renew_period {\n seconds: 36000\n }\n constructor_parameters: \"\\n\\v\\f\\r\\031\"\n gas: 0\n initcode: \"\\336\\255\\276\\357\"\n initial_balance: 1000\n max_automatic_token_associations: 101\n staked_node_id: 4\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] - - -com.hedera.hashgraph.sdk.ContractCreateTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\ncontract_create_instance {\n admin_key {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n auto_renew_account_id {\n account_num: 30\n realm_num: 0\n shard_num: 0\n }\n auto_renew_period {\n seconds: 36000\n }\n constructor_parameters: \"\\n\\v\\f\\r\\031\"\n file_i_d {\n file_num: 3003\n realm_num: 0\n shard_num: 0\n }\n gas: 0\n initial_balance: 1000\n max_automatic_token_associations: 101\n staked_account_id {\n account_num: 3\n realm_num: 0\n shard_num: 0\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractDeleteTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractDeleteTransactionTest.snap deleted file mode 100644 index 82145335e9..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractDeleteTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.ContractDeleteTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\ncontract_delete_instance {\n contract_i_d {\n contract_num: 5007\n realm_num: 0\n shard_num: 0\n }\n transfer_contract_i_d {\n contract_num: 5008\n realm_num: 0\n shard_num: 0\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractExecuteTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractExecuteTransactionTest.snap deleted file mode 100644 index b7dedc94a9..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractExecuteTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.ContractExecuteTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\ncontract_call {\n amount: 1000\n contract_i_d {\n contract_num: 5007\n realm_num: 0\n shard_num: 0\n }\n function_parameters: \"\\030+\\v\"\n gas: 10\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractIdTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractIdTest.snap deleted file mode 100644 index e1cba5d74c..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractIdTest.snap +++ /dev/null @@ -1,48 +0,0 @@ -com.hedera.hashgraph.sdk.ContractIdTest.fromBytes=[ - "0.0.5005" -] - - -com.hedera.hashgraph.sdk.ContractIdTest.fromEvmAddress=[ - "1.2.98329e006610472e6b372c080833f6d79ed833cf" -] - - -com.hedera.hashgraph.sdk.ContractIdTest.fromEvmAddressWith0x=[ - "1.2.98329e006610472e6b372c080833f6d79ed833cf" -] - - -com.hedera.hashgraph.sdk.ContractIdTest.fromSolidityAddress=[ - "0.0.5005" -] - - -com.hedera.hashgraph.sdk.ContractIdTest.fromSolidityAddressWith0x=[ - "0.0.5005" -] - - -com.hedera.hashgraph.sdk.ContractIdTest.fromString=[ - "0.0.5005" -] - - -com.hedera.hashgraph.sdk.ContractIdTest.fromStringWithEvmAddress=[ - "1.2.98329e006610472e6b372c080833f6d79ed833cf" -] - - -com.hedera.hashgraph.sdk.ContractIdTest.toBytes=[ - "188d27" -] - - -com.hedera.hashgraph.sdk.ContractIdTest.toSolidityAddress2=[ - "98329e006610472e6b372c080833f6d79ed833cf" -] - - -com.hedera.hashgraph.sdk.ContractIdTest.toSolidityAddress=[ - "000000000000000000000000000000000000138d" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractInfoQueryTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractInfoQueryTest.snap deleted file mode 100644 index 91b0f3a930..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractInfoQueryTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.ContractInfoQueryTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.Query\ncontract_get_info {\n contract_i_d {\n contract_num: 5005\n realm_num: 0\n shard_num: 0\n }\n header {\n }\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractLogInfoTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractLogInfoTest.snap deleted file mode 100644 index 678753ed9c..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractLogInfoTest.snap +++ /dev/null @@ -1,18 +0,0 @@ -com.hedera.hashgraph.sdk.ContractLogInfoTest.fromBytes=[ - "ContractLogInfo{contractId=0.0.10, bloom=626c6f6f6d, topics=[626c6f6f6d]}" -] - - -com.hedera.hashgraph.sdk.ContractLogInfoTest.fromProtobuf=[ - "ContractLogInfo{contractId=0.0.10, bloom=626c6f6f6d, topics=[626c6f6f6d]}" -] - - -com.hedera.hashgraph.sdk.ContractLogInfoTest.toBytes=[ - "0a02180a1205626c6f6f6d1a05626c6f6f6d" -] - - -com.hedera.hashgraph.sdk.ContractLogInfoTest.toProtobuf=[ - "# com.hedera.hashgraph.sdk.proto.ContractLoginfo@cb39e330\nbloom: \"bloom\"\ncontract_i_d {\n contract_num: 10\n realm_num: 0\n shard_num: 0\n}\ntopic: \"bloom\"" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractUpdateTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractUpdateTransactionTest.snap deleted file mode 100644 index 614b0ac21d..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractUpdateTransactionTest.snap +++ /dev/null @@ -1,8 +0,0 @@ -com.hedera.hashgraph.sdk.ContractUpdateTransactionTest.shouldSerialize2=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\ncontract_update_instance {\n admin_key {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n auto_renew_account_id {\n account_num: 30\n realm_num: 0\n shard_num: 0\n }\n auto_renew_period {\n seconds: 86400\n }\n contract_i_d {\n contract_num: 5007\n realm_num: 0\n shard_num: 0\n }\n expiration_time {\n nanos: 4000000\n seconds: 0\n }\n max_automatic_token_associations {\n value: 101\n }\n memo_wrapper {\n value: \"3\"\n }\n proxy_account_i_d {\n account_num: 4\n realm_num: 0\n shard_num: 0\n }\n staked_node_id: 4\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] - - -com.hedera.hashgraph.sdk.ContractUpdateTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\ncontract_update_instance {\n admin_key {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n auto_renew_account_id {\n account_num: 30\n realm_num: 0\n shard_num: 0\n }\n auto_renew_period {\n seconds: 86400\n }\n contract_i_d {\n contract_num: 5007\n realm_num: 0\n shard_num: 0\n }\n expiration_time {\n nanos: 4000000\n seconds: 0\n }\n max_automatic_token_associations {\n value: 101\n }\n memo_wrapper {\n value: \"3\"\n }\n proxy_account_i_d {\n account_num: 4\n realm_num: 0\n shard_num: 0\n }\n staked_account_id {\n account_num: 3\n realm_num: 0\n shard_num: 0\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/CryptoTransferTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/CryptoTransferTransactionTest.snap deleted file mode 100644 index f627277a84..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/CryptoTransferTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.CryptoTransferTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\ncrypto_transfer {\n token_transfers {\n nft_transfers {\n receiver_account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n sender_account_i_d {\n account_num: 5007\n realm_num: 0\n shard_num: 0\n }\n serial_number: 4\n }\n token {\n realm_num: 0\n shard_num: 0\n token_num: 2\n }\n }\n token_transfers {\n nft_transfers {\n receiver_account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n sender_account_i_d {\n account_num: 5007\n realm_num: 0\n shard_num: 0\n }\n serial_number: 4\n }\n nft_transfers {\n receiver_account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n sender_account_i_d {\n account_num: 5008\n realm_num: 0\n shard_num: 0\n }\n serial_number: 3\n }\n nft_transfers {\n receiver_account_i_d {\n account_num: 5007\n realm_num: 0\n shard_num: 0\n }\n sender_account_i_d {\n account_num: 5008\n realm_num: 0\n shard_num: 0\n }\n serial_number: 1\n }\n nft_transfers {\n receiver_account_i_d {\n account_num: 5007\n realm_num: 0\n shard_num: 0\n }\n sender_account_i_d {\n account_num: 5008\n realm_num: 0\n shard_num: 0\n }\n serial_number: 2\n }\n token {\n realm_num: 0\n shard_num: 0\n token_num: 3\n }\n }\n token_transfers {\n token {\n realm_num: 0\n shard_num: 0\n token_num: 4\n }\n transfers {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n amount: -1\n is_approval: true\n }\n transfers {\n account_i_d {\n account_num: 5008\n realm_num: 0\n shard_num: 0\n }\n amount: 1\n }\n }\n token_transfers {\n expected_decimals {\n value: 3\n }\n token {\n realm_num: 0\n shard_num: 0\n token_num: 5\n }\n transfers {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n amount: -800\n }\n transfers {\n account_i_d {\n account_num: 5007\n realm_num: 0\n shard_num: 0\n }\n amount: 400\n }\n transfers {\n account_i_d {\n account_num: 5008\n realm_num: 0\n shard_num: 0\n }\n amount: 400\n }\n }\n transfers {\n account_amounts {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n amount: -800\n }\n account_amounts {\n account_i_d {\n account_num: 5007\n realm_num: 0\n shard_num: 0\n }\n amount: 400\n is_approval: true\n }\n account_amounts {\n account_i_d {\n account_num: 5008\n realm_num: 0\n shard_num: 0\n }\n amount: 400\n }\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFixedFeeTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFixedFeeTest.snap deleted file mode 100644 index 01cd03c8e7..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFixedFeeTest.snap +++ /dev/null @@ -1,13 +0,0 @@ -com.hedera.hashgraph.sdk.CustomFixedFeeTest.fromProtobuf=[ - "CustomFixedFee{feeCollectorAccountId=null, allCollectorsAreExempt=false, amount=4, demoninatingTokenId=5.6.7}" -] - - -com.hedera.hashgraph.sdk.CustomFixedFeeTest.toFixedFeeProtobuf=[ - "# com.hedera.hashgraph.sdk.proto.FixedFee@409d860\namount: 4\ndenominating_token_id {\n realm_num: 6\n shard_num: 5\n token_num: 7\n}" -] - - -com.hedera.hashgraph.sdk.CustomFixedFeeTest.toProtobuf=[ - "# com.hedera.hashgraph.sdk.proto.CustomFee@91885f65\nfixed_fee {\n amount: 4\n denominating_token_id {\n realm_num: 6\n shard_num: 5\n token_num: 7\n }\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFractionalFeeTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFractionalFeeTest.snap deleted file mode 100644 index ab84b8b03f..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFractionalFeeTest.snap +++ /dev/null @@ -1,8 +0,0 @@ -com.hedera.hashgraph.sdk.CustomFractionalFeeTest.fromProtobuf=[ - "CustomFractionalFee{feeCollectorAccountId=null, allCollectorsAreExempt=false, numerator=4, denominator=5, min=6, max=7, assessmentMethod=EXCLUSIVE}" -] - - -com.hedera.hashgraph.sdk.CustomFractionalFeeTest.toProtobuf=[ - "# com.hedera.hashgraph.sdk.proto.CustomFee@b2abef2c\nfractional_fee {\n fractional_amount {\n denominator: 5\n numerator: 4\n }\n maximum_amount: 7\n minimum_amount: 6\n net_of_transfers: true\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomRoyaltyFeeTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomRoyaltyFeeTest.snap deleted file mode 100644 index d4dd2ec935..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomRoyaltyFeeTest.snap +++ /dev/null @@ -1,8 +0,0 @@ -com.hedera.hashgraph.sdk.CustomRoyaltyFeeTest.fromProtobuf=[ - "CustomRoyaltyFee{feeCollectorAccountId=null, allCollectorsAreExempt=false, numerator=4, denominator=5, fallbackFee=CustomFixedFee{feeCollectorAccountId=null, allCollectorsAreExempt=false, amount=6, demoninatingTokenId=null}}" -] - - -com.hedera.hashgraph.sdk.CustomRoyaltyFeeTest.toProtobuf=[ - "# com.hedera.hashgraph.sdk.proto.CustomFee@1abe2492\nroyalty_fee {\n exchange_value_fraction {\n denominator: 5\n numerator: 4\n }\n fallback_fee {\n amount: 6\n }\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/DelegateContractIdTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/DelegateContractIdTest.snap deleted file mode 100644 index e166fe4141..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/DelegateContractIdTest.snap +++ /dev/null @@ -1,28 +0,0 @@ -com.hedera.hashgraph.sdk.DelegateContractIdTest.fromBytes=[ - "0.0.5005" -] - - -com.hedera.hashgraph.sdk.DelegateContractIdTest.fromSolidityAddress=[ - "0.0.5005" -] - - -com.hedera.hashgraph.sdk.DelegateContractIdTest.fromSolidityAddressWith0x=[ - "0.0.5005" -] - - -com.hedera.hashgraph.sdk.DelegateContractIdTest.fromString=[ - "0.0.5005" -] - - -com.hedera.hashgraph.sdk.DelegateContractIdTest.toBytes=[ - "188d27" -] - - -com.hedera.hashgraph.sdk.DelegateContractIdTest.toSolidityAddress=[ - "000000000000000000000000000000000000138d" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/EthereumTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/EthereumTransactionTest.snap deleted file mode 100644 index e1076942f7..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/EthereumTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.EthereumTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nethereum_transaction {\n call_data {\n file_num: 6\n realm_num: 5\n shard_num: 4\n }\n ethereum_data: \"\\336\\255\\276\\357\"\n max_gas_allowance: 300000000\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileAppendTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/FileAppendTransactionTest.snap deleted file mode 100644 index 6708bb14bd..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileAppendTransactionTest.snap +++ /dev/null @@ -1,23 +0,0 @@ -com.hedera.hashgraph.sdk.FileAppendTransactionTest.shouldGetAllSignatures=[ - "[{0.0.555={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=40d079bcb4a9fbdf102051328ee5f3903e166c1dd7c1e748efc95a2fdd640e421c0a8e23709b61e4d8110451adecd71cd16d1293ce0e57ea974de5b6b2ef070e, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=0cbdeaac11d392081289fb67a93a7fd995e86f55764e45b3e5eefd2f64056a38b50e8478e64cb1af5c310c321478e09b60d641a6e898820625d2674dc54ce80e, }, 0.0.444={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=1490ad50f0fb5af40ee1d823e4f4b2603c135b3c7979b1b0ee6a323ba494e0b5cca833157c1106b976c876b060249e7ee2db30a8566d8682a42fac2f5f4a3406, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=23a657e362da4b3ea29673c26d8b17b967c53528449d99b3154e1b81676dc8d0aa229b824f9e613803b3262bc9cecc6dc6e2fc01a21830fb1641b5ed03722e07, }, }, {0.0.555={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=4b4ed404ef9a37752c070c5eb364b0df0fbe06afb0b64e0743d27767c26b1045e8532308288e2f1a40cced0782b87f20b6cfdcd8b9890c600c0e2146a48ace00, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=95444670cecb07fc452a4e3f350eca481e5462e3349a6741cd4e6746b21c66e67825c169f3b4cf82ab1853f1cf0acedc84b2f565346dc173a93f054c19966b08, }, 0.0.444={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=ce2b975f698ca802721c80a3792fca39d73609afaa8961bb91da569463c50eecb07d7e26e7e8febb5163474139e94533e8eb7016e0c149e0823d7102ed2b0502, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=ea31e49f64fd41773561f81459a2381e0194788853e28ffb683caded7a675d386b2a228c67ec83bfc448f14ee4fd2eae41569f06006c515621e1f26514c9bf0a, }, }, {0.0.555={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=0aedd8f92e68278823397cb0eddc1c07f1fd80c223781280a0ffb0eef21b516444e4521294ad380e8a46c7f22f1723eef8872ccf4d8aa415345e0a7fe1485c06, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=8cf7f0ae116557d5f4a5bbee82dee3cfe950c0ecedbce5d2a7b729dd7614d47c436e6951c401870f85dadd696160ecee1ab8e65aa607ca942051e78b8f09a406, }, 0.0.444={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=47c3e240259603f3e7fa41ced3eb9931bc4350367aa6529994c048fb0aca1853630bf8fbbdf9b2768c52b91b5f5d669a4adab06ef0851107f6e8012d948ba90b, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=d1a4d3349a1bc7cd0242e09ed9b1811ea99fb6123826b946651ee8c9dd593eb40591697fad4360e3941c9eea55cd2173189df349aa16b9a11db62ed28de8ad06, }, }, {0.0.555={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=aa009ad11594bb981504f8d4063c9d90bfb0bccc4bda8f9e3ffd326fc39e599fae94ba98110342a449437f7c848e2a9dd6de0d008e8d00c8387ff094c93c2700, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=5a2b40589f128f3bac99649d0aec7230e3c993130f36814c742ae37104e93d22e2b548d97e471f583d1c81bbcf6f916cc03f20375499e3a37b2c6b13a5a94507, }, 0.0.444={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=63800201fd378e81946c73104907b0b0aa70ff5913889b21b4eac730e535f8acbf08f63da5824419fc14155d6fc19f23a53bfd3324d8baa68dc5d00e8974de07, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=084bdc8f8580a2ebcc0a5140f766aca111b5488092a41871d104834dda27d6b99288423835bc7114860ce6c740300ebe9f8ab576e7646097eee7d6692b90d109, }, }, {0.0.555={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=645d9d66e90a104462741e2f49fe77d2edce5d49a033c9c51768a2fba6deda96a71ad95e00416bb5a8a07cfaf543a1fee8730c11af4a380d6f30ec88d2271c0d, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=2bc0f7e72aa2e953741815ac95135e50ece67543683e6da3a26bc95534d9ca538d802d567fcb154bf98001663dc46d8674ff4e9361021fbe2a55e83f9442f802, }, 0.0.444={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=e83759154409ce22146e31ff826a3ee4940916784e5953c4c0502ef5c2f9e7ca2d114223c3461a491dfebdcc11e511e91400007a1dc3827b7b98c7225239460f, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=595653b3f5cedf84e845f0dc2c503aad94b259eee4c10ad32cd86976b246cd81726ae8edc35e41e9ebae9e27a3ed96aff524b9b04481fad2722fdab8a4ee5a0f, }, }, {0.0.555={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=dea30ba3201c32f5c23afac9d5b013c4e41a30d08205d21a09722f5aebb0760b2452ba254eea5008de68411560081e94ccd78c5008353aa6bb64779e79078702, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=903762ba6159fcf940281d810a268980cdf2fa35683626d52e41ad18202492fef5f8de2002c49cb56ac9d9e78177823f1f97741634237943459c31540f801502, }, 0.0.444={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=c463b37297427a620f739b3a420512f897745a8451315de360391b2f6879e644ba3a8597e4f6e3a1a135bf354bb0911fe421e0174f48b650f54e3fe86247e507, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=342e41dbd4e3ef300192767ffeb9b062b1fae68027153a84f151fdb1d3ce43592f275d87a7b90a9d6db6a67d32c6ec9e585ce199ed199cdcac0b4ef4ac12200f, }, }, {0.0.555={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=9e4dcb75574c75c7e54cc76ff08bf9e6c28cb2e74f79eb4ed8e4f968e6829bd994d9fadff9fb265988de757b858e4921c7b4db119c31f6156a79eb62ffc4110c, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=195fdc0b4c9730139ede43d8e80befe7bef91ab8fa2f271173bab926cff2c797117a28716112b6d1ab3b6c669a4b923f5885b40f67885b1a64d0445ad75bbe0e, }, 0.0.444={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=0e3e02a08fd3a807c79c1ce2117612c2902557aa7c57da2494744f45b105f3f67b9977564f83baf2cd7dd4fe2cf0421f9367343a92d90199e97f22bc977f3d0f, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=a9ef610d944c989424477a2e31b970033bffcce8899116820f9eac06f2d06226cfe714e6a835135e2fb632dda80b439199e76870156acd6f81d4c3cf342a3706, }, }, ]" -] - - -com.hedera.hashgraph.sdk.FileAppendTransactionTest.shouldGetSignatures=[ - "{0.0.555={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=a762395ad7e3fa298ed990785699133ca64d11a28fb4dfc83d6d95a9a2639b688d5afc288fcdb8168f4a85876b2b785e3303ddec38666bbae4f5436d6334540b, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=8bea3d52ad5badc4ebf5e20f874cf2e5dec3189d3a471c39fd1062743ba7729de1c484f1e8ac2f15343494799e97b5ac220734a261994d91ffed9e113c09d700, }, 0.0.444={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=4b8fd70342b6c201f08177de53122be909d5d72f97d29fba69e7ac6ef04d96b19ac417c9b84fbb122bce9c8323bc38bd6165b5750ce16ee4a2f23e28d7123006, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=371b502056cbf34c1bd7f9891e82c7a53ab8d92ce1728f790acc9a09989196fbf4c1c111ca010a19f1af82f2480be92229b5a1aadfe4af9142bd212254c88b08, }, }" -] - - -com.hedera.hashgraph.sdk.FileAppendTransactionTest.shouldHash=[ - "[{0.0.555=d2f10044785bb7ecbfc024a171b28ec877a123a2b6f3b2a48db5595208ea8bd036e4c4babb682d87e06ce62d7c2b1bb3, 0.0.444=38603d6b2a449030ea49b7cbd7e19cd66b4e3f2891ca40df861b4840418cb08575b7ce25426b1192545d352a89f0f3da, }, {0.0.555=74ed3e44b14e41ad5964a52adde1c32932b9dd75f589d0985504bbc483dc778493866ae879769d693e2a6fa80c6a118c, 0.0.444=0939a5cbfb9bbbd545d3e9f961e7fc3bcbf49553ce7e3a00414b5b0964ca9aae0ea878e280efa217503aed65d1057880, }, {0.0.555=9ef69da0531b3828cfc5b14cb5df373ae46922ad192df9d488684b845ce4754b2a20c1e966d2835ea178890fdaac9a00, 0.0.444=1332b1dfb679ea2a91b21de2bed0d086c5139893fce55b0471e2b08ec2e0fbbcee48783eda0a1e876ee0a7086416c26a, }, {0.0.555=e62ca0554d6e40461dbecc035165d35716d61eae59a305414a91a6fb85f36ba3adc1f6b963c429366485fe514407d294, 0.0.444=2deb2d9674c3e238c53080ad4d139f172dc907ba4b898210ed9359f3db92f0880503cca4fec35cd6b47c71ba5dd46aa3, }, {0.0.555=8a7721e7a8d8eede13e0ab5adb5c9520af6099c909592f45f9dc89775f69e16a2bea4a392480f1b750c817787a94099f, 0.0.444=dbb52ed2eea79c5cc58bb0b898ce03f4ee7d4ba6ad94c0d718c0c6b46fd8cea9e2ab76c42221fce44933827e382df57f, }, {0.0.555=0292097e1f3bdd4390134f10b51b2c9928fcfbe4fd54de25d407ee8b93c6ede6dda4c4263786d983de47413f541834e0, 0.0.444=16c12a7acaa5754a1e1adfc40550e5d4b09195c2347dc4fda3882d7a2823dd212ea1682642f211290b8985d45be55a0b, }, {0.0.555=e4c53e598718933cc67491218c478c23be4637e9d89107a3c1699f04143c421fd6bf5f2ff11d31ea646103cd7cd00b57, 0.0.444=5571dfcd8a279d4c33c0e9199c865556ab3aec478ddbc1560dd9c41c53423decb95348fb54b63cbc744fd1e496b2a01f, }, ]" -] - - -com.hedera.hashgraph.sdk.FileAppendTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nfile_append {\n contents: \"\\001\\002\\003\\004\"\n file_i_d {\n file_num: 6006\n realm_num: 0\n shard_num: 0\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] - - -com.hedera.hashgraph.sdk.FileAppendTransactionTest.shouldSerializeBigContents=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nfile_append {\n contents: \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur aliquam augue sem, ut mattis dui laoreet a. Curabitur consequat est euismod, scelerisque metus et, tristique dui. Nulla commodo mauris ut faucibus ultricies. Quisque venenatis nisl nec augue tempus, at efficitur elit eleifend. Duis pharetra felis metus, sed dapibus urna vehicula id. Duis non venenatis turpis, sit amet ornare orci. Donec non interdum quam. Sed finibus nunc et risus finibus, non sagittis lorem cursus. Proin pellentesque tempor aliquam. Sed congue nisl in enim bibendum, condimentum vehicula nisi feugiat.\\n\\nSuspendisse non sodales arcu. Suspendisse sodales, lorem ac mollis blandit, ipsum neque porttitor nulla, et sodales arcu ante fermentum tellus. Integer sagittis dolor sed augue fringilla accumsan. Cras vitae finibus arcu, sit amet varius dolor. Etiam id finibus dolor, vitae luctus velit. Proin efficitur augue nec pharetra accumsan. Aliquam lobortis nisl diam, vel fermentum purus finibus id. Etiam at finibus orci, et tincidunt turpis. Aliquam imperdiet congue lacus vel facilisis. Phasellus id magna vitae enim dapibus vestibulum vitae quis augue. Morbi eu consequat enim. Maecenas neque nulla, pulvinar sit amet consequat sed, tempor sed magna. Mauris lacinia sem feugiat faucibus aliquet. Etiam congue non turpis at commodo. Nulla facilisi.\\n\\nNunc velit turpis, cursus ornare fringilla eu, lacinia posuere leo. Mauris rutrum ultricies dui et suscipit. Curabitur in euismod ligula. Curabitur vitae faucibus orci. Phasellus volutpat vestibulum diam sit amet vestibulum. In vel purus leo. Nulla condimentum lectus vestibulum lectus faucibus, id lobortis eros consequat. Proin mollis libero elit, vel aliquet nisi imperdiet et. Morbi ornare est velit, in vehicula nunc malesuada quis. Donec vehicula convallis interdum.\\n\\nInteger pellentesque in nibh vitae aliquet. Ut at justo id libero dignissim hendrerit. Interdum et malesuada fames ac ante ipsum primis in faucibus. Praesent quis ornare lectus. Nam malesuada non diam quis cursus. Phasellus a libero ligula. Suspendisse ligula elit, congue et nisi sit amet, cursus euismod dolor. Morbi aliquam, nulla a posuere pellentesque, diam massa ornare risus, nec eleifend neque eros et elit.\\n\\nPellentesque a sodales dui. Sed in efficitur ante. Duis eget volutpat elit, et ornare est. Nam felis dolor, placerat mattis diam id, maximus lobortis quam. Sed pellentesque lobortis sem sed placerat. Pellentesque augue odio, molestie sed lectus sit amet, congue volutpat massa. Quisque congue consequat nunc id fringilla. Duis semper nulla eget enim venenatis dapibus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Pellentesque varius turpis nibh, sit amet malesuada mauris malesuada quis. Vivamus dictum egestas placerat. Vivamus id augue elit.\\n\\nCras fermentum volutpat eros, vitae euismod lorem viverra nec. Donec lectus augue, porta eleifend odio sit amet, condimentum rhoncus urna. Nunc sed odio velit. Morbi non cursus odio, eget imperdiet erat. Nunc rhoncus massa non neque volutpat, sit amet faucibus ante congue. Phasellus nec lorem vel leo accumsan lobortis. Maecenas id ligula bibendum purus suscipit posuere ac eget diam. Nam in quam pretium, semper erat auctor, iaculis odio. Maecenas placerat, nisi ac elementum tempor, felis nulla porttitor orci, ac rhoncus diam justo in elit. Etiam lobortis fermentum ligula in tincidunt. Donec quis vestibulum nunc. Sed eros diam, interdum in porta lobortis, gravida eu magna. Donec diam purus, finibus et sollicitudin quis, fringilla nec nisi. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur ultricies sagittis dapibus. Etiam ullamcorper aliquet libero, eu venenatis mauris suscipit id.\\n\\nUt interdum eleifend sem, vel bibendum ipsum volutpat eget. Nunc ac dignissim augue. Aliquam ornare aliquet magna id dignissim. Vestibulum velit sem, lacinia eu rutrum in, rhoncus vitae mauris. Pellentesque scelerisque pulvinar mauris non cursus. Integer id dolor porta, bibendum sem vel, pretium tortor. Fusce a nisi convallis, interdum quam condimentum, suscipit dolor. Sed magna diam, efficitur non nunc in, tincidunt varius mi. Aliquam ullamcorper nulla eu fermentum bibendum. Vivamus a felis pretium, hendrerit enim vitae, hendrerit leo. Suspendisse lacinia lectus a diam consectetur suscipit. Aenean hendrerit nisl sed diam venenatis pellentesque. Nullam egestas lectus a consequat pharetra. Vivamus ornare tellus auctor, facilisis lacus id, feugiat dui. Nam id est ut est rhoncus varius.\\n\\nAenean vel vehicula erat. Aenean gravida risus vitae purus sodales, quis dictum enim porta. Ut elit elit, fermentum sed posuere non, accumsan eu justo. Integer porta malesuada quam, et elementum massa suscipit nec. Donec in elit diam. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Duis suscipit vel ante volutpat vestibulum.\\n\\nPellentesque ex arcu, euismod et sapien ut, vulputate suscipit enim. Donec mattis sagittis augue, et mattis lacus. Cras placerat consequat lorem sed luctus. Nam suscipit aliquam sem ac imperdiet. Mauris a semper augue, pulvinar fringilla magna. Integer pretium massa non risus commodo hendrerit. Sed dictum libero id erat sodales mattis. Etiam auctor dolor lectus, ut sagittis enim lobortis vitae. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur nec orci lobortis, cursus risus eget, sollicitudin massa. Integer vel tincidunt mi, id eleifend quam. Nullam facilisis nisl eu mauris congue, vitae euismod nisi malesuada. Vivamus sit amet urna et libero sagittis dictum.\\n\\nIn hac habitasse platea dictumst. Aliquam erat volutpat. Ut dictum, mi a viverra venenatis, mi urna pulvinar nisi, nec gravida lectus diam eget urna. Ut dictum sit amet nisl ut dignissim. Sed sed mauris scelerisque, efficitur augue in, vulputate turpis. Proin dolor justo, bibendum et sollicitudin feugiat, imperdiet sed mi. Sed elementum vitae massa vel lobortis. Cras vitae massa sit amet libero dictum tempus.\\n\\nVivamus ut mauris lectus. Curabitur placerat ornare scelerisque. Cras malesuada nunc quis tortor pretium bibendum vel sed dui. Cras lobortis nibh eu erat blandit, sit amet consequat neque fermentum. Phasellus imperdiet molestie tristique. Cras auctor purus erat, id mollis ligula porttitor eget. Mauris porta pharetra odio et finibus. Suspendisse eu est a ligula bibendum cursus. Mauris ac laoreet libero. Nullam volutpat sem quis rhoncus gravida.\\n\\nDonec malesuada lacus ac iaculis cursus. Sed sem orci, feugiat ac est ut, ultricies posuere nisi. Suspendisse potenti. Phasellus ut ultricies purus. Etiam sem tortor, fermentum quis aliquam eget, consequat ut nulla. Aliquam dictum metus in mi fringilla, vel gravida nulla accumsan. Cras aliquam eget leo vel posuere. Vivamus vitae malesuada nunc. Morbi placerat magna mi, id suscipit lacus auctor quis. Nam at lorem vel odio finibus fringilla ut ac velit. Donec laoreet at nibh quis vehicula.\\n\\nFusce ac tristique nisi. Donec leo nisi, consectetur at tellus sit amet, consectetur ultrices dui. Quisque gravida mollis tempor. Maecenas semper, sapien ut dignissim feugiat, massa enim viverra dolor, non varius eros nulla nec felis. Nunc massa lacus, ornare et feugiat id, bibendum quis purus. Praesent viverra elit sit amet purus consectetur venenatis. Maecenas nibh risus, elementum sit amet enim sagittis, ultrices malesuada lectus. Vivamus non felis ante. Ut vulputate ex arcu. Aliquam porta gravida porta. Aliquam eros leo, malesuada quis eros non, maximus tristique neque. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Etiam ligula orci, mollis vel luctus nec, venenatis vitae est. Fusce rutrum convallis nisi.\\n\\nNunc laoreet eget nibh in feugiat. Pellentesque nec arcu cursus, gravida dolor a, pellentesque nisi. Praesent vel justo blandit, placerat risus eget, consectetur orci. Sed maximus metus mi, ut euismod augue ultricies in. Nunc id risus hendrerit, aliquet lorem nec, congue justo. Vestibulum vel nunc ac est euismod mattis ac vitae nulla. Donec blandit luctus mauris, sit amet bibendum dui egestas et. Aenean nec lorem nec elit ornare rutrum nec eget ligula. Fusce a ipsum vitae neque elementum pharetra. Pellentesque ullamcorper ullamcorper libero, vitae porta sem sagittis vel. Interdum et malesuada fames ac ante ipsum primis in faucibus.\\n\\nDuis at massa sit amet risus pellentesque varius sit amet vitae eros. Cras tempor aliquet sapien, vehicula varius neque volutpat et. Donec purus nibh, pellentesque ut lobortis nec, ultricies ultricies nisl. Sed accumsan ut dui sit amet vulputate. Suspendisse eu facilisis massa, a hendrerit mauris. Nulla elementum molestie tincidunt. Donec mi justo, ornare vel tempor id, gravida et orci. Nam molestie erat nec nisi bibendum accumsan. Duis vitae tempor ante. Morbi congue mauris vel sagittis facilisis. Vivamus vehicula odio orci, a tempor nibh euismod in. Proin mattis, nibh at feugiat porta, purus velit posuere felis, quis volutpat sapien dui vel odio. Nam fermentum sem nec euismod aliquet. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Aliquam erat volutpat.\\n\\nMauris congue lacus tortor. Pellentesque arcu eros, accumsan imperdiet porttitor vitae, mattis nec justo. Nullam ac aliquam mauris. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Suspendisse potenti. Fusce accumsan tempus felis a sagittis. Maecenas et velit odio. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Aliquam eros lacus, volutpat non urna sed, tincidunt ullamcorper elit. Sed sit amet gravida libero. In varius mi vel diam sollicitudin mollis.\\n\\nAenean varius, diam vitae hendrerit feugiat, libero augue ultrices odio, eget consequat sem tellus eu nisi. Nam dapibus enim et auctor sollicitudin. Nunc iaculis eros orci, ac accumsan eros malesuada ut. Ut semper augue felis, nec sodales lorem consectetur non. Cras gravida eleifend est, et sagittis eros imperdiet congue. Fusce id tellus dapibus nunc scelerisque tempus. Donec tempor placerat libero, in commodo nisi bibendum eu. Donec id eros non est sollicitudin luctus. Duis bibendum bibendum tellus nec viverra. Aliquam non faucibus ex, nec luctus dui. Curabitur efficitur varius urna non dignissim. Suspendisse elit elit, ultrices in elementum eu, tempor at magna.\\n\\nNunc in purus sit amet mi laoreet pulvinar placerat eget sapien. Donec vel felis at dui ultricies euismod quis vel neque. Donec tincidunt urna non eros pretium blandit. Nullam congue tincidunt condimentum. Curabitur et libero nibh. Proin ultricies risus id imperdiet scelerisque. Suspendisse purus mi, viverra vitae risus ut, tempus tincidunt enim. Ut luctus lobortis nisl, eget venenatis tortor cursus non. Mauris finibus nisl quis gravida ultricies. Fusce elementum lacus sit amet nunc congue, in porta nulla tincidunt.\\n\\nMauris ante risus, imperdiet blandit posuere in, blandit eu ipsum. Integer et auctor arcu. Integer quis elementum purus. Nunc in ultricies nisl, sed rutrum risus. Suspendisse venenatis eros nec lorem rhoncus, in scelerisque velit condimentum. Etiam condimentum quam felis, in elementum odio mattis et. In ut nibh porttitor, hendrerit tellus vel, luctus magna. Vestibulum et ligula et dolor pellentesque porta. Aenean efficitur porta massa et bibendum. Nulla vehicula sem in risus volutpat, a eleifend elit maximus.\\n\\nProin orci lorem, auctor a felis eu, pretium lobortis nulla. Phasellus aliquam efficitur interdum. Sed sit amet velit rutrum est dictum facilisis. Duis cursus enim at nisl tincidunt, eu molestie elit vehicula. Cras pellentesque nisl id enim feugiat fringilla. In quis tincidunt neque. Nam eu consectetur dolor. Ut id interdum mauris. Mauris nunc tortor, placerat in tempor ut, vestibulum eu nisl. Integer vel dapibus ipsum. Nunc id erat pulvinar, tincidunt magna id, condimentum massa. Pellentesque consequat est eget odio placerat vehicula. Etiam augue neque, sagittis non leo eu, tristique scelerisque dui. Ut dui urna, blandit quis urna ac, tincidunt tristique turpis.\\n\\nSuspendisse venenatis rhoncus ligula ultrices condimentum. In id laoreet eros. Suspendisse suscipit fringilla leo id euismod. Sed in quam libero. Ut at ligula tellus. Sed tristique gravida dui, at egestas odio aliquam iaculis. Praesent imperdiet velit quis nibh consequat, quis pretium sem sagittis. Donec tortor ex, congue sit amet pulvinar ac, rutrum non est. Praesent ipsum magna, venenatis sit amet vulputate id, eleifend ac ipsum.\\n\\nIn consequat, nisi iaculis laoreet elementum, massa mauris varius nisi, et porta nisi velit at urna. Maecenas sit amet aliquet eros, a rhoncus nisl. Maecenas convallis enim nunc. Morbi purus nisl, aliquam ac tincidunt sed, mattis in augue. Quisque et elementum quam, vitae maximus orci. Suspendisse hendrerit risus nec vehicula placerat. Nulla et lectus nunc. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.\\n\\nEtiam ut sodales ex. Nulla luctus, magna eu scelerisque sagittis, nibh quam consectetur neque, non rutrum dolor metus nec ex. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Sed egestas augue elit, sollicitudin accumsan massa lobortis ac. Curabitur placerat, dolor a aliquam maximus, velit ipsum laoreet ligula, id ullamcorper lacus nibh eget nisl. Donec eget lacus venenatis enim consequat auctor vel in.\\n\"\n file_i_d {\n file_num: 6006\n realm_num: 0\n shard_num: 0\n }\n}\nnode_account_i_d {\n account_num: 444\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileContentsQueryTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/FileContentsQueryTest.snap deleted file mode 100644 index 6f3eb2db24..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileContentsQueryTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.FileContentsQueryTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.Query\nfile_get_contents {\n file_i_d {\n file_num: 5005\n realm_num: 0\n shard_num: 0\n }\n header {\n }\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileCreateTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/FileCreateTransactionTest.snap deleted file mode 100644 index f9fb981009..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileCreateTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.FileCreateTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nfile_create {\n contents: \"\\001\\002\\003\\004\"\n expiration_time {\n seconds: 1554158728\n }\n keys {\n keys {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n }\n memo: \"Hello memo\"\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileDeleteTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/FileDeleteTransactionTest.snap deleted file mode 100644 index ec04b923e1..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileDeleteTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.FileDeleteTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nfile_delete {\n file_i_d {\n file_num: 6006\n realm_num: 0\n shard_num: 0\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileIdTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/FileIdTest.snap deleted file mode 100644 index d890f711e3..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileIdTest.snap +++ /dev/null @@ -1,23 +0,0 @@ -com.hedera.hashgraph.sdk.FileIdTest.fromBytes=[ - "0.0.5005" -] - - -com.hedera.hashgraph.sdk.FileIdTest.fromSolidityAddress=[ - "0.0.5005" -] - - -com.hedera.hashgraph.sdk.FileIdTest.shouldSerializeFromString=[ - "0.0.5005" -] - - -com.hedera.hashgraph.sdk.FileIdTest.toBytes=[ - "188d27" -] - - -com.hedera.hashgraph.sdk.FileIdTest.toSolidityAddress=[ - "000000000000000000000000000000000000138d" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileInfoQueryTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/FileInfoQueryTest.snap deleted file mode 100644 index 43916ce930..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileInfoQueryTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.FileInfoQueryTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.Query\nfile_get_info {\n file_i_d {\n file_num: 5005\n realm_num: 0\n shard_num: 0\n }\n header {\n }\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileUpdateTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/FileUpdateTransactionTest.snap deleted file mode 100644 index 572ce64a7a..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileUpdateTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.FileUpdateTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nfile_update {\n contents: \"\\001\\002\\003\\004\\005\"\n expiration_time {\n seconds: 1554158728\n }\n file_i_d {\n file_num: 6006\n realm_num: 0\n shard_num: 0\n }\n keys {\n keys {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n }\n memo {\n value: \"Hello memo\"\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FreezeTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/FreezeTransactionTest.snap deleted file mode 100644 index ba3efc007f..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FreezeTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.FreezeTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nfreeze {\n file_hash: \"\\027#\\220E\\207\\022\\t8\\225G\\0024\\230W\"\n freeze_type: TELEMETRY_UPGRADE\n freeze_type_value: 5\n start_time {\n seconds: 1554158542\n }\n update_file {\n file_num: 6\n realm_num: 5\n shard_num: 4\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashAddTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashAddTransactionTest.snap deleted file mode 100644 index c383adc489..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashAddTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.LiveHashAddTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\ncrypto_add_live_hash {\n live_hash {\n account_id {\n account_num: 100\n realm_num: 0\n shard_num: 0\n }\n duration {\n seconds: 2592000\n }\n hash: \"hash\"\n keys {\n keys {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n }\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 200000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashDeleteTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashDeleteTransactionTest.snap deleted file mode 100644 index 91661995c8..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashDeleteTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.LiveHashDeleteTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\ncrypto_delete_live_hash {\n account_of_live_hash {\n account_num: 100\n realm_num: 0\n shard_num: 0\n }\n live_hash_to_delete: \"hash\"\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 200000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashQueryTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashQueryTest.snap deleted file mode 100644 index 65fa054bb3..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashQueryTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.LiveHashQueryTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.Query\ncrypto_get_live_hash {\n account_i_d {\n account_num: 100\n realm_num: 0\n shard_num: 0\n }\n hash: \"\\000\\001\\002\"\n header {\n }\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/MessageSubmitTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/MessageSubmitTransactionTest.snap deleted file mode 100644 index 379f204011..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/MessageSubmitTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.MessageSubmitTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nconsensus_submit_message {\n message: \"hello\"\n topic_i_d {\n realm_num: 0\n shard_num: 0\n topic_num: 5007\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/NetworkVersionInfoQueryTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/NetworkVersionInfoQueryTest.snap deleted file mode 100644 index e2b1e4faf0..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/NetworkVersionInfoQueryTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.NetworkVersionInfoQueryTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.Query\nnetwork_get_version_info {\n header {\n payment {\n signed_transaction_bytes: \"\\336\\255\\276\\357\"\n }\n }\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/NetworkVersionInfoTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/NetworkVersionInfoTest.snap deleted file mode 100644 index e3e16ccc11..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/NetworkVersionInfoTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.NetworkVersionInfoTest.shouldSerialize=[ - "com.hedera.hashgraph.sdk.NetworkVersionInfo" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/NftIdTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/NftIdTest.snap deleted file mode 100644 index 4a275b7e4e..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/NftIdTest.snap +++ /dev/null @@ -1,33 +0,0 @@ -com.hedera.hashgraph.sdk.NftIdTest.fromBytes=[ - "0.0.5005/574489" -] - - -com.hedera.hashgraph.sdk.NftIdTest.fromString2=[ - "0.0.5005/1234" -] - - -com.hedera.hashgraph.sdk.NftIdTest.fromString=[ - "0.0.5005/1234" -] - - -com.hedera.hashgraph.sdk.NftIdTest.fromStringWithChecksumOnMainnet=[ - "0.0.123-vfmkw/7584" -] - - -com.hedera.hashgraph.sdk.NftIdTest.fromStringWithChecksumOnPreviewnet=[ - "0.0.123-ogizo/487302" -] - - -com.hedera.hashgraph.sdk.NftIdTest.fromStringWithChecksumOnTestnet=[ - "0.0.123-esxsf/584903" -] - - -com.hedera.hashgraph.sdk.NftIdTest.toBytes=[ - "0a03188d2710b826" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/NodeCreateTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/NodeCreateTransactionTest.snap deleted file mode 100644 index d8436dd0b3..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/NodeCreateTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.NodeCreateTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\nnode_create {\n account_id {\n account_num: 9\n realm_num: 6\n shard_num: 0\n }\n admin_key {\n ed25519: \"\\030\\214\\252`\\231\\024#O\\b\\370\\342\\232\\321g\\274\\273\\346\\221}\\211m\\244R\\306\\017\\230\\017j,\\246\\206\\001\"\n }\n description: \"Test description\"\n gossip_ca_certificate: \"\\000\\001\\002\\003\\004\"\n gossip_endpoint {\n domain_name: \"0unit.test.com\"\n ip_address_v4: \"\\000\\001\\002\\003\"\n port: 42\n }\n gossip_endpoint {\n domain_name: \"1unit.test.com\"\n ip_address_v4: \"\\000\\001\\002\\003\"\n port: 43\n }\n gossip_endpoint {\n domain_name: \"2unit.test.com\"\n ip_address_v4: \"\\000\\001\\002\\003\"\n port: 44\n }\n grpc_certificate_hash: \"\\005\\006\\a\\b\\t\"\n service_endpoint {\n domain_name: \"3unit.test.com\"\n ip_address_v4: \"\\000\\001\\002\\003\"\n port: 45\n }\n service_endpoint {\n domain_name: \"4unit.test.com\"\n ip_address_v4: \"\\000\\001\\002\\003\"\n port: 46\n }\n service_endpoint {\n domain_name: \"5unit.test.com\"\n ip_address_v4: \"\\000\\001\\002\\003\"\n port: 47\n }\n service_endpoint {\n domain_name: \"6unit.test.com\"\n ip_address_v4: \"\\000\\001\\002\\003\"\n port: 48\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/NodeDeleteTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/NodeDeleteTransactionTest.snap deleted file mode 100644 index 456b6ad72c..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/NodeDeleteTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.NodeDeleteTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\nnode_delete {\n node_id: 420\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/NodeUpdateTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/NodeUpdateTransactionTest.snap deleted file mode 100644 index cb5159253f..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/NodeUpdateTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.NodeUpdateTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\nnode_update {\n account_id {\n account_num: 9\n realm_num: 6\n shard_num: 0\n }\n admin_key {\n ed25519: \"\\030\\214\\252`\\231\\024#O\\b\\370\\342\\232\\321g\\274\\273\\346\\221}\\211m\\244R\\306\\017\\230\\017j,\\246\\206\\001\"\n }\n description {\n value: \"Test description\"\n }\n gossip_ca_certificate {\n value: \"\\000\\001\\002\\003\\004\"\n }\n gossip_endpoint {\n domain_name: \"0unit.test.com\"\n ip_address_v4: \"\\000\\001\\002\\003\"\n port: 42\n }\n gossip_endpoint {\n domain_name: \"1unit.test.com\"\n ip_address_v4: \"\\000\\001\\002\\003\"\n port: 43\n }\n gossip_endpoint {\n domain_name: \"2unit.test.com\"\n ip_address_v4: \"\\000\\001\\002\\003\"\n port: 44\n }\n grpc_certificate_hash {\n value: \"\\005\\006\\a\\b\\t\"\n }\n node_id: 420\n service_endpoint {\n domain_name: \"3unit.test.com\"\n ip_address_v4: \"\\000\\001\\002\\003\"\n port: 45\n }\n service_endpoint {\n domain_name: \"4unit.test.com\"\n ip_address_v4: \"\\000\\001\\002\\003\"\n port: 46\n }\n service_endpoint {\n domain_name: \"5unit.test.com\"\n ip_address_v4: \"\\000\\001\\002\\003\"\n port: 47\n }\n service_endpoint {\n domain_name: \"6unit.test.com\"\n ip_address_v4: \"\\000\\001\\002\\003\"\n port: 48\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/PrngTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/PrngTransactionTest.snap deleted file mode 100644 index c5a7b90f52..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/PrngTransactionTest.snap +++ /dev/null @@ -1,8 +0,0 @@ -com.hedera.hashgraph.sdk.PrngTransactionTest.shouldSerialize2=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}\nutil_prng {\n range: 100\n}" -] - - -com.hedera.hashgraph.sdk.PrngTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}\nutil_prng {\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ProxyStakerTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/ProxyStakerTest.snap deleted file mode 100644 index 3b28ea5a55..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ProxyStakerTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.ProxyStakerTest.fromProtobuf=[ - "ProxyStaker{accountId=0.0.100, amount=10 tℏ}" -] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleCreateTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleCreateTransactionTest.snap deleted file mode 100644 index 7099d66c6c..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleCreateTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.ScheduleCreateTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\nschedule_create {\n admin_key {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n expiration_time {\n seconds: 1554158542\n }\n memo: \"hi\"\n payer_account_i_d {\n account_num: 222\n realm_num: 0\n shard_num: 0\n }\n scheduled_transaction_body {\n crypto_transfer {\n transfers {\n account_amounts {\n account_i_d {\n account_num: 333\n realm_num: 0\n shard_num: 0\n }\n amount: 1000000000\n }\n account_amounts {\n account_i_d {\n account_num: 555\n realm_num: 0\n shard_num: 0\n }\n amount: -1000000000\n }\n }\n }\n transaction_fee: 100000000\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleDeleteTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleDeleteTransactionTest.snap deleted file mode 100644 index c655b94f5b..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleDeleteTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.ScheduleDeleteTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\nschedule_delete {\n schedule_i_d {\n realm_num: 0\n schedule_num: 444\n shard_num: 0\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleInfoQueryTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleInfoQueryTest.snap deleted file mode 100644 index cb5c62c8f3..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleInfoQueryTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.ScheduleInfoQueryTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.Query\nschedule_get_info {\n header {\n }\n schedule_i_d {\n realm_num: 0\n schedule_num: 5005\n shard_num: 0\n }\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleSignTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleSignTransactionTest.snap deleted file mode 100644 index 95b7607475..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleSignTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.ScheduleSignTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\nschedule_sign {\n schedule_i_d {\n realm_num: 0\n schedule_num: 444\n shard_num: 0\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/SystemDeleteTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/SystemDeleteTransactionTest.snap deleted file mode 100644 index 8d9ca7512f..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/SystemDeleteTransactionTest.snap +++ /dev/null @@ -1,8 +0,0 @@ -com.hedera.hashgraph.sdk.SystemDeleteTransactionTest.shouldSerializeContract=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\nsystem_delete {\n contract_i_d {\n contract_num: 444\n realm_num: 0\n shard_num: 0\n }\n expiration_time {\n seconds: 1554158542\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] - - -com.hedera.hashgraph.sdk.SystemDeleteTransactionTest.shouldSerializeFile=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\nsystem_delete {\n expiration_time {\n seconds: 1554158542\n }\n file_i_d {\n file_num: 444\n realm_num: 0\n shard_num: 0\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/SystemUndeleteTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/SystemUndeleteTransactionTest.snap deleted file mode 100644 index 21fe849f74..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/SystemUndeleteTransactionTest.snap +++ /dev/null @@ -1,8 +0,0 @@ -com.hedera.hashgraph.sdk.SystemUndeleteTransactionTest.shouldSerializeContract=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\nsystem_undelete {\n contract_i_d {\n contract_num: 444\n realm_num: 0\n shard_num: 0\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] - - -com.hedera.hashgraph.sdk.SystemUndeleteTransactionTest.shouldSerializeFile=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\nsystem_undelete {\n file_i_d {\n file_num: 444\n realm_num: 0\n shard_num: 0\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAirdropTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAirdropTransactionTest.snap deleted file mode 100644 index 87049b1a06..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAirdropTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.TokenAirdropTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_airdrop {\n token_transfers {\n nft_transfers {\n receiver_account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n sender_account_i_d {\n account_num: 5007\n realm_num: 0\n shard_num: 0\n }\n serial_number: 4\n }\n token {\n realm_num: 0\n shard_num: 0\n token_num: 2\n }\n }\n token_transfers {\n nft_transfers {\n receiver_account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n sender_account_i_d {\n account_num: 5007\n realm_num: 0\n shard_num: 0\n }\n serial_number: 4\n }\n nft_transfers {\n receiver_account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n sender_account_i_d {\n account_num: 5008\n realm_num: 0\n shard_num: 0\n }\n serial_number: 3\n }\n nft_transfers {\n receiver_account_i_d {\n account_num: 5007\n realm_num: 0\n shard_num: 0\n }\n sender_account_i_d {\n account_num: 5008\n realm_num: 0\n shard_num: 0\n }\n serial_number: 1\n }\n nft_transfers {\n receiver_account_i_d {\n account_num: 5007\n realm_num: 0\n shard_num: 0\n }\n sender_account_i_d {\n account_num: 5008\n realm_num: 0\n shard_num: 0\n }\n serial_number: 2\n }\n token {\n realm_num: 0\n shard_num: 0\n token_num: 3\n }\n }\n token_transfers {\n nft_transfers {\n is_approval: true\n receiver_account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n sender_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n }\n serial_number: 4\n }\n token {\n realm_num: 0\n shard_num: 0\n token_num: 4\n }\n transfers {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n amount: -1\n }\n transfers {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n amount: 123\n is_approval: true\n }\n transfers {\n account_i_d {\n account_num: 5008\n realm_num: 0\n shard_num: 0\n }\n amount: 1\n }\n }\n token_transfers {\n expected_decimals {\n value: 3\n }\n token {\n realm_num: 0\n shard_num: 0\n token_num: 5\n }\n transfers {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n amount: -800\n }\n transfers {\n account_i_d {\n account_num: 5007\n realm_num: 0\n shard_num: 0\n }\n amount: 400\n }\n transfers {\n account_i_d {\n account_num: 5008\n realm_num: 0\n shard_num: 0\n }\n amount: 400\n }\n }\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAssociateTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAssociateTransactionTest.snap deleted file mode 100644 index 109b1d30de..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAssociateTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.TokenAssociateTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_associate {\n account {\n account_num: 222\n realm_num: 0\n shard_num: 0\n }\n tokens {\n realm_num: 0\n shard_num: 0\n token_num: 666\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAssociationTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAssociationTest.snap deleted file mode 100644 index f56199f654..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAssociationTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.TokenAssociationTest.shouldSerializeAccount=[ - "TokenAssociation{tokenId=1.2.3, accountId=4.5.6}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenBurnTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenBurnTransactionTest.snap deleted file mode 100644 index 5ecd0f7114..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenBurnTransactionTest.snap +++ /dev/null @@ -1,8 +0,0 @@ -com.hedera.hashgraph.sdk.TokenBurnTransactionTest.shouldSerializeFungible=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_burn {\n amount: 69\n token {\n realm_num: 2\n shard_num: 4\n token_num: 0\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] - - -com.hedera.hashgraph.sdk.TokenBurnTransactionTest.shouldSerializeNft=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_burn {\n amount: 0\n serial_numbers: 420\n token {\n realm_num: 2\n shard_num: 4\n token_num: 0\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenCancelAirdropTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenCancelAirdropTransactionTest.snap deleted file mode 100644 index 478020d764..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenCancelAirdropTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.TokenCancelAirdropTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_cancel_airdrop {\n pending_airdrops {\n fungible_token_type {\n realm_num: 0\n shard_num: 0\n token_num: 123\n }\n receiver_id {\n account_num: 456\n realm_num: 0\n shard_num: 0\n }\n sender_id {\n account_num: 457\n realm_num: 0\n shard_num: 0\n }\n }\n pending_airdrops {\n non_fungible_token {\n serial_number: 123\n token_i_d {\n realm_num: 0\n shard_num: 0\n token_num: 1234\n }\n }\n receiver_id {\n account_num: 456\n realm_num: 0\n shard_num: 0\n }\n sender_id {\n account_num: 457\n realm_num: 0\n shard_num: 0\n }\n }\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenClaimAirdropTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenClaimAirdropTransactionTest.snap deleted file mode 100644 index 451ab57cd4..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenClaimAirdropTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.TokenClaimAirdropTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_claim_airdrop {\n pending_airdrops {\n fungible_token_type {\n realm_num: 0\n shard_num: 0\n token_num: 123\n }\n receiver_id {\n account_num: 456\n realm_num: 0\n shard_num: 0\n }\n sender_id {\n account_num: 457\n realm_num: 0\n shard_num: 0\n }\n }\n pending_airdrops {\n non_fungible_token {\n serial_number: 123\n token_i_d {\n realm_num: 0\n shard_num: 0\n token_num: 1234\n }\n }\n receiver_id {\n account_num: 456\n realm_num: 0\n shard_num: 0\n }\n sender_id {\n account_num: 457\n realm_num: 0\n shard_num: 0\n }\n }\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenCreateTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenCreateTransactionTest.snap deleted file mode 100644 index d5d7047fc6..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenCreateTransactionTest.snap +++ /dev/null @@ -1,8 +0,0 @@ -com.hedera.hashgraph.sdk.TokenCreateTransactionTest.shouldSerializeFungible=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_creation {\n admin_key {\n ed25519: \"\\332\\207p\\020\\227\\206ns\\360\\335\\224,\\273>\\227\\0063)\\371\\005X\\206!\\261x\\322\\027Yh\\215G\\374\"\n }\n auto_renew_account {\n account_num: 8\n realm_num: 8\n shard_num: 8\n }\n custom_fees {\n fee_collector_account_id {\n account_num: 543\n realm_num: 0\n shard_num: 0\n }\n fixed_fee {\n amount: 3\n denominating_token_id {\n realm_num: 3\n shard_num: 4\n token_num: 2\n }\n }\n }\n decimals: 3\n expiry {\n seconds: 1554158542\n }\n fee_schedule_key {\n ed25519: \"K\\276\\225\\250m$\\370\\371gs\\261(&\\374\\276\\000\\226\\210\\313\\r\\312\\210\\317\\361\\027\\243\\250\\257P\\303q\\023\"\n }\n freeze_default: true\n freeze_key {\n ed25519: \"=\\355S\\343\\\"3S/=\\204b2L\\321\\023\\253\\276Os!m\\360mT\\241\\034\\266\\221\\301[\\'\\315\"\n }\n initial_supply: 30\n kyc_key {\n ed25519: \"\\373\\210\\2637\\337\\327ea{\\3442*\\347\\357\\2053\\326\\036d\\203\\005\\016 \\354HE\\2453\\275\\334\\244\\261\"\n }\n max_supply: 0\n memo: \"test memo\"\n metadata: \"\\001\\002\\003\\004\\005\"\n metadata_key {\n ed25519: \"\\024m\\354\\2222\\nnF\\353\\032Cv{\\261\\354\\225\\242\\346\\300%\\032\\260\\335x\\017\\343tt\\324\\272\\304\\025\"\n }\n name: \"test name\"\n pause_key {\n ed25519: \"\\321he\\251\\214\\370\\260\\267\\370\\3727v\\262\\r\\257\\305\\276\\004\\377\\353\\232$\\227r\\a\\203\\316\\231\\036+\\031t\"\n }\n supply_key {\n ed25519: \";\\2218S\\257\\245\\233U\\253\\305\\201\\302\\254\\r6X\\n\\302\\354\\244\\275\\020\\034\\002\\027?\\357\\002\\346w\\335\\325\"\n }\n symbol: \"test symbol\"\n treasury {\n account_num: 7\n realm_num: 7\n shard_num: 7\n }\n wipe_key {\n ed25519: \"R[\\234\\025_\\220+\\221-\\275\\201\\276\\246\\324:\\a}zb\\335\\037\\357\\317\\307}\\351aD\\325\\372\\303\\356\"\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] - - -com.hedera.hashgraph.sdk.TokenCreateTransactionTest.shouldSerializeNft=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_creation {\n admin_key {\n ed25519: \"\\332\\207p\\020\\227\\206ns\\360\\335\\224,\\273>\\227\\0063)\\371\\005X\\206!\\261x\\322\\027Yh\\215G\\374\"\n }\n auto_renew_account {\n account_num: 8\n realm_num: 8\n shard_num: 8\n }\n expiry {\n seconds: 1554158542\n }\n fee_schedule_key {\n ed25519: \"K\\276\\225\\250m$\\370\\371gs\\261(&\\374\\276\\000\\226\\210\\313\\r\\312\\210\\317\\361\\027\\243\\250\\257P\\303q\\023\"\n }\n freeze_key {\n ed25519: \"=\\355S\\343\\\"3S/=\\204b2L\\321\\023\\253\\276Os!m\\360mT\\241\\034\\266\\221\\301[\\'\\315\"\n }\n initial_supply: 0\n kyc_key {\n ed25519: \"\\373\\210\\2637\\337\\327ea{\\3442*\\347\\357\\2053\\326\\036d\\203\\005\\016 \\354HE\\2453\\275\\334\\244\\261\"\n }\n max_supply: 500\n memo: \"test memo\"\n metadata: \"\\001\\002\\003\\004\\005\"\n metadata_key {\n ed25519: \"\\024m\\354\\2222\\nnF\\353\\032Cv{\\261\\354\\225\\242\\346\\300%\\032\\260\\335x\\017\\343tt\\324\\272\\304\\025\"\n }\n name: \"test name\"\n pause_key {\n ed25519: \"\\321he\\251\\214\\370\\260\\267\\370\\3727v\\262\\r\\257\\305\\276\\004\\377\\353\\232$\\227r\\a\\203\\316\\231\\036+\\031t\"\n }\n supply_key {\n ed25519: \";\\2218S\\257\\245\\233U\\253\\305\\201\\302\\254\\r6X\\n\\302\\354\\244\\275\\020\\034\\002\\027?\\357\\002\\346w\\335\\325\"\n }\n supply_type: FINITE\n supply_type_value: 1\n symbol: \"test symbol\"\n token_type: NON_FUNGIBLE_UNIQUE\n token_type_value: 1\n treasury {\n account_num: 7\n realm_num: 7\n shard_num: 7\n }\n wipe_key {\n ed25519: \"R[\\234\\025_\\220+\\221-\\275\\201\\276\\246\\324:\\a}zb\\335\\037\\357\\317\\307}\\351aD\\325\\372\\303\\356\"\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenDeleteTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenDeleteTransactionTest.snap deleted file mode 100644 index 9408562cda..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenDeleteTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.TokenDeleteTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_deletion {\n token {\n realm_num: 2\n shard_num: 1\n token_num: 3\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenDissociateTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenDissociateTransactionTest.snap deleted file mode 100644 index 8604fbddbd..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenDissociateTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.TokenDissociateTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_dissociate {\n account {\n account_num: 0\n realm_num: 9\n shard_num: 6\n }\n tokens {\n realm_num: 2\n shard_num: 4\n token_num: 0\n }\n tokens {\n realm_num: 2\n shard_num: 4\n token_num: 1\n }\n tokens {\n realm_num: 2\n shard_num: 4\n token_num: 2\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenFeeScheduleUpdateTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenFeeScheduleUpdateTransactionTest.snap deleted file mode 100644 index efe9d1349f..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenFeeScheduleUpdateTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.TokenFeeScheduleUpdateTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_fee_schedule_update {\n custom_fees {\n fee_collector_account_id {\n account_num: 4322\n realm_num: 0\n shard_num: 0\n }\n fixed_fee {\n amount: 10\n denominating_token_id {\n realm_num: 0\n shard_num: 0\n token_num: 483902\n }\n }\n }\n custom_fees {\n fee_collector_account_id {\n account_num: 389042\n realm_num: 0\n shard_num: 0\n }\n fractional_fee {\n fractional_amount {\n denominator: 7\n numerator: 3\n }\n maximum_amount: 100\n minimum_amount: 3\n net_of_transfers: true\n }\n }\n token_id {\n realm_num: 0\n shard_num: 0\n token_num: 8798\n }\n}\ntransaction_fee: 200000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenFreezeTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenFreezeTransactionTest.snap deleted file mode 100644 index c56916ede3..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenFreezeTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.TokenFreezeTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_freeze {\n account {\n account_num: 222\n realm_num: 0\n shard_num: 0\n }\n token {\n realm_num: 5\n shard_num: 6\n token_num: 4\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenGrantKycTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenGrantKycTransactionTest.snap deleted file mode 100644 index 80980fb0bf..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenGrantKycTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.TokenGrantKycTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_grant_kyc {\n account {\n account_num: 0\n realm_num: 9\n shard_num: 6\n }\n token {\n realm_num: 2\n shard_num: 4\n token_num: 0\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenInfoQueryTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenInfoQueryTest.snap deleted file mode 100644 index 91fafea344..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenInfoQueryTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.TokenInfoQueryTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.Query\ntoken_get_info {\n header {\n }\n token {\n realm_num: 2\n shard_num: 4\n token_num: 0\n }\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenMintTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenMintTransactionTest.snap deleted file mode 100644 index deb2a4bf7f..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenMintTransactionTest.snap +++ /dev/null @@ -1,8 +0,0 @@ -com.hedera.hashgraph.sdk.TokenMintTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_mint {\n amount: 10\n token {\n realm_num: 2\n shard_num: 4\n token_num: 0\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] - - -com.hedera.hashgraph.sdk.TokenMintTransactionTest.shouldSerializeMetadata=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_mint {\n amount: 0\n metadata: \"\\001\\002\\003\\004\\005\"\n token {\n realm_num: 2\n shard_num: 1\n token_num: 3\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenNftInfoQueryTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenNftInfoQueryTest.snap deleted file mode 100644 index 3fa3c8b9f3..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenNftInfoQueryTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.TokenNftInfoQueryTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.Query\ntoken_get_nft_info {\n header {\n }\n nft_i_d {\n serial_number: 101\n token_i_d {\n realm_num: 0\n shard_num: 0\n token_num: 5005\n }\n }\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenPauseTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenPauseTransactionTest.snap deleted file mode 100644 index 6f138223e4..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenPauseTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.TokenPauseTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_pause {\n token {\n realm_num: 2\n shard_num: 4\n token_num: 0\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRejectTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRejectTransactionTest.snap deleted file mode 100644 index 56b7080ccb..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRejectTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.TokenRejectTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_reject {\n owner {\n account_num: 9\n realm_num: 6\n shard_num: 0\n }\n rejections {\n fungible_token {\n realm_num: 2\n shard_num: 1\n token_num: 3\n }\n }\n rejections {\n fungible_token {\n realm_num: 5\n shard_num: 4\n token_num: 6\n }\n }\n rejections {\n fungible_token {\n realm_num: 8\n shard_num: 7\n token_num: 9\n }\n }\n rejections {\n nft {\n serial_number: 2\n token_i_d {\n realm_num: 5\n shard_num: 4\n token_num: 6\n }\n }\n }\n rejections {\n nft {\n serial_number: 3\n token_i_d {\n realm_num: 8\n shard_num: 7\n token_num: 9\n }\n }\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRevokeKycTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRevokeKycTransactionTest.snap deleted file mode 100644 index 6c91f3c12c..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRevokeKycTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.TokenRevokeKycTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_revoke_kyc {\n account {\n account_num: 0\n realm_num: 9\n shard_num: 6\n }\n token {\n realm_num: 2\n shard_num: 4\n token_num: 0\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenSupplyTypeTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenSupplyTypeTest.snap deleted file mode 100644 index 75332a5ce0..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenSupplyTypeTest.snap +++ /dev/null @@ -1,10 +0,0 @@ -com.hedera.hashgraph.sdk.TokenSupplyTypeTest.fromProtobuf=[ - "INFINITE", - "FINITE" -] - - -com.hedera.hashgraph.sdk.TokenSupplyTypeTest.toProtobuf=[ - "INFINITE", - "FINITE" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenTypeTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenTypeTest.snap deleted file mode 100644 index 88b53690cb..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenTypeTest.snap +++ /dev/null @@ -1,10 +0,0 @@ -com.hedera.hashgraph.sdk.TokenTypeTest.fromProtobuf=[ - "FUNGIBLE_COMMON", - "NON_FUNGIBLE_UNIQUE" -] - - -com.hedera.hashgraph.sdk.TokenTypeTest.toProtobuf=[ - "FUNGIBLE_COMMON", - "NON_FUNGIBLE_UNIQUE" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUnfreezeTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUnfreezeTransactionTest.snap deleted file mode 100644 index 82a155a75b..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUnfreezeTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.TokenUnfreezeTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_unfreeze {\n account {\n account_num: 222\n realm_num: 0\n shard_num: 0\n }\n token {\n realm_num: 5\n shard_num: 6\n token_num: 4\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUnpauseTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUnpauseTransactionTest.snap deleted file mode 100644 index 019f591a22..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUnpauseTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.TokenUnpauseTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_unpause {\n token {\n realm_num: 2\n shard_num: 4\n token_num: 0\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUpdateNftsTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUpdateNftsTransactionTest.snap deleted file mode 100644 index c00b3c6139..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUpdateNftsTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.TokenUpdateNftsTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_update_nfts {\n metadata {\n value: \"\\001\\002\\003\\004\\005\"\n }\n serial_numbers: 8\n serial_numbers: 9\n serial_numbers: 10\n token {\n realm_num: 2\n shard_num: 4\n token_num: 0\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUpdateTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUpdateTransactionTest.snap deleted file mode 100644 index 59624b9b44..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUpdateTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.TokenUpdateTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_update {\n admin_key {\n ed25519: \"\\332\\207p\\020\\227\\206ns\\360\\335\\224,\\273>\\227\\0063)\\371\\005X\\206!\\261x\\322\\027Yh\\215G\\374\"\n }\n auto_renew_account {\n account_num: 8\n realm_num: 8\n shard_num: 8\n }\n expiry {\n seconds: 1554158542\n }\n fee_schedule_key {\n ed25519: \"K\\276\\225\\250m$\\370\\371gs\\261(&\\374\\276\\000\\226\\210\\313\\r\\312\\210\\317\\361\\027\\243\\250\\257P\\303q\\023\"\n }\n freeze_key {\n ed25519: \"=\\355S\\343\\\"3S/=\\204b2L\\321\\023\\253\\276Os!m\\360mT\\241\\034\\266\\221\\301[\\'\\315\"\n }\n key_verification_mode: NO_VALIDATION\n key_verification_mode_value: 1\n kyc_key {\n ed25519: \"\\373\\210\\2637\\337\\327ea{\\3442*\\347\\357\\2053\\326\\036d\\203\\005\\016 \\354HE\\2453\\275\\334\\244\\261\"\n }\n memo {\n value: \"test memo\"\n }\n metadata {\n value: \"\\001\\002\\003\\004\\005\"\n }\n metadata_key {\n ed25519: \"\\024m\\354\\2222\\nnF\\353\\032Cv{\\261\\354\\225\\242\\346\\300%\\032\\260\\335x\\017\\343tt\\324\\272\\304\\025\"\n }\n name: \"test name\"\n pause_key {\n ed25519: \"\\321he\\251\\214\\370\\260\\267\\370\\3727v\\262\\r\\257\\305\\276\\004\\377\\353\\232$\\227r\\a\\203\\316\\231\\036+\\031t\"\n }\n supply_key {\n ed25519: \";\\2218S\\257\\245\\233U\\253\\305\\201\\302\\254\\r6X\\n\\302\\354\\244\\275\\020\\034\\002\\027?\\357\\002\\346w\\335\\325\"\n }\n symbol: \"test symbol\"\n token {\n realm_num: 2\n shard_num: 4\n token_num: 0\n }\n treasury {\n account_num: 7\n realm_num: 7\n shard_num: 7\n }\n wipe_key {\n ed25519: \"R[\\234\\025_\\220+\\221-\\275\\201\\276\\246\\324:\\a}zb\\335\\037\\357\\317\\307}\\351aD\\325\\372\\303\\356\"\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenWipeTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenWipeTransactionTest.snap deleted file mode 100644 index 62706f6caa..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenWipeTransactionTest.snap +++ /dev/null @@ -1,8 +0,0 @@ -com.hedera.hashgraph.sdk.TokenWipeTransactionTest.shouldSerializeFungible=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_wipe {\n account {\n account_num: 9\n realm_num: 6\n shard_num: 0\n }\n amount: 4\n serial_numbers: 8\n serial_numbers: 9\n serial_numbers: 10\n token {\n realm_num: 0\n shard_num: 0\n token_num: 111\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] - - -com.hedera.hashgraph.sdk.TokenWipeTransactionTest.shouldSerializeNft=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_wipe {\n account {\n account_num: 9\n realm_num: 6\n shard_num: 0\n }\n amount: 0\n serial_numbers: 444\n token {\n realm_num: 0\n shard_num: 0\n token_num: 111\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicCreateTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicCreateTransactionTest.snap deleted file mode 100644 index 7bdf12912f..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicCreateTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.TopicCreateTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nconsensus_create_topic {\n admin_key {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n auto_renew_account {\n account_num: 5007\n realm_num: 0\n shard_num: 0\n }\n auto_renew_period {\n seconds: 86400\n }\n memo: \"hello memo\"\n submit_key {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicDeleteTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicDeleteTransactionTest.snap deleted file mode 100644 index c27d7345f0..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicDeleteTransactionTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.TopicDeleteTransactionTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nconsensus_delete_topic {\n topic_i_d {\n realm_num: 0\n shard_num: 0\n topic_num: 5007\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicIdTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicIdTest.snap deleted file mode 100644 index 49f033efda..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicIdTest.snap +++ /dev/null @@ -1,23 +0,0 @@ -com.hedera.hashgraph.sdk.TopicIdTest.fromBytes=[ - "0.0.5005" -] - - -com.hedera.hashgraph.sdk.TopicIdTest.fromSolidityAddress=[ - "0.0.5005" -] - - -com.hedera.hashgraph.sdk.TopicIdTest.shouldSerializeFromString=[ - "0.0.5005" -] - - -com.hedera.hashgraph.sdk.TopicIdTest.toBytes=[ - "188d27" -] - - -com.hedera.hashgraph.sdk.TopicIdTest.toSolidityAddress=[ - "000000000000000000000000000000000000138d" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicInfoQueryTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicInfoQueryTest.snap deleted file mode 100644 index 7c658051ed..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicInfoQueryTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.TopicInfoQueryTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.Query\nconsensus_get_topic_info {\n header {\n }\n topic_i_d {\n realm_num: 0\n shard_num: 0\n topic_num: 5005\n }\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicUpdateTransactionTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicUpdateTransactionTest.snap deleted file mode 100644 index bc899ce78c..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicUpdateTransactionTest.snap +++ /dev/null @@ -1,8 +0,0 @@ -com.hedera.hashgraph.sdk.TopicUpdateTransactionTest.clearShouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nconsensus_update_topic {\n admin_key {\n key_list {\n }\n }\n auto_renew_account {\n account_num: 0\n realm_num: 0\n shard_num: 0\n }\n memo {\n }\n submit_key {\n key_list {\n }\n }\n topic_i_d {\n realm_num: 0\n shard_num: 0\n topic_num: 5007\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 200000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] - - -com.hedera.hashgraph.sdk.TopicUpdateTransactionTest.setShouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.TransactionBody\nconsensus_update_topic {\n admin_key {\n ed25519: \"\\332\\207p\\020\\227\\206ns\\360\\335\\224,\\273>\\227\\0063)\\371\\005X\\206!\\261x\\322\\027Yh\\215G\\374\"\n }\n auto_renew_account {\n account_num: 8\n realm_num: 8\n shard_num: 8\n }\n auto_renew_period {\n seconds: 36000\n }\n expiration_time {\n seconds: 1554158542\n }\n memo {\n value: \"test memo\"\n }\n submit_key {\n ed25519: \"\\373\\210\\2637\\337\\327ea{\\3442*\\347\\357\\2053\\326\\036d\\203\\005\\016 \\354HE\\2453\\275\\334\\244\\261\"\n }\n topic_i_d {\n realm_num: 0\n shard_num: 0\n topic_num: 5007\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 200000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionIdTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionIdTest.snap deleted file mode 100644 index b6f60979bd..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionIdTest.snap +++ /dev/null @@ -1,8 +0,0 @@ -com.hedera.hashgraph.sdk.TransactionIdTest.shouldSerialize2=[ - "0.0.23847@1588539964.632521325?scheduled/3" -] - - -com.hedera.hashgraph.sdk.TransactionIdTest.shouldSerialize=[ - "0.0.23847@1588539964.632521325" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionReceiptQueryTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionReceiptQueryTest.snap deleted file mode 100644 index f27c7718a0..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionReceiptQueryTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.TransactionReceiptQueryTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.Query\ntransaction_get_receipt {\n header {\n }\n transaction_i_d {\n account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n }\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionRecordQueryTest.snap b/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionRecordQueryTest.snap deleted file mode 100644 index 1628f83513..0000000000 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionRecordQueryTest.snap +++ /dev/null @@ -1,3 +0,0 @@ -com.hedera.hashgraph.sdk.TransactionRecordQueryTest.shouldSerialize=[ - "# com.hedera.hashgraph.sdk.proto.Query\ntransaction_get_record {\n header {\n }\n include_child_records: true\n include_duplicates: true\n transaction_i_d {\n account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n }\n}" -] \ No newline at end of file diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountAllowanceApproveTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/AccountAllowanceApproveTransactionTest.java similarity index 97% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/AccountAllowanceApproveTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/AccountAllowanceApproveTransactionTest.java index ada2e88043..b79c87e1c1 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountAllowanceApproveTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/AccountAllowanceApproveTransactionTest.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.CryptoApproveAllowanceTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.CryptoApproveAllowanceTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/AccountAllowanceApproveTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/AccountAllowanceApproveTransactionTest.snap new file mode 100644 index 0000000000..1c14e2afdd --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/AccountAllowanceApproveTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.AccountAllowanceApproveTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\ncrypto_approve_allowance {\n crypto_allowances {\n amount: 300000000\n spender {\n account_num: 1\n realm_num: 1\n shard_num: 1\n }\n }\n crypto_allowances {\n amount: 300000000\n owner {\n account_num: 7\n realm_num: 6\n shard_num: 5\n }\n spender {\n account_num: 1\n realm_num: 1\n shard_num: 1\n }\n }\n nft_allowances {\n serial_numbers: 123\n serial_numbers: 456\n spender {\n account_num: 5\n realm_num: 5\n shard_num: 5\n }\n token_id {\n realm_num: 4\n shard_num: 4\n token_num: 4\n }\n }\n nft_allowances {\n serial_numbers: 456\n spender {\n account_num: 5\n realm_num: 5\n shard_num: 5\n }\n token_id {\n realm_num: 8\n shard_num: 8\n token_num: 8\n }\n }\n nft_allowances {\n serial_numbers: 789\n spender {\n account_num: 9\n realm_num: 9\n shard_num: 9\n }\n token_id {\n realm_num: 4\n shard_num: 4\n token_num: 4\n }\n }\n nft_allowances {\n approved_for_all {\n value: true\n }\n spender {\n account_num: 7\n realm_num: 7\n shard_num: 7\n }\n token_id {\n realm_num: 6\n shard_num: 6\n token_num: 6\n }\n }\n nft_allowances {\n owner {\n account_num: 7\n realm_num: 6\n shard_num: 5\n }\n serial_numbers: 123\n serial_numbers: 456\n spender {\n account_num: 5\n realm_num: 5\n shard_num: 5\n }\n token_id {\n realm_num: 4\n shard_num: 4\n token_num: 4\n }\n }\n nft_allowances {\n owner {\n account_num: 7\n realm_num: 6\n shard_num: 5\n }\n serial_numbers: 456\n spender {\n account_num: 5\n realm_num: 5\n shard_num: 5\n }\n token_id {\n realm_num: 8\n shard_num: 8\n token_num: 8\n }\n }\n nft_allowances {\n owner {\n account_num: 7\n realm_num: 6\n shard_num: 5\n }\n serial_numbers: 789\n spender {\n account_num: 9\n realm_num: 9\n shard_num: 9\n }\n token_id {\n realm_num: 4\n shard_num: 4\n token_num: 4\n }\n }\n nft_allowances {\n approved_for_all {\n value: true\n }\n owner {\n account_num: 7\n realm_num: 6\n shard_num: 5\n }\n spender {\n account_num: 7\n realm_num: 7\n shard_num: 7\n }\n token_id {\n realm_num: 6\n shard_num: 6\n token_num: 6\n }\n }\n token_allowances {\n amount: 6\n spender {\n account_num: 3\n realm_num: 3\n shard_num: 3\n }\n token_id {\n realm_num: 2\n shard_num: 2\n token_num: 2\n }\n }\n token_allowances {\n amount: 6\n owner {\n account_num: 7\n realm_num: 6\n shard_num: 5\n }\n spender {\n account_num: 3\n realm_num: 3\n shard_num: 3\n }\n token_id {\n realm_num: 2\n shard_num: 2\n token_num: 2\n }\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountAllowanceDeleteTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/AccountAllowanceDeleteTransactionTest.java similarity index 94% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/AccountAllowanceDeleteTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/AccountAllowanceDeleteTransactionTest.java index d8f21eab66..a549cc8ced 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountAllowanceDeleteTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/AccountAllowanceDeleteTransactionTest.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.CryptoDeleteAllowanceTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.CryptoDeleteAllowanceTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/AccountAllowanceDeleteTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/AccountAllowanceDeleteTransactionTest.snap new file mode 100644 index 0000000000..26a9bb65e5 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/AccountAllowanceDeleteTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.AccountAllowanceDeleteTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\ncrypto_delete_allowance {\n nft_allowances {\n owner {\n account_num: 7\n realm_num: 6\n shard_num: 5\n }\n serial_numbers: 123\n serial_numbers: 456\n serial_numbers: 789\n token_id {\n realm_num: 4\n shard_num: 4\n token_num: 4\n }\n }\n nft_allowances {\n owner {\n account_num: 7\n realm_num: 6\n shard_num: 5\n }\n serial_numbers: 456\n token_id {\n realm_num: 8\n shard_num: 8\n token_num: 8\n }\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountBalanceQueryTest.java b/sdk/src/test/java/com/hiero/sdk/AccountBalanceQueryTest.java similarity index 88% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/AccountBalanceQueryTest.java rename to sdk/src/test/java/com/hiero/sdk/AccountBalanceQueryTest.java index b43763872d..5b4edf9bdb 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountBalanceQueryTest.java +++ b/sdk/src/test/java/com/hiero/sdk/AccountBalanceQueryTest.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.QueryHeader; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; @@ -38,7 +38,7 @@ public static void afterAll() { @Test void shouldSerializeWithAccountId() { - var builder = com.hedera.hashgraph.sdk.proto.Query.newBuilder(); + var builder = com.hiero.sdk.proto.Query.newBuilder(); new AccountBalanceQuery() .setAccountId(AccountId.fromString("0.0.5005")) .onMakeRequest(builder, QueryHeader.newBuilder().build()); @@ -47,7 +47,7 @@ void shouldSerializeWithAccountId() { @Test void shouldSerializeWithContractId() { - var builder = com.hedera.hashgraph.sdk.proto.Query.newBuilder(); + var builder = com.hiero.sdk.proto.Query.newBuilder(); new AccountBalanceQuery() .setContractId(ContractId.fromString("0.0.5005")) .onMakeRequest(builder, QueryHeader.newBuilder().build()); diff --git a/sdk/src/test/java/com/hiero/sdk/AccountBalanceQueryTest.snap b/sdk/src/test/java/com/hiero/sdk/AccountBalanceQueryTest.snap new file mode 100644 index 0000000000..39f2d34f56 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/AccountBalanceQueryTest.snap @@ -0,0 +1,8 @@ +com.hiero.sdk.AccountBalanceQueryTest.shouldSerializeWithAccountId=[ + "# com.hiero.sdk.proto.Query\ncryptoget_account_balance {\n account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n }\n header {\n }\n}" +] + + +com.hiero.sdk.AccountBalanceQueryTest.shouldSerializeWithContractId=[ + "# com.hiero.sdk.proto.Query\ncryptoget_account_balance {\n contract_i_d {\n contract_num: 5005\n realm_num: 0\n shard_num: 0\n }\n header {\n }\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountCreateTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/AccountCreateTransactionTest.java similarity index 96% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/AccountCreateTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/AccountCreateTransactionTest.java index a997f9b3c9..68b73d6e14 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountCreateTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/AccountCreateTransactionTest.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.CryptoCreateTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.CryptoCreateTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/AccountCreateTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/AccountCreateTransactionTest.snap new file mode 100644 index 0000000000..fbea71371e --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/AccountCreateTransactionTest.snap @@ -0,0 +1,8 @@ +com.hiero.sdk.AccountCreateTransactionTest.shouldSerialize2=[ + "# com.hiero.sdk.proto.TransactionBody\ncrypto_create_account {\n auto_renew_period {\n seconds: 36000\n }\n initial_balance: 450\n key {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n max_automatic_token_associations: 100\n memo: \"some dumb memo\"\n proxy_account_i_d {\n account_num: 1001\n realm_num: 0\n shard_num: 0\n }\n receive_record_threshold: 0\n receiver_sig_required: true\n send_record_threshold: 0\n staked_node_id: 4\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] + + +com.hiero.sdk.AccountCreateTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\ncrypto_create_account {\n alias: \"\\\\V.\\220\\376\\257\\016\\353\\323>\\247]!\\002O$\\235E\\024\\027\"\n auto_renew_period {\n seconds: 36000\n }\n initial_balance: 450\n key {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n max_automatic_token_associations: 100\n memo: \"some dumb memo\"\n proxy_account_i_d {\n account_num: 1001\n realm_num: 0\n shard_num: 0\n }\n receive_record_threshold: 0\n receiver_sig_required: true\n send_record_threshold: 0\n staked_account_id {\n account_num: 3\n realm_num: 0\n shard_num: 0\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountDeleteTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/AccountDeleteTransactionTest.java similarity index 94% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/AccountDeleteTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/AccountDeleteTransactionTest.java index a9ad9c4e38..f69bbbf88c 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountDeleteTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/AccountDeleteTransactionTest.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.CryptoDeleteTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.CryptoDeleteTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/AccountDeleteTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/AccountDeleteTransactionTest.snap new file mode 100644 index 0000000000..46fd270d06 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/AccountDeleteTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.AccountDeleteTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\ncrypto_delete {\n delete_account_i_d {\n account_num: 5007\n realm_num: 0\n shard_num: 0\n }\n transfer_account_i_d {\n account_num: 5008\n realm_num: 0\n shard_num: 0\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountIdTest.java b/sdk/src/test/java/com/hiero/sdk/AccountIdTest.java similarity index 99% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/AccountIdTest.java rename to sdk/src/test/java/com/hiero/sdk/AccountIdTest.java index 12e242ebb4..3662533733 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountIdTest.java +++ b/sdk/src/test/java/com/hiero/sdk/AccountIdTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; import io.github.jsonSnapshot.SnapshotMatcher; diff --git a/sdk/src/test/java/com/hiero/sdk/AccountIdTest.snap b/sdk/src/test/java/com/hiero/sdk/AccountIdTest.snap new file mode 100644 index 0000000000..289a1aa090 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/AccountIdTest.snap @@ -0,0 +1,88 @@ +com.hiero.sdk.AccountIdTest.fromBytes=[ + "0.0.5005" +] + + +com.hiero.sdk.AccountIdTest.fromBytesAlias=[ + "0.0.302a300506032b6570032100114e6abc371b82dab5c15ea149f02d34a012087b163516dd70f44acafabf7777" +] + + +com.hiero.sdk.AccountIdTest.fromBytesAliasEvmAddress=[ + "0.0.302a300506032b6570032100114e6abc371b82da" +] + + +com.hiero.sdk.AccountIdTest.fromBytesEvmAddress=[ + "0.0.302a300506032b6570032100114e6abc371b82da" +] + + +com.hiero.sdk.AccountIdTest.fromSolidityAddress=[ + "0.0.5005" +] + + +com.hiero.sdk.AccountIdTest.fromSolidityAddressWith0x=[ + "0.0.5005" +] + + +com.hiero.sdk.AccountIdTest.fromString=[ + "0.0.5005" +] + + +com.hiero.sdk.AccountIdTest.fromStringWithAliasEvmAddress=[ + "0.0.302a300506032b6570032100114e6abc371b82da" +] + + +com.hiero.sdk.AccountIdTest.fromStringWithAliasKey=[ + "0.0.302a300506032b6570032100114e6abc371b82dab5c15ea149f02d34a012087b163516dd70f44acafabf7777" +] + + +com.hiero.sdk.AccountIdTest.fromStringWithChecksumOnMainnet=[ + "0.0.123-vfmkw" +] + + +com.hiero.sdk.AccountIdTest.fromStringWithChecksumOnPreviewnet=[ + "0.0.123-ogizo" +] + + +com.hiero.sdk.AccountIdTest.fromStringWithChecksumOnTestnet=[ + "0.0.123-esxsf" +] + + +com.hiero.sdk.AccountIdTest.fromStringWithEvmAddress=[ + "0.0.302a300506032b6570032100114e6abc371b82da" +] + + +com.hiero.sdk.AccountIdTest.toBytes=[ + "188d27" +] + + +com.hiero.sdk.AccountIdTest.toBytesAlias=[ + "22221220114e6abc371b82dab5c15ea149f02d34a012087b163516dd70f44acafabf7777" +] + + +com.hiero.sdk.AccountIdTest.toBytesAliasEvmAddress=[ + "2214302a300506032b6570032100114e6abc371b82da" +] + + +com.hiero.sdk.AccountIdTest.toBytesEvmAddress=[ + "2214302a300506032b6570032100114e6abc371b82da" +] + + +com.hiero.sdk.AccountIdTest.toSolidityAddress=[ + "000000000000000000000000000000000000138d" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountInfoQueryTest.java b/sdk/src/test/java/com/hiero/sdk/AccountInfoQueryTest.java similarity index 90% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/AccountInfoQueryTest.java rename to sdk/src/test/java/com/hiero/sdk/AccountInfoQueryTest.java index 4a74a35283..4bd81a2cd5 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountInfoQueryTest.java +++ b/sdk/src/test/java/com/hiero/sdk/AccountInfoQueryTest.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.QueryHeader; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; @@ -38,7 +38,7 @@ public static void afterAll() { @Test void shouldSerialize() { - var builder = com.hedera.hashgraph.sdk.proto.Query.newBuilder(); + var builder = com.hiero.sdk.proto.Query.newBuilder(); new AccountInfoQuery() .setAccountId(AccountId.fromString("0.0.5005")) .setMaxQueryPayment(Hbar.fromTinybars(100_000)) diff --git a/sdk/src/test/java/com/hiero/sdk/AccountInfoQueryTest.snap b/sdk/src/test/java/com/hiero/sdk/AccountInfoQueryTest.snap new file mode 100644 index 0000000000..9e0c4c0e64 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/AccountInfoQueryTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.AccountInfoQueryTest.shouldSerialize=[ + "# com.hiero.sdk.proto.Query\ncrypto_get_info {\n account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n }\n header {\n }\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountInfoTest.java b/sdk/src/test/java/com/hiero/sdk/AccountInfoTest.java similarity index 94% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/AccountInfoTest.java rename to sdk/src/test/java/com/hiero/sdk/AccountInfoTest.java index 2500af52a5..93b2a2d038 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountInfoTest.java +++ b/sdk/src/test/java/com/hiero/sdk/AccountInfoTest.java @@ -17,13 +17,13 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse; -import com.hedera.hashgraph.sdk.proto.KeyList; -import com.hedera.hashgraph.sdk.proto.LiveHash; +import com.hiero.sdk.proto.CryptoGetInfoResponse; +import com.hiero.sdk.proto.KeyList; +import com.hiero.sdk.proto.LiveHash; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountInfoTest.snap b/sdk/src/test/java/com/hiero/sdk/AccountInfoTest.snap similarity index 57% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/AccountInfoTest.snap rename to sdk/src/test/java/com/hiero/sdk/AccountInfoTest.snap index 11e3c7785e..40bf1c6000 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountInfoTest.snap +++ b/sdk/src/test/java/com/hiero/sdk/AccountInfoTest.snap @@ -1,18 +1,18 @@ -com.hedera.hashgraph.sdk.AccountInfoTest.fromBytes=[ +com.hiero.sdk.AccountInfoTest.fromBytes=[ "AccountInfo{accountId=0.0.1, contractAccountId=, deleted=true, proxyAccountId=0.0.8, proxyReceived=2 tℏ, key=302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7, balance=3 tℏ, sendRecordThreshold=4 tℏ, receiveRecordThreshold=5 tℏ, receiverSignatureRequired=true, expirationTime=1970-01-01T00:00:00.006Z, autoRenewPeriod=PT168H, liveHashes=[LiveHash{accountId=0.0.10, hash=[0, 1, 2], keys=KeyList{threshold=null, keys=[302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7]}, duration=PT264H}], tokenRelationships={}, accountMemo=, ownedNfts=0, maxAutomaticTokenAssociations=0, aliasKey=null, ledgerId=previewnet, ethereumNonce=1001, stakingInfo=null}" ] -com.hedera.hashgraph.sdk.AccountInfoTest.fromProtobufWithOtherOptions=[ +com.hiero.sdk.AccountInfoTest.fromProtobufWithOtherOptions=[ "AccountInfo{accountId=0.0.1, contractAccountId=, deleted=true, proxyAccountId=0.0.8, proxyReceived=2 tℏ, key=302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7, balance=3 tℏ, sendRecordThreshold=4 tℏ, receiveRecordThreshold=5 tℏ, receiverSignatureRequired=true, expirationTime=1970-01-01T00:00:00.006Z, autoRenewPeriod=PT168H, liveHashes=[LiveHash{accountId=0.0.10, hash=[0, 1, 2], keys=KeyList{threshold=null, keys=[302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7]}, duration=PT264H}], tokenRelationships={}, accountMemo=, ownedNfts=0, maxAutomaticTokenAssociations=0, aliasKey=null, ledgerId=previewnet, ethereumNonce=1001, stakingInfo=null}" ] -com.hedera.hashgraph.sdk.AccountInfoTest.toBytes=[ +com.hiero.sdk.AccountInfoTest.toBytes=[ "CgIYARgBIgIYCDACOiISIODI7CdYpYef+sImoTwMUWt5nnLjUUGg3YKPlNN5iKS3QANIBFAFWAFiBRCAm+4CagQIgPUkcjUKAhgKEgMAAQIaJAoiEiDgyOwnWKWHn/rCJqE8DFFreZ5y41FBoN2Cj5TTeYiktyoECICBOqIBAQKoAekH" ] -com.hedera.hashgraph.sdk.AccountInfoTest.toProtobuf=[ - "# com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse$AccountInfo@57c9441\naccount_i_d {\n account_num: 1\n realm_num: 0\n shard_num: 0\n}\nauto_renew_period {\n seconds: 604800\n}\nbalance: 3\ndeleted: true\nethereum_nonce: 1001\nexpiration_time {\n nanos: 6000000\n seconds: 0\n}\ngenerate_receive_record_threshold: 5\ngenerate_send_record_threshold: 4\nkey {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n}\nledger_id: \"\\002\"\nlive_hashes {\n account_id {\n account_num: 10\n realm_num: 0\n shard_num: 0\n }\n duration {\n seconds: 950400\n }\n hash: \"\\000\\001\\002\"\n keys {\n keys {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n }\n}\nowned_nfts: 0\nproxy_account_i_d {\n account_num: 8\n realm_num: 0\n shard_num: 0\n}\nproxy_received: 2\nreceiver_sig_required: true" -] \ No newline at end of file +com.hiero.sdk.AccountInfoTest.toProtobuf=[ + "# com.hiero.sdk.proto.CryptoGetInfoResponse$AccountInfo@57c9441\naccount_i_d {\n account_num: 1\n realm_num: 0\n shard_num: 0\n}\nauto_renew_period {\n seconds: 604800\n}\nbalance: 3\ndeleted: true\nethereum_nonce: 1001\nexpiration_time {\n nanos: 6000000\n seconds: 0\n}\ngenerate_receive_record_threshold: 5\ngenerate_send_record_threshold: 4\nkey {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n}\nledger_id: \"\\002\"\nlive_hashes {\n account_id {\n account_num: 10\n realm_num: 0\n shard_num: 0\n }\n duration {\n seconds: 950400\n }\n hash: \"\\000\\001\\002\"\n keys {\n keys {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n }\n}\nowned_nfts: 0\nproxy_account_i_d {\n account_num: 8\n realm_num: 0\n shard_num: 0\n}\nproxy_received: 2\nreceiver_sig_required: true" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountRecordsQueryTest.java b/sdk/src/test/java/com/hiero/sdk/AccountRecordsQueryTest.java similarity index 90% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/AccountRecordsQueryTest.java rename to sdk/src/test/java/com/hiero/sdk/AccountRecordsQueryTest.java index 5e2d4366e3..bd4eb9d38e 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountRecordsQueryTest.java +++ b/sdk/src/test/java/com/hiero/sdk/AccountRecordsQueryTest.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.QueryHeader; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; @@ -38,7 +38,7 @@ public static void afterAll() { @Test void shouldSerialize() { - var builder = com.hedera.hashgraph.sdk.proto.Query.newBuilder(); + var builder = com.hiero.sdk.proto.Query.newBuilder(); new AccountRecordsQuery() .setAccountId(AccountId.fromString("0.0.5005")) .setMaxQueryPayment(Hbar.fromTinybars(100_000)) diff --git a/sdk/src/test/java/com/hiero/sdk/AccountRecordsQueryTest.snap b/sdk/src/test/java/com/hiero/sdk/AccountRecordsQueryTest.snap new file mode 100644 index 0000000000..cbc326c928 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/AccountRecordsQueryTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.AccountRecordsQueryTest.shouldSerialize=[ + "# com.hiero.sdk.proto.Query\ncrypto_get_account_records {\n account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n }\n header {\n }\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountStakersQueryTest.java b/sdk/src/test/java/com/hiero/sdk/AccountStakersQueryTest.java similarity index 90% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/AccountStakersQueryTest.java rename to sdk/src/test/java/com/hiero/sdk/AccountStakersQueryTest.java index 2015b2e3cf..b75956a809 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountStakersQueryTest.java +++ b/sdk/src/test/java/com/hiero/sdk/AccountStakersQueryTest.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.QueryHeader; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; @@ -38,7 +38,7 @@ public static void afterAll() { @Test void shouldSerialize() { - var builder = com.hedera.hashgraph.sdk.proto.Query.newBuilder(); + var builder = com.hiero.sdk.proto.Query.newBuilder(); new AccountStakersQuery() .setAccountId(AccountId.fromString("0.0.5005")) .setMaxQueryPayment(Hbar.fromTinybars(100_000)) diff --git a/sdk/src/test/java/com/hiero/sdk/AccountStakersQueryTest.snap b/sdk/src/test/java/com/hiero/sdk/AccountStakersQueryTest.snap new file mode 100644 index 0000000000..656e9a08af --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/AccountStakersQueryTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.AccountStakersQueryTest.shouldSerialize=[ + "# com.hiero.sdk.proto.Query\ncrypto_get_proxy_stakers {\n account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n }\n header {\n }\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountUpdateTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/AccountUpdateTransactionTest.java similarity index 96% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/AccountUpdateTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/AccountUpdateTransactionTest.java index 06af2f055a..beab3946a9 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountUpdateTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/AccountUpdateTransactionTest.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.CryptoUpdateTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.CryptoUpdateTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/AccountUpdateTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/AccountUpdateTransactionTest.snap new file mode 100644 index 0000000000..7688ebe677 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/AccountUpdateTransactionTest.snap @@ -0,0 +1,8 @@ +com.hiero.sdk.AccountUpdateTransactionTest.shouldSerialize2=[ + "# com.hiero.sdk.proto.TransactionBody\ncrypto_update_account {\n account_i_d_to_update {\n account_num: 2002\n realm_num: 0\n shard_num: 0\n }\n auto_renew_period {\n seconds: 36000\n }\n expiration_time {\n seconds: 1554158543\n }\n key {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n max_automatic_token_associations {\n value: 100\n }\n memo {\n value: \"Some memo\"\n }\n proxy_account_i_d {\n account_num: 1001\n realm_num: 0\n shard_num: 0\n }\n receiver_sig_required_wrapper {\n }\n staked_node_id: 4\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] + + +com.hiero.sdk.AccountUpdateTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\ncrypto_update_account {\n account_i_d_to_update {\n account_num: 2002\n realm_num: 0\n shard_num: 0\n }\n auto_renew_period {\n seconds: 36000\n }\n expiration_time {\n seconds: 1554158543\n }\n key {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n max_automatic_token_associations {\n value: 100\n }\n memo {\n value: \"Some memo\"\n }\n proxy_account_i_d {\n account_num: 1001\n realm_num: 0\n shard_num: 0\n }\n receiver_sig_required_wrapper {\n }\n staked_account_id {\n account_num: 3\n realm_num: 0\n shard_num: 0\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AddressBookQueryMockTest.java b/sdk/src/test/java/com/hiero/sdk/AddressBookQueryMockTest.java similarity index 85% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/AddressBookQueryMockTest.java rename to sdk/src/test/java/com/hiero/sdk/AddressBookQueryMockTest.java index 15b12394e4..cbe1a96ecf 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AddressBookQueryMockTest.java +++ b/sdk/src/test/java/com/hiero/sdk/AddressBookQueryMockTest.java @@ -1,6 +1,6 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.mirror.NetworkServiceGrpc; +import com.hiero.sdk.proto.mirror.NetworkServiceGrpc; import io.grpc.Server; import io.grpc.Status; import io.grpc.inprocess.InProcessServerBuilder; @@ -17,7 +17,7 @@ import java.util.List; import java.util.Queue; -import static com.hedera.hashgraph.sdk.BaseNodeAddress.PORT_NODE_PLAIN; +import static com.hiero.sdk.BaseNodeAddress.PORT_NODE_PLAIN; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatException; @@ -57,13 +57,13 @@ void teardown() throws Exception { @CsvSource({"sync", "async"}) void addressBookQueryWorks(String executeVersion) throws Throwable { addressBookServiceStub.requests.add( - com.hedera.hashgraph.sdk.proto.mirror.AddressBookQuery.newBuilder() + com.hiero.sdk.proto.mirror.AddressBookQuery.newBuilder() .setFileId(FileId.ADDRESS_BOOK.toProtobuf()) .setLimit(3) .build() ); addressBookServiceStub.responses.add( - new com.hedera.hashgraph.sdk.NodeAddress() + new com.hiero.sdk.NodeAddress() .setAccountId(AccountId.fromString("0.0.3")) .toProtobuf() ); @@ -87,12 +87,12 @@ Endpoint spawnEndpoint() { @Test void networkUpdatePeriodWorks() throws Throwable { addressBookServiceStub.requests.add( - com.hedera.hashgraph.sdk.proto.mirror.AddressBookQuery.newBuilder() + com.hiero.sdk.proto.mirror.AddressBookQuery.newBuilder() .setFileId(FileId.ADDRESS_BOOK.toProtobuf()) .build() ); addressBookServiceStub.responses.add( - new com.hedera.hashgraph.sdk.NodeAddress() + new com.hiero.sdk.NodeAddress() .setAccountId(AccountId.fromString("0.0.3")) .setAddresses(Collections.singletonList(spawnEndpoint())) .toProtobuf() @@ -119,18 +119,18 @@ void networkUpdatePeriodWorks() throws Throwable { }) void addressBookQueryRetries(String executeVersion, Status.Code code, String description) throws Throwable { addressBookServiceStub.requests.add( - com.hedera.hashgraph.sdk.proto.mirror.AddressBookQuery.newBuilder() + com.hiero.sdk.proto.mirror.AddressBookQuery.newBuilder() .setFileId(FileId.ADDRESS_BOOK.toProtobuf()) .build() ); addressBookServiceStub.requests.add( - com.hedera.hashgraph.sdk.proto.mirror.AddressBookQuery.newBuilder() + com.hiero.sdk.proto.mirror.AddressBookQuery.newBuilder() .setFileId(FileId.ADDRESS_BOOK.toProtobuf()) .build() ); addressBookServiceStub.responses.add(code.toStatus().withDescription(description).asRuntimeException()); addressBookServiceStub.responses.add( - new com.hedera.hashgraph.sdk.NodeAddress() + new com.hiero.sdk.NodeAddress() .setAccountId(AccountId.fromString("0.0.3")) .toProtobuf() ); @@ -154,7 +154,7 @@ void addressBookQueryRetries(String executeVersion, Status.Code code, String des "async, INVALID_ARGUMENT, " }) void addressBookQueryFails(String executeVersion, Status.Code code, String description) { - addressBookServiceStub.requests.add(com.hedera.hashgraph.sdk.proto.mirror.AddressBookQuery.newBuilder() + addressBookServiceStub.requests.add(com.hiero.sdk.proto.mirror.AddressBookQuery.newBuilder() .setFileId(FileId.ADDRESS_BOOK.toProtobuf()) .build() ); @@ -182,12 +182,12 @@ void addressBookQueryStopsAtMaxAttempts(String executeVersion, Status.Code code, addressBookQuery.setMaxAttempts(2); addressBookServiceStub.requests.add( - com.hedera.hashgraph.sdk.proto.mirror.AddressBookQuery.newBuilder() + com.hiero.sdk.proto.mirror.AddressBookQuery.newBuilder() .setFileId(FileId.ADDRESS_BOOK.toProtobuf()) .build() ); addressBookServiceStub.requests.add( - com.hedera.hashgraph.sdk.proto.mirror.AddressBookQuery.newBuilder() + com.hiero.sdk.proto.mirror.AddressBookQuery.newBuilder() .setFileId(FileId.ADDRESS_BOOK.toProtobuf()) .build() ); @@ -203,13 +203,13 @@ void addressBookQueryStopsAtMaxAttempts(String executeVersion, Status.Code code, private static class AddressBookQueryStub extends NetworkServiceGrpc.NetworkServiceImplBase { - private final Queue requests = new ArrayDeque<>(); + private final Queue requests = new ArrayDeque<>(); private final Queue responses = new ArrayDeque<>(); @Override public void getNodes( - com.hedera.hashgraph.sdk.proto.mirror.AddressBookQuery addressBookQuery, - StreamObserver streamObserver + com.hiero.sdk.proto.mirror.AddressBookQuery addressBookQuery, + StreamObserver streamObserver ) { var request = requests.poll(); assertThat(request).isNotNull(); @@ -224,7 +224,7 @@ public void getNodes( return; } - streamObserver.onNext((com.hedera.hashgraph.sdk.proto.NodeAddress) response); + streamObserver.onNext((com.hiero.sdk.proto.NodeAddress) response); } streamObserver.onCompleted(); } diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AllowancesTest.java b/sdk/src/test/java/com/hiero/sdk/AllowancesTest.java similarity index 99% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/AllowancesTest.java rename to sdk/src/test/java/com/hiero/sdk/AllowancesTest.java index 11b2353203..d849b7e090 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AllowancesTest.java +++ b/sdk/src/test/java/com/hiero/sdk/AllowancesTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; import io.github.jsonSnapshot.SnapshotMatcher; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AllowancesTest.snap b/sdk/src/test/java/com/hiero/sdk/AllowancesTest.snap similarity index 87% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/AllowancesTest.snap rename to sdk/src/test/java/com/hiero/sdk/AllowancesTest.snap index 6fb7137710..242a2ab5a7 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AllowancesTest.snap +++ b/sdk/src/test/java/com/hiero/sdk/AllowancesTest.snap @@ -1,6 +1,6 @@ -com.hedera.hashgraph.sdk.AllowancesTest.shouldSerialize=[ +com.hiero.sdk.AllowancesTest.shouldSerialize=[ "HbarAllowance{ownerAccountId=1.1.1, spenderAccountId=2.2.2, amount=3 ℏ}", "TokenAllowance{tokenId=1.2.3, ownerAccountId=4.5.6, spenderAccountId=5.5.5, amount=777}", "TokenNftAllowance{tokenId=1.1.1, ownerAccountId=2.2.2, spenderAccountId=3.3.3, delegatingSpender=null, serials=[123, 456]}", "TokenNftAllowance{tokenId=1.1.1, ownerAccountId=2.2.2, spenderAccountId=3.3.3, delegatingSpender=null, allSerials=true}" -] \ No newline at end of file +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AssessedCustomFeeTest.java b/sdk/src/test/java/com/hiero/sdk/AssessedCustomFeeTest.java similarity index 93% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/AssessedCustomFeeTest.java rename to sdk/src/test/java/com/hiero/sdk/AssessedCustomFeeTest.java index d111a21bd2..abf2d79788 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AssessedCustomFeeTest.java +++ b/sdk/src/test/java/com/hiero/sdk/AssessedCustomFeeTest.java @@ -1,4 +1,4 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; @@ -20,8 +20,8 @@ public class AssessedCustomFeeTest { new AccountId(14, 15, 16) ); - private final com.hedera.hashgraph.sdk.proto.AssessedCustomFee fee = - com.hedera.hashgraph.sdk.proto.AssessedCustomFee.newBuilder() + private final com.hiero.sdk.proto.AssessedCustomFee fee = + com.hiero.sdk.proto.AssessedCustomFee.newBuilder() .setAmount(amount) .setTokenId(tokenId.toProtobuf()) .setFeeCollectorAccountId(feeCollector.toProtobuf()) diff --git a/sdk/src/test/java/com/hiero/sdk/AssessedCustomFeeTest.snap b/sdk/src/test/java/com/hiero/sdk/AssessedCustomFeeTest.snap new file mode 100644 index 0000000000..8cda9717b8 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/AssessedCustomFeeTest.snap @@ -0,0 +1,13 @@ +com.hiero.sdk.AssessedCustomFeeTest.fromProtobuf=[ + "AssessedCustomFee{amount=1, tokenId=2.3.4, feeCollectorAccountId=5.6.7, payerAccountIdList=[8.9.10, 11.12.13, 14.15.16]}" +] + + +com.hiero.sdk.AssessedCustomFeeTest.shouldSerialize=[ + "AssessedCustomFee{amount=201, tokenId=1.2.3, feeCollectorAccountId=4.5.6, payerAccountIdList=[0.0.1, 0.0.2, 0.0.3]}" +] + + +com.hiero.sdk.AssessedCustomFeeTest.toProtobuf=[ + "# com.hiero.sdk.proto.AssessedCustomFee@55ba505b\namount: 1\neffective_payer_account_id {\n account_num: 10\n realm_num: 9\n shard_num: 8\n}\neffective_payer_account_id {\n account_num: 13\n realm_num: 12\n shard_num: 11\n}\neffective_payer_account_id {\n account_num: 16\n realm_num: 15\n shard_num: 14\n}\nfee_collector_account_id {\n account_num: 7\n realm_num: 6\n shard_num: 5\n}\ntoken_id {\n realm_num: 3\n shard_num: 2\n token_num: 4\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/BaseNodeAddressTest.java b/sdk/src/test/java/com/hiero/sdk/BaseNodeAddressTest.java similarity index 95% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/BaseNodeAddressTest.java rename to sdk/src/test/java/com/hiero/sdk/BaseNodeAddressTest.java index 576e5eb630..c414365ea7 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/BaseNodeAddressTest.java +++ b/sdk/src/test/java/com/hiero/sdk/BaseNodeAddressTest.java @@ -17,13 +17,13 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import org.junit.jupiter.api.Test; -import static com.hedera.hashgraph.sdk.BaseNodeAddress.PORT_MIRROR_TLS; -import static com.hedera.hashgraph.sdk.BaseNodeAddress.PORT_NODE_PLAIN; -import static com.hedera.hashgraph.sdk.BaseNodeAddress.PORT_NODE_TLS; +import static com.hiero.sdk.BaseNodeAddress.PORT_MIRROR_TLS; +import static com.hiero.sdk.BaseNodeAddress.PORT_NODE_PLAIN; +import static com.hiero.sdk.BaseNodeAddress.PORT_NODE_TLS; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatExceptionOfType; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ClientCloseTest.java b/sdk/src/test/java/com/hiero/sdk/ClientCloseTest.java similarity index 99% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ClientCloseTest.java rename to sdk/src/test/java/com/hiero/sdk/ClientCloseTest.java index d5743b8155..bc306b5d9c 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ClientCloseTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ClientCloseTest.java @@ -1,4 +1,4 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import org.junit.jupiter.api.Test; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ClientTest.java b/sdk/src/test/java/com/hiero/sdk/ClientTest.java similarity index 96% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ClientTest.java rename to sdk/src/test/java/com/hiero/sdk/ClientTest.java index f46e34e706..6be9549f58 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ClientTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ClientTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ThreadPoolExecutor; @@ -44,7 +44,7 @@ import java.util.concurrent.TimeoutException; import java.util.function.Function; -import static com.hedera.hashgraph.sdk.BaseNodeAddress.PORT_NODE_PLAIN; +import static com.hiero.sdk.BaseNodeAddress.PORT_NODE_PLAIN; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatExceptionOfType; import static org.assertj.core.api.Assertions.assertThatThrownBy; @@ -397,12 +397,12 @@ void testExecuteSyncTimeout(String timeoutSite) throws Exception { client.close(); } - com.hedera.hashgraph.sdk.proto.NodeAddress nodeAddress(long accountNum, String rsaPubKeyHex, byte[] certHash, byte[] ipv4) { - com.hedera.hashgraph.sdk.proto.NodeAddress.Builder builder = com.hedera.hashgraph.sdk.proto.NodeAddress.newBuilder() - .setNodeAccountId(com.hedera.hashgraph.sdk.proto.AccountID.newBuilder() + com.hiero.sdk.proto.NodeAddress nodeAddress(long accountNum, String rsaPubKeyHex, byte[] certHash, byte[] ipv4) { + com.hiero.sdk.proto.NodeAddress.Builder builder = com.hiero.sdk.proto.NodeAddress.newBuilder() + .setNodeAccountId(com.hiero.sdk.proto.AccountID.newBuilder() .setAccountNum(accountNum) .build()) - .addServiceEndpoint(com.hedera.hashgraph.sdk.proto.ServiceEndpoint.newBuilder() + .addServiceEndpoint(com.hiero.sdk.proto.ServiceEndpoint.newBuilder() .setIpAddressV4(ByteString.copyFrom(ipv4)) .setPort(PORT_NODE_PLAIN) .build()) @@ -420,7 +420,7 @@ void setNetworkFromAddressBook() throws Exception { Function nodeAddress = accountNum -> client.network.network.get(new AccountId(accountNum)).get(0).getAddressBookEntry(); // reconfigure client network from addressbook (add new nodes) - client.setNetworkFromAddressBook(NodeAddressBook.fromBytes(com.hedera.hashgraph.sdk.proto.NodeAddressBook.newBuilder() + client.setNetworkFromAddressBook(NodeAddressBook.fromBytes(com.hiero.sdk.proto.NodeAddressBook.newBuilder() .addNodeAddress(nodeAddress(10001, "10001", new byte[] {1, 0, 1}, new byte[] {10, 0, 0, 1})) .addNodeAddress(nodeAddress(10002, "10002", new byte[] {1, 0, 2}, new byte[] {10, 0, 0, 2})) .build().toByteString())); @@ -432,7 +432,7 @@ void setNetworkFromAddressBook() throws Exception { assertThat(nodeAddress.apply(10002).publicKey).isEqualTo("10002"); // reconfigure client network from addressbook without `certHash` - client.setNetworkFromAddressBook(NodeAddressBook.fromBytes(com.hedera.hashgraph.sdk.proto.NodeAddressBook.newBuilder() + client.setNetworkFromAddressBook(NodeAddressBook.fromBytes(com.hiero.sdk.proto.NodeAddressBook.newBuilder() .addNodeAddress(nodeAddress(10001, "10001", null, new byte[] {10, 0, 0, 1})) .addNodeAddress(nodeAddress(10002, "10002", null, new byte[] {10, 0, 0, 2})) .build().toByteString())); @@ -444,7 +444,7 @@ void setNetworkFromAddressBook() throws Exception { assertThat(nodeAddress.apply(10002).publicKey).isEqualTo("10002"); // reconfigure client network from addressbook (update existing nodes) - client.setNetworkFromAddressBook(NodeAddressBook.fromBytes(com.hedera.hashgraph.sdk.proto.NodeAddressBook.newBuilder() + client.setNetworkFromAddressBook(NodeAddressBook.fromBytes(com.hiero.sdk.proto.NodeAddressBook.newBuilder() .addNodeAddress(nodeAddress(10001, "810001", new byte[] {8, 1, 0, 1}, new byte[] {10, 0, 0, 1})) .addNodeAddress(nodeAddress(10002, "810002", new byte[] {8, 1, 0, 2}, new byte[] {10, 0, 0, 2})) .build().toByteString())); diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ConsumerHelperTest.java b/sdk/src/test/java/com/hiero/sdk/ConsumerHelperTest.java similarity index 98% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ConsumerHelperTest.java rename to sdk/src/test/java/com/hiero/sdk/ConsumerHelperTest.java index aa279445b5..7cd2e1ff3f 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ConsumerHelperTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ConsumerHelperTest.java @@ -1,4 +1,4 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import org.junit.jupiter.api.Test; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractByteCodeQueryTest.java b/sdk/src/test/java/com/hiero/sdk/ContractByteCodeQueryTest.java similarity index 89% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ContractByteCodeQueryTest.java rename to sdk/src/test/java/com/hiero/sdk/ContractByteCodeQueryTest.java index 514cd92437..bcab1bca3b 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractByteCodeQueryTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ContractByteCodeQueryTest.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.QueryHeader; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; @@ -38,7 +38,7 @@ public static void afterAll() { @Test void shouldSerialize() { - var builder = com.hedera.hashgraph.sdk.proto.Query.newBuilder(); + var builder = com.hiero.sdk.proto.Query.newBuilder(); new ContractByteCodeQuery() .setContractId(ContractId.fromString("0.0.5005")) .onMakeRequest(builder, QueryHeader.newBuilder().build()); diff --git a/sdk/src/test/java/com/hiero/sdk/ContractByteCodeQueryTest.snap b/sdk/src/test/java/com/hiero/sdk/ContractByteCodeQueryTest.snap new file mode 100644 index 0000000000..b539f7baa9 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/ContractByteCodeQueryTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.ContractByteCodeQueryTest.shouldSerialize=[ + "# com.hiero.sdk.proto.Query\ncontract_get_bytecode {\n contract_i_d {\n contract_num: 5005\n realm_num: 0\n shard_num: 0\n }\n header {\n }\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractCallQueryTest.java b/sdk/src/test/java/com/hiero/sdk/ContractCallQueryTest.java similarity index 91% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ContractCallQueryTest.java rename to sdk/src/test/java/com/hiero/sdk/ContractCallQueryTest.java index 7e1e33cb07..c824664e9b 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractCallQueryTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ContractCallQueryTest.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.QueryHeader; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; @@ -45,7 +45,7 @@ public static void afterAll() { @Test void shouldSerialize() { - var builder = com.hedera.hashgraph.sdk.proto.Query.newBuilder(); + var builder = com.hiero.sdk.proto.Query.newBuilder(); new ContractCallQuery() .setContractId(ContractId.fromString("0.0.5005")) .setGas(1541) @@ -60,7 +60,7 @@ void shouldSerialize() { @Test void setFunctionParameters() { - var builder = com.hedera.hashgraph.sdk.proto.Query.newBuilder(); + var builder = com.hiero.sdk.proto.Query.newBuilder(); new ContractCallQuery() .setContractId(ContractId.fromString("0.0.5005")) .setGas(1541) diff --git a/sdk/src/test/java/com/hiero/sdk/ContractCallQueryTest.snap b/sdk/src/test/java/com/hiero/sdk/ContractCallQueryTest.snap new file mode 100644 index 0000000000..d35d7ff1ec --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/ContractCallQueryTest.snap @@ -0,0 +1,8 @@ +com.hiero.sdk.ContractCallQueryTest.setFunctionParameters=[ + "# com.hiero.sdk.proto.Query\ncontract_call_local {\n contract_i_d {\n contract_num: 5005\n realm_num: 0\n shard_num: 0\n }\n function_parameters: \"\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000@\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\200\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\005Hello\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\006world!\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\"\n gas: 1541\n header {\n }\n max_result_size: 0\n sender_id {\n account_num: 3\n realm_num: 2\n shard_num: 1\n }\n}" +] + + +com.hiero.sdk.ContractCallQueryTest.shouldSerialize=[ + "# com.hiero.sdk.proto.Query\ncontract_call_local {\n contract_i_d {\n contract_num: 5005\n realm_num: 0\n shard_num: 0\n }\n function_parameters: \"\\022J\\203\\372\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000@\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\200\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\005Hello\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\006world!\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\"\n gas: 1541\n header {\n }\n max_result_size: 0\n sender_id {\n account_num: 3\n realm_num: 2\n shard_num: 1\n }\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractCreateTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/ContractCreateTransactionTest.java similarity index 96% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ContractCreateTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/ContractCreateTransactionTest.java index d044aa21b7..cd04927d6d 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractCreateTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ContractCreateTransactionTest.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.ContractCreateTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.ContractCreateTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.bouncycastle.util.encoders.Hex; import org.junit.jupiter.api.AfterAll; diff --git a/sdk/src/test/java/com/hiero/sdk/ContractCreateTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/ContractCreateTransactionTest.snap new file mode 100644 index 0000000000..183da18345 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/ContractCreateTransactionTest.snap @@ -0,0 +1,8 @@ +com.hiero.sdk.ContractCreateTransactionTest.shouldSerialize2=[ + "# com.hiero.sdk.proto.TransactionBody\ncontract_create_instance {\n admin_key {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n auto_renew_account_id {\n account_num: 30\n realm_num: 0\n shard_num: 0\n }\n auto_renew_period {\n seconds: 36000\n }\n constructor_parameters: \"\\n\\v\\f\\r\\031\"\n gas: 0\n initcode: \"\\336\\255\\276\\357\"\n initial_balance: 1000\n max_automatic_token_associations: 101\n staked_node_id: 4\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] + + +com.hiero.sdk.ContractCreateTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\ncontract_create_instance {\n admin_key {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n auto_renew_account_id {\n account_num: 30\n realm_num: 0\n shard_num: 0\n }\n auto_renew_period {\n seconds: 36000\n }\n constructor_parameters: \"\\n\\v\\f\\r\\031\"\n file_i_d {\n file_num: 3003\n realm_num: 0\n shard_num: 0\n }\n gas: 0\n initial_balance: 1000\n max_automatic_token_associations: 101\n staked_account_id {\n account_num: 3\n realm_num: 0\n shard_num: 0\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractDeleteTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/ContractDeleteTransactionTest.java similarity index 94% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ContractDeleteTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/ContractDeleteTransactionTest.java index 841be30253..5d477e9949 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractDeleteTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ContractDeleteTransactionTest.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.ContractDeleteTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.ContractDeleteTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/ContractDeleteTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/ContractDeleteTransactionTest.snap new file mode 100644 index 0000000000..f18efcd301 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/ContractDeleteTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.ContractDeleteTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\ncontract_delete_instance {\n contract_i_d {\n contract_num: 5007\n realm_num: 0\n shard_num: 0\n }\n transfer_contract_i_d {\n contract_num: 5008\n realm_num: 0\n shard_num: 0\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractExecuteTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/ContractExecuteTransactionTest.java similarity index 94% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ContractExecuteTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/ContractExecuteTransactionTest.java index 7912f01c43..cb1552ffea 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractExecuteTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ContractExecuteTransactionTest.java @@ -17,11 +17,11 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; -import com.hedera.hashgraph.sdk.proto.ContractCallTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.ContractCallTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/ContractExecuteTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/ContractExecuteTransactionTest.snap new file mode 100644 index 0000000000..726f00f7f5 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/ContractExecuteTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.ContractExecuteTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\ncontract_call {\n amount: 1000\n contract_i_d {\n contract_num: 5007\n realm_num: 0\n shard_num: 0\n }\n function_parameters: \"\\030+\\v\"\n gas: 10\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractFunctionParametersTest.java b/sdk/src/test/java/com/hiero/sdk/ContractFunctionParametersTest.java similarity index 99% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ContractFunctionParametersTest.java rename to sdk/src/test/java/com/hiero/sdk/ContractFunctionParametersTest.java index dddfb5a66c..8724929972 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractFunctionParametersTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ContractFunctionParametersTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import io.github.jsonSnapshot.SnapshotMatcher; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractFunctionParametersTest.snap b/sdk/src/test/java/com/hiero/sdk/ContractFunctionParametersTest.snap similarity index 99% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ContractFunctionParametersTest.snap rename to sdk/src/test/java/com/hiero/sdk/ContractFunctionParametersTest.snap index d15abc50c3..c4daf8bac4 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractFunctionParametersTest.snap +++ b/sdk/src/test/java/com/hiero/sdk/ContractFunctionParametersTest.snap @@ -1,4 +1,4 @@ -com.hedera.hashgraph.sdk.ContractFunctionParametersTest.intSizesEncodeCorrectly=[ +com.hiero.sdk.ContractFunctionParametersTest.intSizesEncodeCorrectly=[ [ "bitWidth = 8: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff800000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000002ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000080", "bitWidth = 16: 00000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000008000", @@ -33,4 +33,4 @@ com.hedera.hashgraph.sdk.ContractFunctionParametersTest.intSizesEncodeCorrectly= "bitWidth = 248: 00800000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000200800000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200800000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000", "bitWidth = 256: 80000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000280000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000280000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000" ] -] \ No newline at end of file +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractFunctionResultTest.java b/sdk/src/test/java/com/hiero/sdk/ContractFunctionResultTest.java similarity index 97% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ContractFunctionResultTest.java rename to sdk/src/test/java/com/hiero/sdk/ContractFunctionResultTest.java index 1666542d4b..52bfe1617d 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractFunctionResultTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ContractFunctionResultTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.BytesValue; @@ -57,7 +57,7 @@ public class ContractFunctionResultTest { @DisplayName("provides results correctly") void providesResultsCorrectly() { var result = new ContractFunctionResult( - com.hedera.hashgraph.sdk.proto.ContractFunctionResult.newBuilder() + com.hiero.sdk.proto.ContractFunctionResult.newBuilder() .setContractID(ContractId.fromString("1.2.3").toProtobuf()) .setContractCallResult(ByteString.copyFrom(callResult)) .setEvmAddress(BytesValue.newBuilder().setValue(ByteString.copyFrom(Hex.decode("98329e006610472e6B372C080833f6D79ED833cf"))).build()) @@ -116,7 +116,7 @@ void providesResultsCorrectly() { @DisplayName("can get string array result") void canGetStringArrayResult() { var result = new ContractFunctionResult( - com.hedera.hashgraph.sdk.proto.ContractFunctionResult.newBuilder() + com.hiero.sdk.proto.ContractFunctionResult.newBuilder() .setContractCallResult(ByteString.copyFrom(stringArrayCallResult)) ); diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractFunctionSelectorTest.java b/sdk/src/test/java/com/hiero/sdk/ContractFunctionSelectorTest.java similarity index 98% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ContractFunctionSelectorTest.java rename to sdk/src/test/java/com/hiero/sdk/ContractFunctionSelectorTest.java index 7ea8d4a5d8..f01b095731 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractFunctionSelectorTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ContractFunctionSelectorTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import org.bouncycastle.util.encoders.Hex; import org.junit.jupiter.api.DisplayName; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractIdTest.java b/sdk/src/test/java/com/hiero/sdk/ContractIdTest.java similarity index 99% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ContractIdTest.java rename to sdk/src/test/java/com/hiero/sdk/ContractIdTest.java index f7522a5f49..3ce9a58890 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractIdTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ContractIdTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; import io.github.jsonSnapshot.SnapshotMatcher; diff --git a/sdk/src/test/java/com/hiero/sdk/ContractIdTest.snap b/sdk/src/test/java/com/hiero/sdk/ContractIdTest.snap new file mode 100644 index 0000000000..6f5b754b88 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/ContractIdTest.snap @@ -0,0 +1,48 @@ +com.hiero.sdk.ContractIdTest.fromBytes=[ + "0.0.5005" +] + + +com.hiero.sdk.ContractIdTest.fromEvmAddress=[ + "1.2.98329e006610472e6b372c080833f6d79ed833cf" +] + + +com.hiero.sdk.ContractIdTest.fromEvmAddressWith0x=[ + "1.2.98329e006610472e6b372c080833f6d79ed833cf" +] + + +com.hiero.sdk.ContractIdTest.fromSolidityAddress=[ + "0.0.5005" +] + + +com.hiero.sdk.ContractIdTest.fromSolidityAddressWith0x=[ + "0.0.5005" +] + + +com.hiero.sdk.ContractIdTest.fromString=[ + "0.0.5005" +] + + +com.hiero.sdk.ContractIdTest.fromStringWithEvmAddress=[ + "1.2.98329e006610472e6b372c080833f6d79ed833cf" +] + + +com.hiero.sdk.ContractIdTest.toBytes=[ + "188d27" +] + + +com.hiero.sdk.ContractIdTest.toSolidityAddress2=[ + "98329e006610472e6b372c080833f6d79ed833cf" +] + + +com.hiero.sdk.ContractIdTest.toSolidityAddress=[ + "000000000000000000000000000000000000138d" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractInfoQueryTest.java b/sdk/src/test/java/com/hiero/sdk/ContractInfoQueryTest.java similarity index 89% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ContractInfoQueryTest.java rename to sdk/src/test/java/com/hiero/sdk/ContractInfoQueryTest.java index 6c16d2d193..905440c1c2 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractInfoQueryTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ContractInfoQueryTest.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.QueryHeader; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; @@ -38,7 +38,7 @@ public static void afterAll() { @Test void shouldSerialize() { - var builder = com.hedera.hashgraph.sdk.proto.Query.newBuilder(); + var builder = com.hiero.sdk.proto.Query.newBuilder(); new ContractInfoQuery() .setContractId(ContractId.fromString("0.0.5005")) .onMakeRequest(builder, QueryHeader.newBuilder().build()); diff --git a/sdk/src/test/java/com/hiero/sdk/ContractInfoQueryTest.snap b/sdk/src/test/java/com/hiero/sdk/ContractInfoQueryTest.snap new file mode 100644 index 0000000000..9ba7f7a12d --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/ContractInfoQueryTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.ContractInfoQueryTest.shouldSerialize=[ + "# com.hiero.sdk.proto.Query\ncontract_get_info {\n contract_i_d {\n contract_num: 5005\n realm_num: 0\n shard_num: 0\n }\n header {\n }\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractInfoTest.java b/sdk/src/test/java/com/hiero/sdk/ContractInfoTest.java similarity index 96% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ContractInfoTest.java rename to sdk/src/test/java/com/hiero/sdk/ContractInfoTest.java index 4188b1391f..28b8987386 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractInfoTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ContractInfoTest.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.ContractGetInfoResponse; +import com.hiero.sdk.proto.ContractGetInfoResponse; import io.github.jsonSnapshot.SnapshotMatcher; import org.bouncycastle.util.encoders.Hex; import org.junit.jupiter.api.AfterAll; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractInfoTest.snap b/sdk/src/test/java/com/hiero/sdk/ContractInfoTest.snap similarity index 92% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ContractInfoTest.snap rename to sdk/src/test/java/com/hiero/sdk/ContractInfoTest.snap index 5875fdf230..09d462744d 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractInfoTest.snap +++ b/sdk/src/test/java/com/hiero/sdk/ContractInfoTest.snap @@ -1,19 +1,19 @@ -com.hedera.hashgraph.sdk.ContractInfoTest.fromBytes=[ +com.hiero.sdk.ContractInfoTest.fromBytes=[ "ContractInfo{contractId=0.0.1, accountId=0.0.2, contractAccountId=3, adminKey=null, expirationTime=1970-01-01T00:00:00.004Z, autoRenewPeriod=PT120H, autoRenewAccountId=null, storage=6, contractMemo=7, balance=8 tℏ, isDeleted=false, tokenRelationships={}, ledgerId=testnet, stakingInfo=null}" ] -com.hedera.hashgraph.sdk.ContractInfoTest.fromProtobuf=[ +com.hiero.sdk.ContractInfoTest.fromProtobuf=[ "ContractInfo{contractId=0.0.1, accountId=0.0.2, contractAccountId=3, adminKey=null, expirationTime=1970-01-01T00:00:00.004Z, autoRenewPeriod=PT120H, autoRenewAccountId=null, storage=6, contractMemo=7, balance=8 tℏ, isDeleted=false, tokenRelationships={}, ledgerId=testnet, stakingInfo=null}" ] -com.hedera.hashgraph.sdk.ContractInfoTest.toBytes=[ +com.hiero.sdk.ContractInfoTest.toBytes=[ "0a021801120218021a01332a05108092f40132040880af1a38064201374808620101" ] -com.hedera.hashgraph.sdk.ContractInfoTest.toProtobuf=[ +com.hiero.sdk.ContractInfoTest.toProtobuf=[ { "memoizedHashCode": 0, "memoizedSerializedSize": 2147483647, @@ -99,4 +99,4 @@ com.hedera.hashgraph.sdk.ContractInfoTest.toProtobuf=[ "maxAutomaticTokenAssociations_": 0, "initialized": true } -] \ No newline at end of file +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractLogInfoTest.java b/sdk/src/test/java/com/hiero/sdk/ContractLogInfoTest.java similarity index 94% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ContractLogInfoTest.java rename to sdk/src/test/java/com/hiero/sdk/ContractLogInfoTest.java index 358569620e..a724f8afe4 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractLogInfoTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ContractLogInfoTest.java @@ -1,8 +1,8 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.ContractLoginfo; +import com.hiero.sdk.proto.ContractLoginfo; import io.github.jsonSnapshot.SnapshotMatcher; import org.bouncycastle.util.encoders.Hex; import org.junit.jupiter.api.AfterAll; diff --git a/sdk/src/test/java/com/hiero/sdk/ContractLogInfoTest.snap b/sdk/src/test/java/com/hiero/sdk/ContractLogInfoTest.snap new file mode 100644 index 0000000000..dbfb24c06d --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/ContractLogInfoTest.snap @@ -0,0 +1,18 @@ +com.hiero.sdk.ContractLogInfoTest.fromBytes=[ + "ContractLogInfo{contractId=0.0.10, bloom=626c6f6f6d, topics=[626c6f6f6d]}" +] + + +com.hiero.sdk.ContractLogInfoTest.fromProtobuf=[ + "ContractLogInfo{contractId=0.0.10, bloom=626c6f6f6d, topics=[626c6f6f6d]}" +] + + +com.hiero.sdk.ContractLogInfoTest.toBytes=[ + "0a02180a1205626c6f6f6d1a05626c6f6f6d" +] + + +com.hiero.sdk.ContractLogInfoTest.toProtobuf=[ + "# com.hiero.sdk.proto.ContractLoginfo@cb39e330\nbloom: \"bloom\"\ncontract_i_d {\n contract_num: 10\n realm_num: 0\n shard_num: 0\n}\ntopic: \"bloom\"" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractNonceInfoTest.java b/sdk/src/test/java/com/hiero/sdk/ContractNonceInfoTest.java similarity index 87% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ContractNonceInfoTest.java rename to sdk/src/test/java/com/hiero/sdk/ContractNonceInfoTest.java index a9c3c6f5b7..88fa9873fb 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractNonceInfoTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ContractNonceInfoTest.java @@ -1,4 +1,4 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; import io.github.jsonSnapshot.SnapshotMatcher; @@ -8,8 +8,8 @@ import org.junit.jupiter.api.Test; public class ContractNonceInfoTest { - private final com.hedera.hashgraph.sdk.proto.ContractNonceInfo info = - com.hedera.hashgraph.sdk.proto.ContractNonceInfo.newBuilder() + private final com.hiero.sdk.proto.ContractNonceInfo info = + com.hiero.sdk.proto.ContractNonceInfo.newBuilder() .setContractId(new ContractId(1).toProtobuf()) .setNonce(2) .build(); diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractNonceInfoTest.snap b/sdk/src/test/java/com/hiero/sdk/ContractNonceInfoTest.snap similarity index 76% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ContractNonceInfoTest.snap rename to sdk/src/test/java/com/hiero/sdk/ContractNonceInfoTest.snap index 1e1cc8e763..5b28a93f26 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractNonceInfoTest.snap +++ b/sdk/src/test/java/com/hiero/sdk/ContractNonceInfoTest.snap @@ -1,19 +1,19 @@ -com.hedera.hashgraph.sdk.ContractNonceInfoTest.fromBytes=[ +com.hiero.sdk.ContractNonceInfoTest.fromBytes=[ "ContractNonceInfo{contractId=0.0.1, nonce=2}" ] -com.hedera.hashgraph.sdk.ContractNonceInfoTest.fromProtobuf=[ +com.hiero.sdk.ContractNonceInfoTest.fromProtobuf=[ "ContractNonceInfo{contractId=0.0.1, nonce=2}" ] -com.hedera.hashgraph.sdk.ContractNonceInfoTest.toBytes=[ +com.hiero.sdk.ContractNonceInfoTest.toBytes=[ "0a0218011002" ] -com.hedera.hashgraph.sdk.ContractNonceInfoTest.toProtobuf=[ +com.hiero.sdk.ContractNonceInfoTest.toProtobuf=[ { "memoizedHashCode": 0, "memoizedSerializedSize": 2147483647, @@ -44,4 +44,4 @@ com.hedera.hashgraph.sdk.ContractNonceInfoTest.toProtobuf=[ "nonce_": 2, "initialized": true } -] \ No newline at end of file +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractUpdateTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/ContractUpdateTransactionTest.java similarity index 96% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ContractUpdateTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/ContractUpdateTransactionTest.java index f16c49e0a4..b691987c68 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractUpdateTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ContractUpdateTransactionTest.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.ContractUpdateTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.ContractUpdateTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/ContractUpdateTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/ContractUpdateTransactionTest.snap new file mode 100644 index 0000000000..b085d8d377 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/ContractUpdateTransactionTest.snap @@ -0,0 +1,8 @@ +com.hiero.sdk.ContractUpdateTransactionTest.shouldSerialize2=[ + "# com.hiero.sdk.proto.TransactionBody\ncontract_update_instance {\n admin_key {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n auto_renew_account_id {\n account_num: 30\n realm_num: 0\n shard_num: 0\n }\n auto_renew_period {\n seconds: 86400\n }\n contract_i_d {\n contract_num: 5007\n realm_num: 0\n shard_num: 0\n }\n expiration_time {\n nanos: 4000000\n seconds: 0\n }\n max_automatic_token_associations {\n value: 101\n }\n memo_wrapper {\n value: \"3\"\n }\n proxy_account_i_d {\n account_num: 4\n realm_num: 0\n shard_num: 0\n }\n staked_node_id: 4\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] + + +com.hiero.sdk.ContractUpdateTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\ncontract_update_instance {\n admin_key {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n auto_renew_account_id {\n account_num: 30\n realm_num: 0\n shard_num: 0\n }\n auto_renew_period {\n seconds: 86400\n }\n contract_i_d {\n contract_num: 5007\n realm_num: 0\n shard_num: 0\n }\n expiration_time {\n nanos: 4000000\n seconds: 0\n }\n max_automatic_token_associations {\n value: 101\n }\n memo_wrapper {\n value: \"3\"\n }\n proxy_account_i_d {\n account_num: 4\n realm_num: 0\n shard_num: 0\n }\n staked_account_id {\n account_num: 3\n realm_num: 0\n shard_num: 0\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/CryptoTransferTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/CryptoTransferTransactionTest.java similarity index 94% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/CryptoTransferTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/CryptoTransferTransactionTest.java index e9d6733520..b57977644b 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/CryptoTransferTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/CryptoTransferTransactionTest.java @@ -17,12 +17,12 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.CryptoTransferTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionList; +import com.hiero.sdk.proto.CryptoTransferTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TransactionList; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; @@ -135,9 +135,9 @@ void canGetDecimals() { @Test void transactionBodiesMustMatch() throws InvalidProtocolBufferException { - com.hedera.hashgraph.sdk.proto.Transaction tx1 = TransactionList.parseFrom(spawnTestTransaction().toBytes()) + com.hiero.sdk.proto.Transaction tx1 = TransactionList.parseFrom(spawnTestTransaction().toBytes()) .getTransactionList(0); - com.hedera.hashgraph.sdk.proto.Transaction tx2 = TransactionList.parseFrom(spawnModifiedTestTransaction().toBytes()) + com.hiero.sdk.proto.Transaction tx2 = TransactionList.parseFrom(spawnModifiedTestTransaction().toBytes()) .getTransactionList(1); var brokenTxList = TransactionList.newBuilder() .addTransactionList(tx1) diff --git a/sdk/src/test/java/com/hiero/sdk/CryptoTransferTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/CryptoTransferTransactionTest.snap new file mode 100644 index 0000000000..8d59599e77 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/CryptoTransferTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.CryptoTransferTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\ncrypto_transfer {\n token_transfers {\n nft_transfers {\n receiver_account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n sender_account_i_d {\n account_num: 5007\n realm_num: 0\n shard_num: 0\n }\n serial_number: 4\n }\n token {\n realm_num: 0\n shard_num: 0\n token_num: 2\n }\n }\n token_transfers {\n nft_transfers {\n receiver_account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n sender_account_i_d {\n account_num: 5007\n realm_num: 0\n shard_num: 0\n }\n serial_number: 4\n }\n nft_transfers {\n receiver_account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n sender_account_i_d {\n account_num: 5008\n realm_num: 0\n shard_num: 0\n }\n serial_number: 3\n }\n nft_transfers {\n receiver_account_i_d {\n account_num: 5007\n realm_num: 0\n shard_num: 0\n }\n sender_account_i_d {\n account_num: 5008\n realm_num: 0\n shard_num: 0\n }\n serial_number: 1\n }\n nft_transfers {\n receiver_account_i_d {\n account_num: 5007\n realm_num: 0\n shard_num: 0\n }\n sender_account_i_d {\n account_num: 5008\n realm_num: 0\n shard_num: 0\n }\n serial_number: 2\n }\n token {\n realm_num: 0\n shard_num: 0\n token_num: 3\n }\n }\n token_transfers {\n token {\n realm_num: 0\n shard_num: 0\n token_num: 4\n }\n transfers {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n amount: -1\n is_approval: true\n }\n transfers {\n account_i_d {\n account_num: 5008\n realm_num: 0\n shard_num: 0\n }\n amount: 1\n }\n }\n token_transfers {\n expected_decimals {\n value: 3\n }\n token {\n realm_num: 0\n shard_num: 0\n token_num: 5\n }\n transfers {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n amount: -800\n }\n transfers {\n account_i_d {\n account_num: 5007\n realm_num: 0\n shard_num: 0\n }\n amount: 400\n }\n transfers {\n account_i_d {\n account_num: 5008\n realm_num: 0\n shard_num: 0\n }\n amount: 400\n }\n }\n transfers {\n account_amounts {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n amount: -800\n }\n account_amounts {\n account_i_d {\n account_num: 5007\n realm_num: 0\n shard_num: 0\n }\n amount: 400\n is_approval: true\n }\n account_amounts {\n account_i_d {\n account_num: 5008\n realm_num: 0\n shard_num: 0\n }\n amount: 400\n }\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFeeListTest.java b/sdk/src/test/java/com/hiero/sdk/CustomFeeListTest.java similarity index 99% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFeeListTest.java rename to sdk/src/test/java/com/hiero/sdk/CustomFeeListTest.java index 10219974d9..5293fb7e7d 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFeeListTest.java +++ b/sdk/src/test/java/com/hiero/sdk/CustomFeeListTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFeeListTest.snap b/sdk/src/test/java/com/hiero/sdk/CustomFeeListTest.snap similarity index 89% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFeeListTest.snap rename to sdk/src/test/java/com/hiero/sdk/CustomFeeListTest.snap index aa95cdebb9..2a98757c8e 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFeeListTest.snap +++ b/sdk/src/test/java/com/hiero/sdk/CustomFeeListTest.snap @@ -1,8 +1,8 @@ -com.hedera.hashgraph.sdk.CustomFeeListTest.deepClone=[ +com.hiero.sdk.CustomFeeListTest.deepClone=[ "[CustomFixedFee{feeCollectorAccountId=0.0.4322, allCollectorsAreExempt=false, amount=10, demoninatingTokenId=0.0.483902}, CustomFractionalFee{feeCollectorAccountId=0.0.389042, allCollectorsAreExempt=false, numerator=3, denominator=7, min=3, max=100, assessmentMethod=INCLUSIVE}, CustomRoyaltyFee{feeCollectorAccountId=0.0.23423, allCollectorsAreExempt=false, numerator=5, denominator=8, fallbackFee=CustomFixedFee{feeCollectorAccountId=null, allCollectorsAreExempt=false, amount=10, demoninatingTokenId=0.0.483902}}]" ] -com.hedera.hashgraph.sdk.CustomFeeListTest.shouldSerialize=[ +com.hiero.sdk.CustomFeeListTest.shouldSerialize=[ "[CustomFixedFee{feeCollectorAccountId=0.0.4322, allCollectorsAreExempt=false, amount=10, demoninatingTokenId=0.0.483902}, CustomFractionalFee{feeCollectorAccountId=0.0.389042, allCollectorsAreExempt=false, numerator=3, denominator=7, min=3, max=100, assessmentMethod=INCLUSIVE}, CustomRoyaltyFee{feeCollectorAccountId=0.0.23423, allCollectorsAreExempt=false, numerator=5, denominator=8, fallbackFee=CustomFixedFee{feeCollectorAccountId=null, allCollectorsAreExempt=false, amount=10, demoninatingTokenId=0.0.483902}}]" -] \ No newline at end of file +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFixedFeeTest.java b/sdk/src/test/java/com/hiero/sdk/CustomFixedFeeTest.java similarity index 97% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFixedFeeTest.java rename to sdk/src/test/java/com/hiero/sdk/CustomFixedFeeTest.java index 913709a2f9..78108119f5 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFixedFeeTest.java +++ b/sdk/src/test/java/com/hiero/sdk/CustomFixedFeeTest.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.FixedFee; +import com.hiero.sdk.proto.FixedFee; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/CustomFixedFeeTest.snap b/sdk/src/test/java/com/hiero/sdk/CustomFixedFeeTest.snap new file mode 100644 index 0000000000..cc4791945e --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/CustomFixedFeeTest.snap @@ -0,0 +1,13 @@ +com.hiero.sdk.CustomFixedFeeTest.fromProtobuf=[ + "CustomFixedFee{feeCollectorAccountId=null, allCollectorsAreExempt=false, amount=4, demoninatingTokenId=5.6.7}" +] + + +com.hiero.sdk.CustomFixedFeeTest.toFixedFeeProtobuf=[ + "# com.hiero.sdk.proto.FixedFee@409d860\namount: 4\ndenominating_token_id {\n realm_num: 6\n shard_num: 5\n token_num: 7\n}" +] + + +com.hiero.sdk.CustomFixedFeeTest.toProtobuf=[ + "# com.hiero.sdk.proto.CustomFee@91885f65\nfixed_fee {\n amount: 4\n denominating_token_id {\n realm_num: 6\n shard_num: 5\n token_num: 7\n }\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFractionalFeeTest.java b/sdk/src/test/java/com/hiero/sdk/CustomFractionalFeeTest.java similarity index 95% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFractionalFeeTest.java rename to sdk/src/test/java/com/hiero/sdk/CustomFractionalFeeTest.java index 0771c91ccf..c05c639007 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFractionalFeeTest.java +++ b/sdk/src/test/java/com/hiero/sdk/CustomFractionalFeeTest.java @@ -1,7 +1,7 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.Fraction; -import com.hedera.hashgraph.sdk.proto.FractionalFee; +import com.hiero.sdk.proto.Fraction; +import com.hiero.sdk.proto.FractionalFee; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/CustomFractionalFeeTest.snap b/sdk/src/test/java/com/hiero/sdk/CustomFractionalFeeTest.snap new file mode 100644 index 0000000000..c9f47a9cda --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/CustomFractionalFeeTest.snap @@ -0,0 +1,8 @@ +com.hiero.sdk.CustomFractionalFeeTest.fromProtobuf=[ + "CustomFractionalFee{feeCollectorAccountId=null, allCollectorsAreExempt=false, numerator=4, denominator=5, min=6, max=7, assessmentMethod=EXCLUSIVE}" +] + + +com.hiero.sdk.CustomFractionalFeeTest.toProtobuf=[ + "# com.hiero.sdk.proto.CustomFee@b2abef2c\nfractional_fee {\n fractional_amount {\n denominator: 5\n numerator: 4\n }\n maximum_amount: 7\n minimum_amount: 6\n net_of_transfers: true\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomRoyaltyFeeTest.java b/sdk/src/test/java/com/hiero/sdk/CustomRoyaltyFeeTest.java similarity index 94% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/CustomRoyaltyFeeTest.java rename to sdk/src/test/java/com/hiero/sdk/CustomRoyaltyFeeTest.java index 5ab1dca143..b49d0b3bbc 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomRoyaltyFeeTest.java +++ b/sdk/src/test/java/com/hiero/sdk/CustomRoyaltyFeeTest.java @@ -17,11 +17,11 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.FixedFee; -import com.hedera.hashgraph.sdk.proto.Fraction; -import com.hedera.hashgraph.sdk.proto.RoyaltyFee; +import com.hiero.sdk.proto.FixedFee; +import com.hiero.sdk.proto.Fraction; +import com.hiero.sdk.proto.RoyaltyFee; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/CustomRoyaltyFeeTest.snap b/sdk/src/test/java/com/hiero/sdk/CustomRoyaltyFeeTest.snap new file mode 100644 index 0000000000..5c6f9daf88 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/CustomRoyaltyFeeTest.snap @@ -0,0 +1,8 @@ +com.hiero.sdk.CustomRoyaltyFeeTest.fromProtobuf=[ + "CustomRoyaltyFee{feeCollectorAccountId=null, allCollectorsAreExempt=false, numerator=4, denominator=5, fallbackFee=CustomFixedFee{feeCollectorAccountId=null, allCollectorsAreExempt=false, amount=6, demoninatingTokenId=null}}" +] + + +com.hiero.sdk.CustomRoyaltyFeeTest.toProtobuf=[ + "# com.hiero.sdk.proto.CustomFee@1abe2492\nroyalty_fee {\n exchange_value_fraction {\n denominator: 5\n numerator: 4\n }\n fallback_fee {\n amount: 6\n }\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/DelegateContractIdTest.java b/sdk/src/test/java/com/hiero/sdk/DelegateContractIdTest.java similarity index 98% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/DelegateContractIdTest.java rename to sdk/src/test/java/com/hiero/sdk/DelegateContractIdTest.java index 70d17abd11..82f33b216c 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/DelegateContractIdTest.java +++ b/sdk/src/test/java/com/hiero/sdk/DelegateContractIdTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; import io.github.jsonSnapshot.SnapshotMatcher; diff --git a/sdk/src/test/java/com/hiero/sdk/DelegateContractIdTest.snap b/sdk/src/test/java/com/hiero/sdk/DelegateContractIdTest.snap new file mode 100644 index 0000000000..43fc7644b3 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/DelegateContractIdTest.snap @@ -0,0 +1,28 @@ +com.hiero.sdk.DelegateContractIdTest.fromBytes=[ + "0.0.5005" +] + + +com.hiero.sdk.DelegateContractIdTest.fromSolidityAddress=[ + "0.0.5005" +] + + +com.hiero.sdk.DelegateContractIdTest.fromSolidityAddressWith0x=[ + "0.0.5005" +] + + +com.hiero.sdk.DelegateContractIdTest.fromString=[ + "0.0.5005" +] + + +com.hiero.sdk.DelegateContractIdTest.toBytes=[ + "188d27" +] + + +com.hiero.sdk.DelegateContractIdTest.toSolidityAddress=[ + "000000000000000000000000000000000000138d" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/DuplicateTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/DuplicateTransactionTest.java similarity index 95% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/DuplicateTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/DuplicateTransactionTest.java index 0dd799ff27..771084ffb0 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/DuplicateTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/DuplicateTransactionTest.java @@ -1,4 +1,4 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ECDSAPrivateKeyTest.java b/sdk/src/test/java/com/hiero/sdk/ECDSAPrivateKeyTest.java similarity index 99% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ECDSAPrivateKeyTest.java rename to sdk/src/test/java/com/hiero/sdk/ECDSAPrivateKeyTest.java index efea2a0c93..61381910d3 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ECDSAPrivateKeyTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ECDSAPrivateKeyTest.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.utils.Bip32Utils; +import com.hiero.sdk.utils.Bip32Utils; import org.bouncycastle.util.encoders.Hex; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ECDSAPublicKeyTest.java b/sdk/src/test/java/com/hiero/sdk/ECDSAPublicKeyTest.java similarity index 99% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ECDSAPublicKeyTest.java rename to sdk/src/test/java/com/hiero/sdk/ECDSAPublicKeyTest.java index c7962df1b0..3c5e3d3c4a 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ECDSAPublicKeyTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ECDSAPublicKeyTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/Ed25519PrivateKeyTest.java b/sdk/src/test/java/com/hiero/sdk/Ed25519PrivateKeyTest.java similarity index 99% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/Ed25519PrivateKeyTest.java rename to sdk/src/test/java/com/hiero/sdk/Ed25519PrivateKeyTest.java index 24eec4734f..1dd16fe6d3 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/Ed25519PrivateKeyTest.java +++ b/sdk/src/test/java/com/hiero/sdk/Ed25519PrivateKeyTest.java @@ -17,8 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; +import org.assertj.core.api.Assertions; import org.bouncycastle.math.ec.rfc8032.Ed25519; import org.bouncycastle.util.encoders.Hex; import org.junit.jupiter.api.DisplayName; @@ -279,7 +280,7 @@ void keyFromGeneratedMnemonic24() { byte[] signature = privateKey.sign(messageToSign); - assertThat(Ed25519.verify( + Assertions.assertThat(Ed25519.verify( signature, 0, privateKey.getPublicKey().toBytes(), @@ -300,7 +301,7 @@ void keyFromGeneratedMnemonic12() { byte[] signature = privateKey.sign(messageToSign); - assertThat(Ed25519.verify( + Assertions.assertThat(Ed25519.verify( signature, 0, privateKey.getPublicKey().toBytes(), diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/Ed25519PublicKeyTest.java b/sdk/src/test/java/com/hiero/sdk/Ed25519PublicKeyTest.java similarity index 99% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/Ed25519PublicKeyTest.java rename to sdk/src/test/java/com/hiero/sdk/Ed25519PublicKeyTest.java index ed7fa79e91..add9edfc8a 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/Ed25519PublicKeyTest.java +++ b/sdk/src/test/java/com/hiero/sdk/Ed25519PublicKeyTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/EthereumFlowMockTest.java b/sdk/src/test/java/com/hiero/sdk/EthereumFlowMockTest.java similarity index 93% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/EthereumFlowMockTest.java rename to sdk/src/test/java/com/hiero/sdk/EthereumFlowMockTest.java index 501474e14c..ae0b551ef8 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/EthereumFlowMockTest.java +++ b/sdk/src/test/java/com/hiero/sdk/EthereumFlowMockTest.java @@ -1,15 +1,15 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; -import com.hedera.hashgraph.sdk.proto.FileID; -import com.hedera.hashgraph.sdk.proto.Response; -import com.hedera.hashgraph.sdk.proto.ResponseCodeEnum; -import com.hedera.hashgraph.sdk.proto.SignedTransaction; -import com.hedera.hashgraph.sdk.proto.Transaction; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse; -import com.hedera.hashgraph.sdk.proto.TransactionReceipt; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.FileID; +import com.hiero.sdk.proto.Response; +import com.hiero.sdk.proto.ResponseCodeEnum; +import com.hiero.sdk.proto.SignedTransaction; +import com.hiero.sdk.proto.Transaction; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionGetReceiptResponse; +import com.hiero.sdk.proto.TransactionReceipt; +import com.hiero.sdk.proto.TransactionResponse; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.CsvSource; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/EthereumTransactionDataLegacyTest.java b/sdk/src/test/java/com/hiero/sdk/EthereumTransactionDataLegacyTest.java similarity index 99% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/EthereumTransactionDataLegacyTest.java rename to sdk/src/test/java/com/hiero/sdk/EthereumTransactionDataLegacyTest.java index e8c67b418e..749ea26032 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/EthereumTransactionDataLegacyTest.java +++ b/sdk/src/test/java/com/hiero/sdk/EthereumTransactionDataLegacyTest.java @@ -1,4 +1,4 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import org.bouncycastle.util.encoders.Hex; import org.junit.jupiter.api.Test; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/EthereumTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/EthereumTransactionTest.java similarity index 98% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/EthereumTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/EthereumTransactionTest.java index baa8144b9c..da87d62a8d 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/EthereumTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/EthereumTransactionTest.java @@ -1,4 +1,4 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import io.github.jsonSnapshot.SnapshotMatcher; import org.bouncycastle.util.encoders.Hex; diff --git a/sdk/src/test/java/com/hiero/sdk/EthereumTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/EthereumTransactionTest.snap new file mode 100644 index 0000000000..8a36a32e0e --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/EthereumTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.EthereumTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nethereum_transaction {\n call_data {\n file_num: 6\n realm_num: 5\n shard_num: 4\n }\n ethereum_data: \"\\336\\255\\276\\357\"\n max_gas_allowance: 300000000\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ExchangeRatesTest.java b/sdk/src/test/java/com/hiero/sdk/ExchangeRatesTest.java similarity index 98% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ExchangeRatesTest.java rename to sdk/src/test/java/com/hiero/sdk/ExchangeRatesTest.java index dd29ee090e..818be89dfc 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ExchangeRatesTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ExchangeRatesTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; import org.bouncycastle.util.encoders.Hex; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ExecutableTest.java b/sdk/src/test/java/com/hiero/sdk/ExecutableTest.java similarity index 87% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ExecutableTest.java rename to sdk/src/test/java/com/hiero/sdk/ExecutableTest.java index fd85ccfa39..37f0302e19 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ExecutableTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ExecutableTest.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; - -import com.hedera.hashgraph.sdk.logger.LogLevel; -import com.hedera.hashgraph.sdk.logger.Logger; -import com.hedera.hashgraph.sdk.proto.QueryHeader; -import com.hedera.hashgraph.sdk.proto.Response; -import com.hedera.hashgraph.sdk.proto.ResponseCodeEnum; -import com.hedera.hashgraph.sdk.proto.ResponseHeader; +package com.hiero.sdk; + +import com.hiero.sdk.logger.LogLevel; +import com.hiero.sdk.logger.Logger; +import com.hiero.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.Response; +import com.hiero.sdk.proto.ResponseCodeEnum; +import com.hiero.sdk.proto.ResponseHeader; import io.grpc.MethodDescriptor; import io.grpc.StatusRuntimeException; import org.junit.jupiter.api.BeforeEach; @@ -273,8 +273,8 @@ void successfulExecute() throws PrecheckStatusException, TimeoutException { var tx = new DummyTransaction() { @Nullable @Override - TransactionResponse mapResponse(com.hedera.hashgraph.sdk.proto.TransactionResponse response, - AccountId nodeId, com.hedera.hashgraph.sdk.proto.Transaction request) { + TransactionResponse mapResponse(com.hiero.sdk.proto.TransactionResponse response, + AccountId nodeId, com.hiero.sdk.proto.Transaction request) { return new TransactionResponse( new AccountId(3), TransactionId.withValidStart(new AccountId(3), now), @@ -292,13 +292,13 @@ TransactionResponse mapResponse(com.hedera.hashgraph.sdk.proto.TransactionRespon tx.setNodeAccountIds(nodeAccountIds); var txResp = - com.hedera.hashgraph.sdk.proto.TransactionResponse + com.hiero.sdk.proto.TransactionResponse .newBuilder() .setNodeTransactionPrecheckCode(ResponseCodeEnum.OK) .build(); tx.blockingUnaryCall = (grpcRequest) -> txResp; - com.hedera.hashgraph.sdk.TransactionResponse resp = (com.hedera.hashgraph.sdk.TransactionResponse) tx.execute( + com.hiero.sdk.TransactionResponse resp = (com.hiero.sdk.TransactionResponse) tx.execute( client); assertThat(resp.nodeId).isEqualTo(new AccountId(3)); @@ -318,8 +318,8 @@ void executeWithChannelFailure() throws PrecheckStatusException, TimeoutExceptio var tx = new DummyTransaction() { @Nullable @Override - TransactionResponse mapResponse(com.hedera.hashgraph.sdk.proto.TransactionResponse response, - AccountId nodeId, com.hedera.hashgraph.sdk.proto.Transaction request) { + TransactionResponse mapResponse(com.hiero.sdk.proto.TransactionResponse response, + AccountId nodeId, com.hiero.sdk.proto.Transaction request) { return new TransactionResponse( new AccountId(4), TransactionId.withValidStart(new AccountId(4), now), @@ -336,13 +336,13 @@ TransactionResponse mapResponse(com.hedera.hashgraph.sdk.proto.TransactionRespon tx.setNodeAccountIds(nodeAccountIds); var txResp = - com.hedera.hashgraph.sdk.proto.TransactionResponse + com.hiero.sdk.proto.TransactionResponse .newBuilder() .setNodeTransactionPrecheckCode(ResponseCodeEnum.OK) .build(); tx.blockingUnaryCall = (grpcRequest) -> txResp; - com.hedera.hashgraph.sdk.TransactionResponse resp = (com.hedera.hashgraph.sdk.TransactionResponse) tx.execute( + com.hiero.sdk.TransactionResponse resp = (com.hiero.sdk.TransactionResponse) tx.execute( client); verify(node3).channelFailedToConnect(any(Instant.class)); @@ -375,8 +375,8 @@ void executeWithAllUnhealthyNodes() throws PrecheckStatusException, TimeoutExcep var tx = new DummyTransaction() { @Nullable @Override - TransactionResponse mapResponse(com.hedera.hashgraph.sdk.proto.TransactionResponse response, - AccountId nodeId, com.hedera.hashgraph.sdk.proto.Transaction request) { + TransactionResponse mapResponse(com.hiero.sdk.proto.TransactionResponse response, + AccountId nodeId, com.hiero.sdk.proto.Transaction request) { return new TransactionResponse( new AccountId(3), TransactionId.withValidStart(new AccountId(3), now), @@ -393,13 +393,13 @@ TransactionResponse mapResponse(com.hedera.hashgraph.sdk.proto.TransactionRespon tx.setNodeAccountIds(nodeAccountIds); var txResp = - com.hedera.hashgraph.sdk.proto.TransactionResponse + com.hiero.sdk.proto.TransactionResponse .newBuilder() .setNodeTransactionPrecheckCode(ResponseCodeEnum.OK) .build(); tx.blockingUnaryCall = (grpcRequest) -> txResp; - com.hedera.hashgraph.sdk.TransactionResponse resp = (com.hedera.hashgraph.sdk.TransactionResponse) tx.execute( + com.hiero.sdk.TransactionResponse resp = (com.hiero.sdk.TransactionResponse) tx.execute( client); verify(node3, times(2)).channelFailedToConnect(any(Instant.class)); @@ -492,7 +492,7 @@ void executeQueryDelay() throws PrecheckStatusException, TimeoutException { AtomicInteger i = new AtomicInteger(); var tx = new DummyQuery() { @Override - Status mapResponseStatus(com.hedera.hashgraph.sdk.proto.Response response) { + Status mapResponseStatus(com.hiero.sdk.proto.Response response) { return Status.RECEIPT_NOT_FOUND; } @@ -508,10 +508,10 @@ ExecutionState getExecutionState(Status status, Response response) { ); tx.setNodeAccountIds(nodeAccountIds); - var receipt = com.hedera.hashgraph.sdk.proto.TransactionReceipt.newBuilder() + var receipt = com.hiero.sdk.proto.TransactionReceipt.newBuilder() .setStatus(ResponseCodeEnum.OK) .build(); - var receiptResp = com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse.newBuilder() + var receiptResp = com.hiero.sdk.proto.TransactionGetReceiptResponse.newBuilder() .setReceipt(receipt) .build(); @@ -531,7 +531,7 @@ void executeUserError() throws PrecheckStatusException, TimeoutException { var tx = new DummyTransaction() { @Override - Status mapResponseStatus(com.hedera.hashgraph.sdk.proto.TransactionResponse response) { + Status mapResponseStatus(com.hiero.sdk.proto.TransactionResponse response) { return Status.ACCOUNT_DELETED; } }; @@ -543,7 +543,7 @@ Status mapResponseStatus(com.hedera.hashgraph.sdk.proto.TransactionResponse resp tx.setNodeAccountIds(nodeAccountIds); var txResp = - com.hedera.hashgraph.sdk.proto.TransactionResponse + com.hiero.sdk.proto.TransactionResponse .newBuilder() .setNodeTransactionPrecheckCode(ResponseCodeEnum.ACCOUNT_DELETED) .build(); @@ -579,7 +579,7 @@ void shouldSetMaxRetry() { static class DummyTransaction> extends - Executable { + Executable { @Override void onExecute(Client client) { @@ -593,25 +593,25 @@ CompletableFuture onExecuteAsync(Client client) { @Nullable @Override - com.hedera.hashgraph.sdk.proto.Transaction makeRequest() { + com.hiero.sdk.proto.Transaction makeRequest() { return null; } @Nullable @Override - TransactionResponse mapResponse(com.hedera.hashgraph.sdk.proto.TransactionResponse response, AccountId nodeId, - com.hedera.hashgraph.sdk.proto.Transaction request) { + TransactionResponse mapResponse(com.hiero.sdk.proto.TransactionResponse response, AccountId nodeId, + com.hiero.sdk.proto.Transaction request) { return null; } @Override - Status mapResponseStatus(com.hedera.hashgraph.sdk.proto.TransactionResponse response) { + Status mapResponseStatus(com.hiero.sdk.proto.TransactionResponse response) { return Status.OK; } @Nullable @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return null; } @@ -629,22 +629,22 @@ void onExecute(Client client) { @Override TransactionReceipt mapResponse(Response response, AccountId nodeId, - com.hedera.hashgraph.sdk.proto.Query request) { + com.hiero.sdk.proto.Query request) { return null; } @Override - Status mapResponseStatus(com.hedera.hashgraph.sdk.proto.Response response) { + Status mapResponseStatus(com.hiero.sdk.proto.Response response) { return Status.OK; } @Override - MethodDescriptor getMethodDescriptor() { + MethodDescriptor getMethodDescriptor() { return null; } @Override - void onMakeRequest(com.hedera.hashgraph.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { + void onMakeRequest(com.hiero.sdk.proto.Query.Builder queryBuilder, QueryHeader header) { } @Override @@ -653,7 +653,7 @@ ResponseHeader mapResponseHeader(Response response) { } @Override - QueryHeader mapRequestHeader(com.hedera.hashgraph.sdk.proto.Query request) { + QueryHeader mapRequestHeader(com.hiero.sdk.proto.Query request) { return null; } diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FeeAssessmentMethodTest.java b/sdk/src/test/java/com/hiero/sdk/FeeAssessmentMethodTest.java similarity index 92% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/FeeAssessmentMethodTest.java rename to sdk/src/test/java/com/hiero/sdk/FeeAssessmentMethodTest.java index 746788c8ca..d8bafdc3a6 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FeeAssessmentMethodTest.java +++ b/sdk/src/test/java/com/hiero/sdk/FeeAssessmentMethodTest.java @@ -1,4 +1,4 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import org.junit.jupiter.api.Test; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FeeSchedulesTest.java b/sdk/src/test/java/com/hiero/sdk/FeeSchedulesTest.java similarity index 98% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/FeeSchedulesTest.java rename to sdk/src/test/java/com/hiero/sdk/FeeSchedulesTest.java index fcf9dec412..f491da7c89 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FeeSchedulesTest.java +++ b/sdk/src/test/java/com/hiero/sdk/FeeSchedulesTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FeeSchedulesTest.snap b/sdk/src/test/java/com/hiero/sdk/FeeSchedulesTest.snap similarity index 96% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/FeeSchedulesTest.snap rename to sdk/src/test/java/com/hiero/sdk/FeeSchedulesTest.snap index 5e4ae7ebeb..7048cfec7b 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FeeSchedulesTest.snap +++ b/sdk/src/test/java/com/hiero/sdk/FeeSchedulesTest.snap @@ -1,3 +1,3 @@ -com.hedera.hashgraph.sdk.FeeSchedulesTest.shouldSerialize=[ +com.hiero.sdk.FeeSchedulesTest.shouldSerialize=[ "FeeSchedules{current=FeeSchedule{transactionFeeSchedules=[TransactionFeeSchedule{requestType=NONE, feeData=null, fees=[FeeData{nodeData=FeeComponents{min=0, max=0, constant=0, transactionBandwidthByte=0, transactionVerification=0, transactionRamByteHour=0, transactionStorageByteHour=0, contractTransactionGas=0, transferVolumeHbar=0, responseMemoryByte=0, responseDiskByte=0}, networkData=FeeComponents{min=2, max=5, constant=0, transactionBandwidthByte=0, transactionVerification=0, transactionRamByteHour=0, transactionStorageByteHour=0, contractTransactionGas=0, transferVolumeHbar=0, responseMemoryByte=0, responseDiskByte=0}, serviceData=FeeComponents{min=0, max=0, constant=0, transactionBandwidthByte=0, transactionVerification=0, transactionRamByteHour=0, transactionStorageByteHour=0, contractTransactionGas=0, transferVolumeHbar=0, responseMemoryByte=0, responseDiskByte=0}, type=DEFAULT}]}], expirationTime=2019-04-01T22:42:22Z}, next=FeeSchedule{transactionFeeSchedules=[TransactionFeeSchedule{requestType=NONE, feeData=null, fees=[FeeData{nodeData=FeeComponents{min=1, max=2, constant=0, transactionBandwidthByte=0, transactionVerification=0, transactionRamByteHour=0, transactionStorageByteHour=0, contractTransactionGas=0, transferVolumeHbar=0, responseMemoryByte=0, responseDiskByte=0}, networkData=FeeComponents{min=0, max=0, constant=0, transactionBandwidthByte=0, transactionVerification=0, transactionRamByteHour=0, transactionStorageByteHour=0, contractTransactionGas=0, transferVolumeHbar=0, responseMemoryByte=0, responseDiskByte=0}, serviceData=FeeComponents{min=0, max=0, constant=0, transactionBandwidthByte=0, transactionVerification=0, transactionRamByteHour=0, transactionStorageByteHour=0, contractTransactionGas=0, transferVolumeHbar=0, responseMemoryByte=0, responseDiskByte=0}, type=DEFAULT}]}], expirationTime=2019-04-01T22:37:02Z}}" -] \ No newline at end of file +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileAppendTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/FileAppendTransactionTest.java similarity index 99% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/FileAppendTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/FileAppendTransactionTest.java index c7be96651e..878cc49ce6 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileAppendTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/FileAppendTransactionTest.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.FileAppendTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.FileAppendTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.bouncycastle.util.encoders.Hex; import org.junit.jupiter.api.AfterAll; diff --git a/sdk/src/test/java/com/hiero/sdk/FileAppendTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/FileAppendTransactionTest.snap new file mode 100644 index 0000000000..38f7f19302 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/FileAppendTransactionTest.snap @@ -0,0 +1,23 @@ +com.hiero.sdk.FileAppendTransactionTest.shouldGetAllSignatures=[ + "[{0.0.555={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=40d079bcb4a9fbdf102051328ee5f3903e166c1dd7c1e748efc95a2fdd640e421c0a8e23709b61e4d8110451adecd71cd16d1293ce0e57ea974de5b6b2ef070e, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=0cbdeaac11d392081289fb67a93a7fd995e86f55764e45b3e5eefd2f64056a38b50e8478e64cb1af5c310c321478e09b60d641a6e898820625d2674dc54ce80e, }, 0.0.444={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=1490ad50f0fb5af40ee1d823e4f4b2603c135b3c7979b1b0ee6a323ba494e0b5cca833157c1106b976c876b060249e7ee2db30a8566d8682a42fac2f5f4a3406, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=23a657e362da4b3ea29673c26d8b17b967c53528449d99b3154e1b81676dc8d0aa229b824f9e613803b3262bc9cecc6dc6e2fc01a21830fb1641b5ed03722e07, }, }, {0.0.555={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=4b4ed404ef9a37752c070c5eb364b0df0fbe06afb0b64e0743d27767c26b1045e8532308288e2f1a40cced0782b87f20b6cfdcd8b9890c600c0e2146a48ace00, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=95444670cecb07fc452a4e3f350eca481e5462e3349a6741cd4e6746b21c66e67825c169f3b4cf82ab1853f1cf0acedc84b2f565346dc173a93f054c19966b08, }, 0.0.444={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=ce2b975f698ca802721c80a3792fca39d73609afaa8961bb91da569463c50eecb07d7e26e7e8febb5163474139e94533e8eb7016e0c149e0823d7102ed2b0502, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=ea31e49f64fd41773561f81459a2381e0194788853e28ffb683caded7a675d386b2a228c67ec83bfc448f14ee4fd2eae41569f06006c515621e1f26514c9bf0a, }, }, {0.0.555={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=0aedd8f92e68278823397cb0eddc1c07f1fd80c223781280a0ffb0eef21b516444e4521294ad380e8a46c7f22f1723eef8872ccf4d8aa415345e0a7fe1485c06, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=8cf7f0ae116557d5f4a5bbee82dee3cfe950c0ecedbce5d2a7b729dd7614d47c436e6951c401870f85dadd696160ecee1ab8e65aa607ca942051e78b8f09a406, }, 0.0.444={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=47c3e240259603f3e7fa41ced3eb9931bc4350367aa6529994c048fb0aca1853630bf8fbbdf9b2768c52b91b5f5d669a4adab06ef0851107f6e8012d948ba90b, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=d1a4d3349a1bc7cd0242e09ed9b1811ea99fb6123826b946651ee8c9dd593eb40591697fad4360e3941c9eea55cd2173189df349aa16b9a11db62ed28de8ad06, }, }, {0.0.555={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=aa009ad11594bb981504f8d4063c9d90bfb0bccc4bda8f9e3ffd326fc39e599fae94ba98110342a449437f7c848e2a9dd6de0d008e8d00c8387ff094c93c2700, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=5a2b40589f128f3bac99649d0aec7230e3c993130f36814c742ae37104e93d22e2b548d97e471f583d1c81bbcf6f916cc03f20375499e3a37b2c6b13a5a94507, }, 0.0.444={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=63800201fd378e81946c73104907b0b0aa70ff5913889b21b4eac730e535f8acbf08f63da5824419fc14155d6fc19f23a53bfd3324d8baa68dc5d00e8974de07, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=084bdc8f8580a2ebcc0a5140f766aca111b5488092a41871d104834dda27d6b99288423835bc7114860ce6c740300ebe9f8ab576e7646097eee7d6692b90d109, }, }, {0.0.555={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=645d9d66e90a104462741e2f49fe77d2edce5d49a033c9c51768a2fba6deda96a71ad95e00416bb5a8a07cfaf543a1fee8730c11af4a380d6f30ec88d2271c0d, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=2bc0f7e72aa2e953741815ac95135e50ece67543683e6da3a26bc95534d9ca538d802d567fcb154bf98001663dc46d8674ff4e9361021fbe2a55e83f9442f802, }, 0.0.444={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=e83759154409ce22146e31ff826a3ee4940916784e5953c4c0502ef5c2f9e7ca2d114223c3461a491dfebdcc11e511e91400007a1dc3827b7b98c7225239460f, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=595653b3f5cedf84e845f0dc2c503aad94b259eee4c10ad32cd86976b246cd81726ae8edc35e41e9ebae9e27a3ed96aff524b9b04481fad2722fdab8a4ee5a0f, }, }, {0.0.555={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=dea30ba3201c32f5c23afac9d5b013c4e41a30d08205d21a09722f5aebb0760b2452ba254eea5008de68411560081e94ccd78c5008353aa6bb64779e79078702, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=903762ba6159fcf940281d810a268980cdf2fa35683626d52e41ad18202492fef5f8de2002c49cb56ac9d9e78177823f1f97741634237943459c31540f801502, }, 0.0.444={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=c463b37297427a620f739b3a420512f897745a8451315de360391b2f6879e644ba3a8597e4f6e3a1a135bf354bb0911fe421e0174f48b650f54e3fe86247e507, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=342e41dbd4e3ef300192767ffeb9b062b1fae68027153a84f151fdb1d3ce43592f275d87a7b90a9d6db6a67d32c6ec9e585ce199ed199cdcac0b4ef4ac12200f, }, }, {0.0.555={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=9e4dcb75574c75c7e54cc76ff08bf9e6c28cb2e74f79eb4ed8e4f968e6829bd994d9fadff9fb265988de757b858e4921c7b4db119c31f6156a79eb62ffc4110c, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=195fdc0b4c9730139ede43d8e80befe7bef91ab8fa2f271173bab926cff2c797117a28716112b6d1ab3b6c669a4b923f5885b40f67885b1a64d0445ad75bbe0e, }, 0.0.444={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=0e3e02a08fd3a807c79c1ce2117612c2902557aa7c57da2494744f45b105f3f67b9977564f83baf2cd7dd4fe2cf0421f9367343a92d90199e97f22bc977f3d0f, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=a9ef610d944c989424477a2e31b970033bffcce8899116820f9eac06f2d06226cfe714e6a835135e2fb632dda80b439199e76870156acd6f81d4c3cf342a3706, }, }, ]" +] + + +com.hiero.sdk.FileAppendTransactionTest.shouldGetSignatures=[ + "{0.0.555={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=a762395ad7e3fa298ed990785699133ca64d11a28fb4dfc83d6d95a9a2639b688d5afc288fcdb8168f4a85876b2b785e3303ddec38666bbae4f5436d6334540b, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=8bea3d52ad5badc4ebf5e20f874cf2e5dec3189d3a471c39fd1062743ba7729de1c484f1e8ac2f15343494799e97b5ac220734a261994d91ffed9e113c09d700, }, 0.0.444={302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7=4b8fd70342b6c201f08177de53122be909d5d72f97d29fba69e7ac6ef04d96b19ac417c9b84fbb122bce9c8323bc38bd6165b5750ce16ee4a2f23e28d7123006, 302a300506032b657003210072a1a2b6b694902f095ac85c6a5fa96ab1a87933e3fc1fd66e57ac6af628ca2d=371b502056cbf34c1bd7f9891e82c7a53ab8d92ce1728f790acc9a09989196fbf4c1c111ca010a19f1af82f2480be92229b5a1aadfe4af9142bd212254c88b08, }, }" +] + + +com.hiero.sdk.FileAppendTransactionTest.shouldHash=[ + "[{0.0.555=d2f10044785bb7ecbfc024a171b28ec877a123a2b6f3b2a48db5595208ea8bd036e4c4babb682d87e06ce62d7c2b1bb3, 0.0.444=38603d6b2a449030ea49b7cbd7e19cd66b4e3f2891ca40df861b4840418cb08575b7ce25426b1192545d352a89f0f3da, }, {0.0.555=74ed3e44b14e41ad5964a52adde1c32932b9dd75f589d0985504bbc483dc778493866ae879769d693e2a6fa80c6a118c, 0.0.444=0939a5cbfb9bbbd545d3e9f961e7fc3bcbf49553ce7e3a00414b5b0964ca9aae0ea878e280efa217503aed65d1057880, }, {0.0.555=9ef69da0531b3828cfc5b14cb5df373ae46922ad192df9d488684b845ce4754b2a20c1e966d2835ea178890fdaac9a00, 0.0.444=1332b1dfb679ea2a91b21de2bed0d086c5139893fce55b0471e2b08ec2e0fbbcee48783eda0a1e876ee0a7086416c26a, }, {0.0.555=e62ca0554d6e40461dbecc035165d35716d61eae59a305414a91a6fb85f36ba3adc1f6b963c429366485fe514407d294, 0.0.444=2deb2d9674c3e238c53080ad4d139f172dc907ba4b898210ed9359f3db92f0880503cca4fec35cd6b47c71ba5dd46aa3, }, {0.0.555=8a7721e7a8d8eede13e0ab5adb5c9520af6099c909592f45f9dc89775f69e16a2bea4a392480f1b750c817787a94099f, 0.0.444=dbb52ed2eea79c5cc58bb0b898ce03f4ee7d4ba6ad94c0d718c0c6b46fd8cea9e2ab76c42221fce44933827e382df57f, }, {0.0.555=0292097e1f3bdd4390134f10b51b2c9928fcfbe4fd54de25d407ee8b93c6ede6dda4c4263786d983de47413f541834e0, 0.0.444=16c12a7acaa5754a1e1adfc40550e5d4b09195c2347dc4fda3882d7a2823dd212ea1682642f211290b8985d45be55a0b, }, {0.0.555=e4c53e598718933cc67491218c478c23be4637e9d89107a3c1699f04143c421fd6bf5f2ff11d31ea646103cd7cd00b57, 0.0.444=5571dfcd8a279d4c33c0e9199c865556ab3aec478ddbc1560dd9c41c53423decb95348fb54b63cbc744fd1e496b2a01f, }, ]" +] + + +com.hiero.sdk.FileAppendTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nfile_append {\n contents: \"\\001\\002\\003\\004\"\n file_i_d {\n file_num: 6006\n realm_num: 0\n shard_num: 0\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] + + +com.hiero.sdk.FileAppendTransactionTest.shouldSerializeBigContents=[ + "# com.hiero.sdk.proto.TransactionBody\nfile_append {\n contents: \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur aliquam augue sem, ut mattis dui laoreet a. Curabitur consequat est euismod, scelerisque metus et, tristique dui. Nulla commodo mauris ut faucibus ultricies. Quisque venenatis nisl nec augue tempus, at efficitur elit eleifend. Duis pharetra felis metus, sed dapibus urna vehicula id. Duis non venenatis turpis, sit amet ornare orci. Donec non interdum quam. Sed finibus nunc et risus finibus, non sagittis lorem cursus. Proin pellentesque tempor aliquam. Sed congue nisl in enim bibendum, condimentum vehicula nisi feugiat.\\n\\nSuspendisse non sodales arcu. Suspendisse sodales, lorem ac mollis blandit, ipsum neque porttitor nulla, et sodales arcu ante fermentum tellus. Integer sagittis dolor sed augue fringilla accumsan. Cras vitae finibus arcu, sit amet varius dolor. Etiam id finibus dolor, vitae luctus velit. Proin efficitur augue nec pharetra accumsan. Aliquam lobortis nisl diam, vel fermentum purus finibus id. Etiam at finibus orci, et tincidunt turpis. Aliquam imperdiet congue lacus vel facilisis. Phasellus id magna vitae enim dapibus vestibulum vitae quis augue. Morbi eu consequat enim. Maecenas neque nulla, pulvinar sit amet consequat sed, tempor sed magna. Mauris lacinia sem feugiat faucibus aliquet. Etiam congue non turpis at commodo. Nulla facilisi.\\n\\nNunc velit turpis, cursus ornare fringilla eu, lacinia posuere leo. Mauris rutrum ultricies dui et suscipit. Curabitur in euismod ligula. Curabitur vitae faucibus orci. Phasellus volutpat vestibulum diam sit amet vestibulum. In vel purus leo. Nulla condimentum lectus vestibulum lectus faucibus, id lobortis eros consequat. Proin mollis libero elit, vel aliquet nisi imperdiet et. Morbi ornare est velit, in vehicula nunc malesuada quis. Donec vehicula convallis interdum.\\n\\nInteger pellentesque in nibh vitae aliquet. Ut at justo id libero dignissim hendrerit. Interdum et malesuada fames ac ante ipsum primis in faucibus. Praesent quis ornare lectus. Nam malesuada non diam quis cursus. Phasellus a libero ligula. Suspendisse ligula elit, congue et nisi sit amet, cursus euismod dolor. Morbi aliquam, nulla a posuere pellentesque, diam massa ornare risus, nec eleifend neque eros et elit.\\n\\nPellentesque a sodales dui. Sed in efficitur ante. Duis eget volutpat elit, et ornare est. Nam felis dolor, placerat mattis diam id, maximus lobortis quam. Sed pellentesque lobortis sem sed placerat. Pellentesque augue odio, molestie sed lectus sit amet, congue volutpat massa. Quisque congue consequat nunc id fringilla. Duis semper nulla eget enim venenatis dapibus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Pellentesque varius turpis nibh, sit amet malesuada mauris malesuada quis. Vivamus dictum egestas placerat. Vivamus id augue elit.\\n\\nCras fermentum volutpat eros, vitae euismod lorem viverra nec. Donec lectus augue, porta eleifend odio sit amet, condimentum rhoncus urna. Nunc sed odio velit. Morbi non cursus odio, eget imperdiet erat. Nunc rhoncus massa non neque volutpat, sit amet faucibus ante congue. Phasellus nec lorem vel leo accumsan lobortis. Maecenas id ligula bibendum purus suscipit posuere ac eget diam. Nam in quam pretium, semper erat auctor, iaculis odio. Maecenas placerat, nisi ac elementum tempor, felis nulla porttitor orci, ac rhoncus diam justo in elit. Etiam lobortis fermentum ligula in tincidunt. Donec quis vestibulum nunc. Sed eros diam, interdum in porta lobortis, gravida eu magna. Donec diam purus, finibus et sollicitudin quis, fringilla nec nisi. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur ultricies sagittis dapibus. Etiam ullamcorper aliquet libero, eu venenatis mauris suscipit id.\\n\\nUt interdum eleifend sem, vel bibendum ipsum volutpat eget. Nunc ac dignissim augue. Aliquam ornare aliquet magna id dignissim. Vestibulum velit sem, lacinia eu rutrum in, rhoncus vitae mauris. Pellentesque scelerisque pulvinar mauris non cursus. Integer id dolor porta, bibendum sem vel, pretium tortor. Fusce a nisi convallis, interdum quam condimentum, suscipit dolor. Sed magna diam, efficitur non nunc in, tincidunt varius mi. Aliquam ullamcorper nulla eu fermentum bibendum. Vivamus a felis pretium, hendrerit enim vitae, hendrerit leo. Suspendisse lacinia lectus a diam consectetur suscipit. Aenean hendrerit nisl sed diam venenatis pellentesque. Nullam egestas lectus a consequat pharetra. Vivamus ornare tellus auctor, facilisis lacus id, feugiat dui. Nam id est ut est rhoncus varius.\\n\\nAenean vel vehicula erat. Aenean gravida risus vitae purus sodales, quis dictum enim porta. Ut elit elit, fermentum sed posuere non, accumsan eu justo. Integer porta malesuada quam, et elementum massa suscipit nec. Donec in elit diam. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Duis suscipit vel ante volutpat vestibulum.\\n\\nPellentesque ex arcu, euismod et sapien ut, vulputate suscipit enim. Donec mattis sagittis augue, et mattis lacus. Cras placerat consequat lorem sed luctus. Nam suscipit aliquam sem ac imperdiet. Mauris a semper augue, pulvinar fringilla magna. Integer pretium massa non risus commodo hendrerit. Sed dictum libero id erat sodales mattis. Etiam auctor dolor lectus, ut sagittis enim lobortis vitae. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur nec orci lobortis, cursus risus eget, sollicitudin massa. Integer vel tincidunt mi, id eleifend quam. Nullam facilisis nisl eu mauris congue, vitae euismod nisi malesuada. Vivamus sit amet urna et libero sagittis dictum.\\n\\nIn hac habitasse platea dictumst. Aliquam erat volutpat. Ut dictum, mi a viverra venenatis, mi urna pulvinar nisi, nec gravida lectus diam eget urna. Ut dictum sit amet nisl ut dignissim. Sed sed mauris scelerisque, efficitur augue in, vulputate turpis. Proin dolor justo, bibendum et sollicitudin feugiat, imperdiet sed mi. Sed elementum vitae massa vel lobortis. Cras vitae massa sit amet libero dictum tempus.\\n\\nVivamus ut mauris lectus. Curabitur placerat ornare scelerisque. Cras malesuada nunc quis tortor pretium bibendum vel sed dui. Cras lobortis nibh eu erat blandit, sit amet consequat neque fermentum. Phasellus imperdiet molestie tristique. Cras auctor purus erat, id mollis ligula porttitor eget. Mauris porta pharetra odio et finibus. Suspendisse eu est a ligula bibendum cursus. Mauris ac laoreet libero. Nullam volutpat sem quis rhoncus gravida.\\n\\nDonec malesuada lacus ac iaculis cursus. Sed sem orci, feugiat ac est ut, ultricies posuere nisi. Suspendisse potenti. Phasellus ut ultricies purus. Etiam sem tortor, fermentum quis aliquam eget, consequat ut nulla. Aliquam dictum metus in mi fringilla, vel gravida nulla accumsan. Cras aliquam eget leo vel posuere. Vivamus vitae malesuada nunc. Morbi placerat magna mi, id suscipit lacus auctor quis. Nam at lorem vel odio finibus fringilla ut ac velit. Donec laoreet at nibh quis vehicula.\\n\\nFusce ac tristique nisi. Donec leo nisi, consectetur at tellus sit amet, consectetur ultrices dui. Quisque gravida mollis tempor. Maecenas semper, sapien ut dignissim feugiat, massa enim viverra dolor, non varius eros nulla nec felis. Nunc massa lacus, ornare et feugiat id, bibendum quis purus. Praesent viverra elit sit amet purus consectetur venenatis. Maecenas nibh risus, elementum sit amet enim sagittis, ultrices malesuada lectus. Vivamus non felis ante. Ut vulputate ex arcu. Aliquam porta gravida porta. Aliquam eros leo, malesuada quis eros non, maximus tristique neque. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Etiam ligula orci, mollis vel luctus nec, venenatis vitae est. Fusce rutrum convallis nisi.\\n\\nNunc laoreet eget nibh in feugiat. Pellentesque nec arcu cursus, gravida dolor a, pellentesque nisi. Praesent vel justo blandit, placerat risus eget, consectetur orci. Sed maximus metus mi, ut euismod augue ultricies in. Nunc id risus hendrerit, aliquet lorem nec, congue justo. Vestibulum vel nunc ac est euismod mattis ac vitae nulla. Donec blandit luctus mauris, sit amet bibendum dui egestas et. Aenean nec lorem nec elit ornare rutrum nec eget ligula. Fusce a ipsum vitae neque elementum pharetra. Pellentesque ullamcorper ullamcorper libero, vitae porta sem sagittis vel. Interdum et malesuada fames ac ante ipsum primis in faucibus.\\n\\nDuis at massa sit amet risus pellentesque varius sit amet vitae eros. Cras tempor aliquet sapien, vehicula varius neque volutpat et. Donec purus nibh, pellentesque ut lobortis nec, ultricies ultricies nisl. Sed accumsan ut dui sit amet vulputate. Suspendisse eu facilisis massa, a hendrerit mauris. Nulla elementum molestie tincidunt. Donec mi justo, ornare vel tempor id, gravida et orci. Nam molestie erat nec nisi bibendum accumsan. Duis vitae tempor ante. Morbi congue mauris vel sagittis facilisis. Vivamus vehicula odio orci, a tempor nibh euismod in. Proin mattis, nibh at feugiat porta, purus velit posuere felis, quis volutpat sapien dui vel odio. Nam fermentum sem nec euismod aliquet. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Aliquam erat volutpat.\\n\\nMauris congue lacus tortor. Pellentesque arcu eros, accumsan imperdiet porttitor vitae, mattis nec justo. Nullam ac aliquam mauris. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Suspendisse potenti. Fusce accumsan tempus felis a sagittis. Maecenas et velit odio. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Aliquam eros lacus, volutpat non urna sed, tincidunt ullamcorper elit. Sed sit amet gravida libero. In varius mi vel diam sollicitudin mollis.\\n\\nAenean varius, diam vitae hendrerit feugiat, libero augue ultrices odio, eget consequat sem tellus eu nisi. Nam dapibus enim et auctor sollicitudin. Nunc iaculis eros orci, ac accumsan eros malesuada ut. Ut semper augue felis, nec sodales lorem consectetur non. Cras gravida eleifend est, et sagittis eros imperdiet congue. Fusce id tellus dapibus nunc scelerisque tempus. Donec tempor placerat libero, in commodo nisi bibendum eu. Donec id eros non est sollicitudin luctus. Duis bibendum bibendum tellus nec viverra. Aliquam non faucibus ex, nec luctus dui. Curabitur efficitur varius urna non dignissim. Suspendisse elit elit, ultrices in elementum eu, tempor at magna.\\n\\nNunc in purus sit amet mi laoreet pulvinar placerat eget sapien. Donec vel felis at dui ultricies euismod quis vel neque. Donec tincidunt urna non eros pretium blandit. Nullam congue tincidunt condimentum. Curabitur et libero nibh. Proin ultricies risus id imperdiet scelerisque. Suspendisse purus mi, viverra vitae risus ut, tempus tincidunt enim. Ut luctus lobortis nisl, eget venenatis tortor cursus non. Mauris finibus nisl quis gravida ultricies. Fusce elementum lacus sit amet nunc congue, in porta nulla tincidunt.\\n\\nMauris ante risus, imperdiet blandit posuere in, blandit eu ipsum. Integer et auctor arcu. Integer quis elementum purus. Nunc in ultricies nisl, sed rutrum risus. Suspendisse venenatis eros nec lorem rhoncus, in scelerisque velit condimentum. Etiam condimentum quam felis, in elementum odio mattis et. In ut nibh porttitor, hendrerit tellus vel, luctus magna. Vestibulum et ligula et dolor pellentesque porta. Aenean efficitur porta massa et bibendum. Nulla vehicula sem in risus volutpat, a eleifend elit maximus.\\n\\nProin orci lorem, auctor a felis eu, pretium lobortis nulla. Phasellus aliquam efficitur interdum. Sed sit amet velit rutrum est dictum facilisis. Duis cursus enim at nisl tincidunt, eu molestie elit vehicula. Cras pellentesque nisl id enim feugiat fringilla. In quis tincidunt neque. Nam eu consectetur dolor. Ut id interdum mauris. Mauris nunc tortor, placerat in tempor ut, vestibulum eu nisl. Integer vel dapibus ipsum. Nunc id erat pulvinar, tincidunt magna id, condimentum massa. Pellentesque consequat est eget odio placerat vehicula. Etiam augue neque, sagittis non leo eu, tristique scelerisque dui. Ut dui urna, blandit quis urna ac, tincidunt tristique turpis.\\n\\nSuspendisse venenatis rhoncus ligula ultrices condimentum. In id laoreet eros. Suspendisse suscipit fringilla leo id euismod. Sed in quam libero. Ut at ligula tellus. Sed tristique gravida dui, at egestas odio aliquam iaculis. Praesent imperdiet velit quis nibh consequat, quis pretium sem sagittis. Donec tortor ex, congue sit amet pulvinar ac, rutrum non est. Praesent ipsum magna, venenatis sit amet vulputate id, eleifend ac ipsum.\\n\\nIn consequat, nisi iaculis laoreet elementum, massa mauris varius nisi, et porta nisi velit at urna. Maecenas sit amet aliquet eros, a rhoncus nisl. Maecenas convallis enim nunc. Morbi purus nisl, aliquam ac tincidunt sed, mattis in augue. Quisque et elementum quam, vitae maximus orci. Suspendisse hendrerit risus nec vehicula placerat. Nulla et lectus nunc. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.\\n\\nEtiam ut sodales ex. Nulla luctus, magna eu scelerisque sagittis, nibh quam consectetur neque, non rutrum dolor metus nec ex. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Sed egestas augue elit, sollicitudin accumsan massa lobortis ac. Curabitur placerat, dolor a aliquam maximus, velit ipsum laoreet ligula, id ullamcorper lacus nibh eget nisl. Donec eget lacus venenatis enim consequat auctor vel in.\\n\"\n file_i_d {\n file_num: 6006\n realm_num: 0\n shard_num: 0\n }\n}\nnode_account_i_d {\n account_num: 444\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileContentsQueryTest.java b/sdk/src/test/java/com/hiero/sdk/FileContentsQueryTest.java similarity index 89% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/FileContentsQueryTest.java rename to sdk/src/test/java/com/hiero/sdk/FileContentsQueryTest.java index 9911fb2449..bc8ea2791f 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileContentsQueryTest.java +++ b/sdk/src/test/java/com/hiero/sdk/FileContentsQueryTest.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.QueryHeader; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; @@ -38,7 +38,7 @@ public static void afterAll() { @Test void shouldSerialize() { - var builder = com.hedera.hashgraph.sdk.proto.Query.newBuilder(); + var builder = com.hiero.sdk.proto.Query.newBuilder(); new FileContentsQuery() .setFileId(FileId.fromString("0.0.5005")) .onMakeRequest(builder, QueryHeader.newBuilder().build()); diff --git a/sdk/src/test/java/com/hiero/sdk/FileContentsQueryTest.snap b/sdk/src/test/java/com/hiero/sdk/FileContentsQueryTest.snap new file mode 100644 index 0000000000..3838913501 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/FileContentsQueryTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.FileContentsQueryTest.shouldSerialize=[ + "# com.hiero.sdk.proto.Query\nfile_get_contents {\n file_i_d {\n file_num: 5005\n realm_num: 0\n shard_num: 0\n }\n header {\n }\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileCreateTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/FileCreateTransactionTest.java similarity index 94% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/FileCreateTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/FileCreateTransactionTest.java index d7e8208b78..568ffa2b5d 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileCreateTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/FileCreateTransactionTest.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.FileCreateTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.FileCreateTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/FileCreateTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/FileCreateTransactionTest.snap new file mode 100644 index 0000000000..189f3e1ccb --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/FileCreateTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.FileCreateTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nfile_create {\n contents: \"\\001\\002\\003\\004\"\n expiration_time {\n seconds: 1554158728\n }\n keys {\n keys {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n }\n memo: \"Hello memo\"\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileDeleteTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/FileDeleteTransactionTest.java similarity index 94% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/FileDeleteTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/FileDeleteTransactionTest.java index 2a40687f9f..d00c365d08 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileDeleteTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/FileDeleteTransactionTest.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.FileDeleteTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.FileDeleteTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/FileDeleteTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/FileDeleteTransactionTest.snap new file mode 100644 index 0000000000..3c48274d8a --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/FileDeleteTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.FileDeleteTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nfile_delete {\n file_i_d {\n file_num: 6006\n realm_num: 0\n shard_num: 0\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileIdTest.java b/sdk/src/test/java/com/hiero/sdk/FileIdTest.java similarity index 98% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/FileIdTest.java rename to sdk/src/test/java/com/hiero/sdk/FileIdTest.java index cbcf26ab67..a7a780ca16 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileIdTest.java +++ b/sdk/src/test/java/com/hiero/sdk/FileIdTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; import io.github.jsonSnapshot.SnapshotMatcher; diff --git a/sdk/src/test/java/com/hiero/sdk/FileIdTest.snap b/sdk/src/test/java/com/hiero/sdk/FileIdTest.snap new file mode 100644 index 0000000000..bebd6f4749 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/FileIdTest.snap @@ -0,0 +1,23 @@ +com.hiero.sdk.FileIdTest.fromBytes=[ + "0.0.5005" +] + + +com.hiero.sdk.FileIdTest.fromSolidityAddress=[ + "0.0.5005" +] + + +com.hiero.sdk.FileIdTest.shouldSerializeFromString=[ + "0.0.5005" +] + + +com.hiero.sdk.FileIdTest.toBytes=[ + "188d27" +] + + +com.hiero.sdk.FileIdTest.toSolidityAddress=[ + "000000000000000000000000000000000000138d" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileInfoQueryTest.java b/sdk/src/test/java/com/hiero/sdk/FileInfoQueryTest.java similarity index 89% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/FileInfoQueryTest.java rename to sdk/src/test/java/com/hiero/sdk/FileInfoQueryTest.java index 2bb229aac8..1ac53abda1 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileInfoQueryTest.java +++ b/sdk/src/test/java/com/hiero/sdk/FileInfoQueryTest.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.QueryHeader; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; @@ -38,7 +38,7 @@ public static void afterAll() { @Test void shouldSerialize() { - var builder = com.hedera.hashgraph.sdk.proto.Query.newBuilder(); + var builder = com.hiero.sdk.proto.Query.newBuilder(); new FileInfoQuery() .setFileId(FileId.fromString("0.0.5005")) .onMakeRequest(builder, QueryHeader.newBuilder().build()); diff --git a/sdk/src/test/java/com/hiero/sdk/FileInfoQueryTest.snap b/sdk/src/test/java/com/hiero/sdk/FileInfoQueryTest.snap new file mode 100644 index 0000000000..2b6a89ad9c --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/FileInfoQueryTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.FileInfoQueryTest.shouldSerialize=[ + "# com.hiero.sdk.proto.Query\nfile_get_info {\n file_i_d {\n file_num: 5005\n realm_num: 0\n shard_num: 0\n }\n header {\n }\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileInfoTest.java b/sdk/src/test/java/com/hiero/sdk/FileInfoTest.java similarity index 94% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/FileInfoTest.java rename to sdk/src/test/java/com/hiero/sdk/FileInfoTest.java index 3fbbb64b40..5fbafc48a9 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileInfoTest.java +++ b/sdk/src/test/java/com/hiero/sdk/FileInfoTest.java @@ -17,11 +17,11 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.FileGetInfoResponse; -import com.hedera.hashgraph.sdk.proto.KeyList; +import com.hiero.sdk.proto.FileGetInfoResponse; +import com.hiero.sdk.proto.KeyList; import io.github.jsonSnapshot.SnapshotMatcher; import org.bouncycastle.util.encoders.Hex; import org.junit.jupiter.api.AfterAll; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileInfoTest.snap b/sdk/src/test/java/com/hiero/sdk/FileInfoTest.snap similarity index 50% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/FileInfoTest.snap rename to sdk/src/test/java/com/hiero/sdk/FileInfoTest.snap index f82cadf2ac..62c5bc3c36 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileInfoTest.snap +++ b/sdk/src/test/java/com/hiero/sdk/FileInfoTest.snap @@ -1,18 +1,18 @@ -com.hedera.hashgraph.sdk.FileInfoTest.fromBytes=[ +com.hiero.sdk.FileInfoTest.fromBytes=[ "FileInfo{fileId=0.0.1, size=2, expirationTime=1970-01-01T00:00:00.003Z, isDeleted=true, keys=KeyList{threshold=null, keys=[302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7]}, fileMemo=, ledgerId=mainnet}" ] -com.hedera.hashgraph.sdk.FileInfoTest.fromProtobuf=[ +com.hiero.sdk.FileInfoTest.fromProtobuf=[ "FileInfo{fileId=0.0.1, size=2, expirationTime=1970-01-01T00:00:00.003Z, isDeleted=true, keys=KeyList{threshold=null, keys=[302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7]}, fileMemo=, ledgerId=mainnet}" ] -com.hedera.hashgraph.sdk.FileInfoTest.toBytes=[ +com.hiero.sdk.FileInfoTest.toBytes=[ "0a02180110021a0510c08db70120012a240a221220e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b73a0100" ] -com.hedera.hashgraph.sdk.FileInfoTest.toProtobuf=[ - "# com.hedera.hashgraph.sdk.proto.FileGetInfoResponse$FileInfo@e51665b9\ndeleted: true\nexpiration_time {\n nanos: 3000000\n seconds: 0\n}\nfile_i_d {\n file_num: 1\n realm_num: 0\n shard_num: 0\n}\nkeys {\n keys {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n}\nledger_id: \"\\000\"\nsize: 2" -] \ No newline at end of file +com.hiero.sdk.FileInfoTest.toProtobuf=[ + "# com.hiero.sdk.proto.FileGetInfoResponse$FileInfo@e51665b9\ndeleted: true\nexpiration_time {\n nanos: 3000000\n seconds: 0\n}\nfile_i_d {\n file_num: 1\n realm_num: 0\n shard_num: 0\n}\nkeys {\n keys {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n}\nledger_id: \"\\000\"\nsize: 2" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileUpdateTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/FileUpdateTransactionTest.java similarity index 94% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/FileUpdateTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/FileUpdateTransactionTest.java index 70fba11b02..86aed3a5ed 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileUpdateTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/FileUpdateTransactionTest.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.FileUpdateTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/FileUpdateTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/FileUpdateTransactionTest.snap new file mode 100644 index 0000000000..8317211ce2 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/FileUpdateTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.FileUpdateTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nfile_update {\n contents: \"\\001\\002\\003\\004\\005\"\n expiration_time {\n seconds: 1554158728\n }\n file_i_d {\n file_num: 6006\n realm_num: 0\n shard_num: 0\n }\n keys {\n keys {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n }\n memo {\n value: \"Hello memo\"\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FreezeTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/FreezeTransactionTest.java similarity index 95% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/FreezeTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/FreezeTransactionTest.java index 51e1daf615..3fd04cae9e 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FreezeTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/FreezeTransactionTest.java @@ -17,13 +17,13 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; -import com.hedera.hashgraph.sdk.proto.FreezeTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.Timestamp; -import com.hedera.hashgraph.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.FreezeTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.Timestamp; +import com.hiero.sdk.proto.TransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.bouncycastle.util.encoders.Hex; import org.junit.jupiter.api.AfterAll; diff --git a/sdk/src/test/java/com/hiero/sdk/FreezeTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/FreezeTransactionTest.snap new file mode 100644 index 0000000000..8ad9655009 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/FreezeTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.FreezeTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nfreeze {\n file_hash: \"\\027#\\220E\\207\\022\\t8\\225G\\0024\\230W\"\n freeze_type: TELEMETRY_UPGRADE\n freeze_type_value: 5\n start_time {\n seconds: 1554158542\n }\n update_file {\n file_num: 6\n realm_num: 5\n shard_num: 4\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/Function.java b/sdk/src/test/java/com/hiero/sdk/Function.java similarity index 86% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/Function.java rename to sdk/src/test/java/com/hiero/sdk/Function.java index 8169952e10..fe0d78ea06 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/Function.java +++ b/sdk/src/test/java/com/hiero/sdk/Function.java @@ -1,4 +1,4 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; public interface Function { /** diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/HbarTest.java b/sdk/src/test/java/com/hiero/sdk/HbarTest.java similarity index 99% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/HbarTest.java rename to sdk/src/test/java/com/hiero/sdk/HbarTest.java index 584c1df6c9..4c88ddd32a 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/HbarTest.java +++ b/sdk/src/test/java/com/hiero/sdk/HbarTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/HederaTrustManagerTest.java b/sdk/src/test/java/com/hiero/sdk/HederaTrustManagerTest.java similarity index 99% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/HederaTrustManagerTest.java rename to sdk/src/test/java/com/hiero/sdk/HederaTrustManagerTest.java index af41ae3bef..1e028a97ea 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/HederaTrustManagerTest.java +++ b/sdk/src/test/java/com/hiero/sdk/HederaTrustManagerTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import org.junit.jupiter.api.Test; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/KeyListTest.java b/sdk/src/test/java/com/hiero/sdk/KeyListTest.java similarity index 97% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/KeyListTest.java rename to sdk/src/test/java/com/hiero/sdk/KeyListTest.java index 20fe1397ab..487fe62c30 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/KeyListTest.java +++ b/sdk/src/test/java/com/hiero/sdk/KeyListTest.java @@ -1,7 +1,7 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; -import com.hedera.hashgraph.sdk.proto.Key; +import com.hiero.sdk.proto.Key; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; @@ -32,7 +32,7 @@ void fromProtobuf() { var protoKey1 = Key.newBuilder().setEd25519(ByteString.copyFrom(mTestPublicKey1.toBytes())).build(); var protoKey3 = Key.newBuilder().setEd25519(ByteString.copyFrom(mTestPublicKey2.toBytes())).build(); var protoKey2 = Key.newBuilder().setEd25519(ByteString.copyFrom(mTestPublicKey3.toBytes())).build(); - var protoKeyList = com.hedera.hashgraph.sdk.proto.KeyList.newBuilder() + var protoKeyList = com.hiero.sdk.proto.KeyList.newBuilder() .addAllKeys(List.of(protoKey1, protoKey2, protoKey3)).build(); // When diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/KeyTest.java b/sdk/src/test/java/com/hiero/sdk/KeyTest.java similarity index 92% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/KeyTest.java rename to sdk/src/test/java/com/hiero/sdk/KeyTest.java index 4ca77a79e0..f5799c9fc7 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/KeyTest.java +++ b/sdk/src/test/java/com/hiero/sdk/KeyTest.java @@ -17,13 +17,13 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.Key; -import com.hedera.hashgraph.sdk.proto.KeyList; -import com.hedera.hashgraph.sdk.proto.ThresholdKey; +import com.hiero.sdk.proto.Key; +import com.hiero.sdk.proto.KeyList; +import com.hiero.sdk.proto.ThresholdKey; import org.bouncycastle.util.encoders.Hex; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; @@ -31,7 +31,7 @@ import java.math.BigInteger; import java.util.List; -import static com.hedera.hashgraph.sdk.Key.fromBytes; +import static com.hiero.sdk.Key.fromBytes; import static java.nio.charset.StandardCharsets.UTF_8; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatExceptionOfType; @@ -147,12 +147,12 @@ void fromProtoKeyKeyList() { var protoKey = Key.newBuilder().setKeyList(protoKeyList).build(); // when - var cut = com.hedera.hashgraph.sdk.Key.fromProtobufKey(protoKey); + var cut = com.hiero.sdk.Key.fromProtobufKey(protoKey); // then - assertThat(cut.getClass()).isEqualTo(com.hedera.hashgraph.sdk.KeyList.class); + assertThat(cut.getClass()).isEqualTo(com.hiero.sdk.KeyList.class); - var keyList = (com.hedera.hashgraph.sdk.KeyList) cut; + var keyList = (com.hiero.sdk.KeyList) cut; var actual = keyList.toProtobufKey().getKeyList(); assertThat(actual.getKeysCount()).isEqualTo(2); @@ -179,12 +179,12 @@ void fromProtoKeyThresholdKey() { var protoKey = Key.newBuilder().setThresholdKey(protoThresholdKey).build(); // when - var cut = com.hedera.hashgraph.sdk.Key.fromProtobufKey(protoKey); + var cut = com.hiero.sdk.Key.fromProtobufKey(protoKey); // then - assertThat(cut.getClass()).isEqualTo(com.hedera.hashgraph.sdk.KeyList.class); + assertThat(cut.getClass()).isEqualTo(com.hiero.sdk.KeyList.class); - var thresholdKey = (com.hedera.hashgraph.sdk.KeyList) cut; + var thresholdKey = (com.hiero.sdk.KeyList) cut; var actual = thresholdKey.toProtobufKey().getThresholdKey(); assertThat(actual.getThreshold()).isEqualTo(1); @@ -199,7 +199,7 @@ void throwsUnsupportedKey() { byte[] keyBytes = {0, 1, 2}; var protoKey = Key.newBuilder().setRSA3072(ByteString.copyFrom(keyBytes)).build(); assertThatExceptionOfType(IllegalStateException.class).isThrownBy( - () -> com.hedera.hashgraph.sdk.Key.fromProtobufKey(protoKey) + () -> com.hiero.sdk.Key.fromProtobufKey(protoKey) ); } @@ -238,7 +238,7 @@ void keyListMethods() { var key3 = PrivateKey.fromString( "302e020100300506032b657004220420db484b828e64b2d8f12ce3c0a0e93a0b8cce7af1bb8f39c97732394482538e12"); - var keyList = com.hedera.hashgraph.sdk.KeyList.withThreshold(1); + var keyList = com.hiero.sdk.KeyList.withThreshold(1); keyList.add(key1); keyList.addAll(List.of(key2, key3)); @@ -253,7 +253,7 @@ void keyListMethods() { assertThat(arr[1]).isEqualTo(key2); assertThat(arr[2]).isEqualTo(key3); - arr = new com.hedera.hashgraph.sdk.Key[]{null, null, null}; + arr = new com.hiero.sdk.Key[]{null, null, null}; keyList.toArray(arr); assertThat(arr[0]).isEqualTo(key1); assertThat(arr[1]).isEqualTo(key2); @@ -319,9 +319,9 @@ void fromBytesKeyList() throws InvalidProtocolBufferException { var cut = fromBytes(bytes); - assertThat(cut.getClass()).isEqualTo(com.hedera.hashgraph.sdk.KeyList.class); + assertThat(cut.getClass()).isEqualTo(com.hiero.sdk.KeyList.class); - var keyList = (com.hedera.hashgraph.sdk.KeyList) cut; + var keyList = (com.hiero.sdk.KeyList) cut; var actual = keyList.toProtobufKey().getKeyList(); assertThat(actual.getKeysCount()).isEqualTo(2); @@ -349,9 +349,9 @@ void fromBytesThresholdKey() throws InvalidProtocolBufferException { var cut = fromBytes(bytes); - assertThat(cut.getClass()).isEqualTo(com.hedera.hashgraph.sdk.KeyList.class); + assertThat(cut.getClass()).isEqualTo(com.hiero.sdk.KeyList.class); - var thresholdKey = (com.hedera.hashgraph.sdk.KeyList) cut; + var thresholdKey = (com.hiero.sdk.KeyList) cut; var actual = thresholdKey.toProtobufKey().getThresholdKey(); assertThat(actual.getThreshold()).isEqualTo(1); diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/KeystoreTest.java b/sdk/src/test/java/com/hiero/sdk/KeystoreTest.java similarity index 98% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/KeystoreTest.java rename to sdk/src/test/java/com/hiero/sdk/KeystoreTest.java index d4922eb8f8..cb7fbf575a 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/KeystoreTest.java +++ b/sdk/src/test/java/com/hiero/sdk/KeystoreTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ListInputTest.java b/sdk/src/test/java/com/hiero/sdk/ListInputTest.java similarity index 99% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ListInputTest.java rename to sdk/src/test/java/com/hiero/sdk/ListInputTest.java index c21bd43b9e..3196e0953d 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ListInputTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ListInputTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashAddTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/LiveHashAddTransactionTest.java similarity index 98% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashAddTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/LiveHashAddTransactionTest.java index d275098512..a5126c85e0 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashAddTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/LiveHashAddTransactionTest.java @@ -1,4 +1,4 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import io.github.jsonSnapshot.SnapshotMatcher; diff --git a/sdk/src/test/java/com/hiero/sdk/LiveHashAddTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/LiveHashAddTransactionTest.snap new file mode 100644 index 0000000000..e156af428b --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/LiveHashAddTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.LiveHashAddTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\ncrypto_add_live_hash {\n live_hash {\n account_id {\n account_num: 100\n realm_num: 0\n shard_num: 0\n }\n duration {\n seconds: 2592000\n }\n hash: \"hash\"\n keys {\n keys {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n }\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 200000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashDeleteTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/LiveHashDeleteTransactionTest.java similarity index 98% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashDeleteTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/LiveHashDeleteTransactionTest.java index ed687d7f20..784fa69bb6 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashDeleteTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/LiveHashDeleteTransactionTest.java @@ -1,4 +1,4 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import io.github.jsonSnapshot.SnapshotMatcher; diff --git a/sdk/src/test/java/com/hiero/sdk/LiveHashDeleteTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/LiveHashDeleteTransactionTest.snap new file mode 100644 index 0000000000..f9223e1d88 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/LiveHashDeleteTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.LiveHashDeleteTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\ncrypto_delete_live_hash {\n account_of_live_hash {\n account_num: 100\n realm_num: 0\n shard_num: 0\n }\n live_hash_to_delete: \"hash\"\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 200000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashQueryTest.java b/sdk/src/test/java/com/hiero/sdk/LiveHashQueryTest.java similarity index 83% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashQueryTest.java rename to sdk/src/test/java/com/hiero/sdk/LiveHashQueryTest.java index 5bc859aab2..7bcf0d8dd6 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashQueryTest.java +++ b/sdk/src/test/java/com/hiero/sdk/LiveHashQueryTest.java @@ -1,6 +1,6 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.QueryHeader; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; @@ -21,7 +21,7 @@ public static void afterAll() { @Test void shouldSerialize() { - var builder = com.hedera.hashgraph.sdk.proto.Query.newBuilder(); + var builder = com.hiero.sdk.proto.Query.newBuilder(); new LiveHashQuery() .setAccountId(AccountId.fromString("0.0.100")) .setHash(hash) diff --git a/sdk/src/test/java/com/hiero/sdk/LiveHashQueryTest.snap b/sdk/src/test/java/com/hiero/sdk/LiveHashQueryTest.snap new file mode 100644 index 0000000000..780c3a122d --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/LiveHashQueryTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.LiveHashQueryTest.shouldSerialize=[ + "# com.hiero.sdk.proto.Query\ncrypto_get_live_hash {\n account_i_d {\n account_num: 100\n realm_num: 0\n shard_num: 0\n }\n hash: \"\\000\\001\\002\"\n header {\n }\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/MaxQueryPaymentExceededExceptionTest.java b/sdk/src/test/java/com/hiero/sdk/MaxQueryPaymentExceededExceptionTest.java similarity index 97% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/MaxQueryPaymentExceededExceptionTest.java rename to sdk/src/test/java/com/hiero/sdk/MaxQueryPaymentExceededExceptionTest.java index 96200bcd63..f5290d77a9 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/MaxQueryPaymentExceededExceptionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/MaxQueryPaymentExceededExceptionTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import org.junit.jupiter.api.Test; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/MessageSubmitTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/MessageSubmitTransactionTest.java similarity index 94% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/MessageSubmitTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/MessageSubmitTransactionTest.java index 187b0ecb9e..1809fa03d2 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/MessageSubmitTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/MessageSubmitTransactionTest.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.ConsensusSubmitMessageTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.ConsensusSubmitMessageTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/MessageSubmitTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/MessageSubmitTransactionTest.snap new file mode 100644 index 0000000000..882564a254 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/MessageSubmitTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.MessageSubmitTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nconsensus_submit_message {\n message: \"hello\"\n topic_i_d {\n realm_num: 0\n shard_num: 0\n topic_num: 5007\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/MnemonicTest.java b/sdk/src/test/java/com/hiero/sdk/MnemonicTest.java similarity index 99% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/MnemonicTest.java rename to sdk/src/test/java/com/hiero/sdk/MnemonicTest.java index 9cac6a7c63..f28c497ba1 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/MnemonicTest.java +++ b/sdk/src/test/java/com/hiero/sdk/MnemonicTest.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.utils.Bip32Utils; +import com.hiero.sdk.utils.Bip32Utils; import org.bouncycastle.util.encoders.Hex; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/Mocker.java b/sdk/src/test/java/com/hiero/sdk/Mocker.java similarity index 92% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/Mocker.java rename to sdk/src/test/java/com/hiero/sdk/Mocker.java index 211b82926d..75781f4802 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/Mocker.java +++ b/sdk/src/test/java/com/hiero/sdk/Mocker.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; - -import com.hedera.hashgraph.sdk.logger.LogLevel; -import com.hedera.hashgraph.sdk.logger.Logger; -import com.hedera.hashgraph.sdk.proto.ConsensusServiceGrpc; -import com.hedera.hashgraph.sdk.proto.CryptoServiceGrpc; -import com.hedera.hashgraph.sdk.proto.FileServiceGrpc; -import com.hedera.hashgraph.sdk.proto.SmartContractServiceGrpc; -import com.hedera.hashgraph.sdk.proto.TokenServiceGrpc; +package com.hiero.sdk; + +import com.hiero.sdk.proto.ConsensusServiceGrpc; +import com.hiero.sdk.proto.CryptoServiceGrpc; +import com.hiero.sdk.proto.FileServiceGrpc; +import com.hiero.sdk.proto.SmartContractServiceGrpc; +import com.hiero.sdk.proto.TokenServiceGrpc; +import com.hiero.sdk.logger.LogLevel; +import com.hiero.sdk.logger.Logger; import io.grpc.MethodDescriptor; import io.grpc.Server; import io.grpc.ServerMethodDefinition; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/MockingTest.java b/sdk/src/test/java/com/hiero/sdk/MockingTest.java similarity index 93% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/MockingTest.java rename to sdk/src/test/java/com/hiero/sdk/MockingTest.java index 7bd857deef..bf70d85119 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/MockingTest.java +++ b/sdk/src/test/java/com/hiero/sdk/MockingTest.java @@ -17,28 +17,28 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.AccountID; -import com.hedera.hashgraph.sdk.proto.CryptoGetAccountBalanceResponse; -import com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse; -import com.hedera.hashgraph.sdk.proto.CryptoServiceGrpc; -import com.hedera.hashgraph.sdk.proto.FileServiceGrpc; -import com.hedera.hashgraph.sdk.proto.Query; -import com.hedera.hashgraph.sdk.proto.Response; -import com.hedera.hashgraph.sdk.proto.ResponseCodeEnum; -import com.hedera.hashgraph.sdk.proto.ResponseHeader; -import com.hedera.hashgraph.sdk.proto.SignedTransaction; -import com.hedera.hashgraph.sdk.proto.SmartContractServiceGrpc; -import com.hedera.hashgraph.sdk.proto.Transaction; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse; -import com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse; -import com.hedera.hashgraph.sdk.proto.TransactionReceipt; -import com.hedera.hashgraph.sdk.proto.TransactionRecord; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.AccountID; +import com.hiero.sdk.proto.CryptoGetAccountBalanceResponse; +import com.hiero.sdk.proto.CryptoGetInfoResponse; +import com.hiero.sdk.proto.CryptoServiceGrpc; +import com.hiero.sdk.proto.FileServiceGrpc; +import com.hiero.sdk.proto.Query; +import com.hiero.sdk.proto.Response; +import com.hiero.sdk.proto.ResponseCodeEnum; +import com.hiero.sdk.proto.ResponseHeader; +import com.hiero.sdk.proto.SignedTransaction; +import com.hiero.sdk.proto.SmartContractServiceGrpc; +import com.hiero.sdk.proto.Transaction; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionGetReceiptResponse; +import com.hiero.sdk.proto.TransactionGetRecordResponse; +import com.hiero.sdk.proto.TransactionReceipt; +import com.hiero.sdk.proto.TransactionRecord; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.Status; import io.grpc.stub.StreamObserver; import org.junit.jupiter.api.Assertions; @@ -96,10 +96,10 @@ void shouldRetryExceptionallyFunctionsCorrectlyForPlatformNotActiveGetReceipt(St var server = new TestServer("getReceiptRetry" + sync, service); server.client.setMaxAttempts(3); - service.buffer.enqueueResponse(TestResponse.transaction(com.hedera.hashgraph.sdk.Status.PLATFORM_NOT_ACTIVE)); + service.buffer.enqueueResponse(TestResponse.transaction(com.hiero.sdk.Status.PLATFORM_NOT_ACTIVE)); service.buffer.enqueueResponse(TestResponse.transactionOk()); - com.hedera.hashgraph.sdk.TransactionResponse transactionResponse; + com.hiero.sdk.TransactionResponse transactionResponse; if (sync.equals("sync")) { transactionResponse = new AccountCreateTransaction().execute(server.client); } else { @@ -115,7 +115,7 @@ void shouldRetryExceptionallyFunctionsCorrectlyForPlatformNotActiveGetReceipt(St .build() ).build() )) - .enqueueResponse(TestResponse.receipt(com.hedera.hashgraph.sdk.Status.PLATFORM_NOT_ACTIVE)) + .enqueueResponse(TestResponse.receipt(com.hiero.sdk.Status.PLATFORM_NOT_ACTIVE)) .enqueueResponse(TestResponse.successfulReceipt()); if (sync.equals("sync")) { @@ -132,10 +132,10 @@ void shouldRetryExceptionallyFunctionsCorrectlyForPlatformNotActiveGetRecord(Str var server = new TestServer("getRecordRetry" + sync, service); server.client.setMaxAttempts(3); - service.buffer.enqueueResponse(TestResponse.transaction(com.hedera.hashgraph.sdk.Status.PLATFORM_NOT_ACTIVE)); + service.buffer.enqueueResponse(TestResponse.transaction(com.hiero.sdk.Status.PLATFORM_NOT_ACTIVE)); service.buffer.enqueueResponse(TestResponse.transactionOk()); - com.hedera.hashgraph.sdk.TransactionResponse transactionResponse; + com.hiero.sdk.TransactionResponse transactionResponse; if (sync.equals("sync")) { transactionResponse = new AccountCreateTransaction().execute(server.client); } else { @@ -246,11 +246,11 @@ void contractCreateFlowFunctions(String versionToTest, String stakeType) throws Assertions.assertEquals(3, cryptoService.buffer.queryRequestsReceived.size()); Assertions.assertEquals(3, fileService.buffer.transactionRequestsReceived.size()); Assertions.assertEquals(1, contractService.buffer.transactionRequestsReceived.size()); - var transactions = new ArrayList>(); + var transactions = new ArrayList>(); for (var request : fileService.buffer.transactionRequestsReceived) { - transactions.add(com.hedera.hashgraph.sdk.Transaction.fromBytes(request.toByteArray())); + transactions.add(com.hiero.sdk.Transaction.fromBytes(request.toByteArray())); } - transactions.add(com.hedera.hashgraph.sdk.Transaction.fromBytes( + transactions.add(com.hiero.sdk.Transaction.fromBytes( contractService.buffer.transactionRequestsReceived.get(0).toByteArray() )); @@ -496,7 +496,7 @@ void hitsTxMaxAttemptsCorrectly(Integer numberOfErrors, Integer maxAttempts, Str "PLATFORM_TRANSACTION_NOT_CREATED, 3, async", "TRANSACTION_EXPIRED, 3, async" }) - void shouldRetryFunctionsCorrectly(com.hedera.hashgraph.sdk.Status status, int numberOfErrors, String sync) throws Exception { + void shouldRetryFunctionsCorrectly(com.hiero.sdk.Status status, int numberOfErrors, String sync) throws Exception { var service = new TestCryptoService(); var server = new TestServer("shouldRetryFunctionsCorrectly" + status + numberOfErrors + sync, service); @@ -534,7 +534,7 @@ void shouldRetryFunctionsCorrectly(com.hedera.hashgraph.sdk.Status status, int n "PLATFORM_TRANSACTION_NOT_CREATED, async", "PLATFORM_NOT_ACTIVE, async", }) - void hitsClientMaxAttemptsCorrectly(com.hedera.hashgraph.sdk.Status status, String sync) throws Exception { + void hitsClientMaxAttemptsCorrectly(com.hiero.sdk.Status status, String sync) throws Exception { var service = new TestCryptoService(); var server = new TestServer("shouldRetryFunctionsCorrectly" + status + sync, service); @@ -606,9 +606,9 @@ void defaultMaxTransactionFeeTest() throws Exception { .execute(server.client); Assertions.assertEquals(4, service.buffer.transactionRequestsReceived.size()); - var transactions = new ArrayList>(); + var transactions = new ArrayList>(); for (var request : service.buffer.transactionRequestsReceived) { - transactions.add(com.hedera.hashgraph.sdk.Transaction.fromBytes(request.toByteArray())); + transactions.add(com.hiero.sdk.Transaction.fromBytes(request.toByteArray())); } Assertions.assertEquals(new Hbar(2), transactions.get(0).getMaxTransactionFee()); Assertions.assertEquals(new Hbar(5), transactions.get(1).getMaxTransactionFee()); @@ -699,7 +699,7 @@ void canCancelExecuteAsync() throws Exception { TransactionGetReceiptResponse.newBuilder() .setHeader( ResponseHeader.newBuilder() - .setNodeTransactionPrecheckCode(com.hedera.hashgraph.sdk.Status.RECEIPT_NOT_FOUND.code) + .setNodeTransactionPrecheckCode(com.hiero.sdk.Status.RECEIPT_NOT_FOUND.code) ) ).build() ); diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/NetworkVersionInfoQueryTest.java b/sdk/src/test/java/com/hiero/sdk/NetworkVersionInfoQueryTest.java similarity index 84% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/NetworkVersionInfoQueryTest.java rename to sdk/src/test/java/com/hiero/sdk/NetworkVersionInfoQueryTest.java index d05f3fec6f..4eab7086ee 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/NetworkVersionInfoQueryTest.java +++ b/sdk/src/test/java/com/hiero/sdk/NetworkVersionInfoQueryTest.java @@ -1,8 +1,8 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; -import com.hedera.hashgraph.sdk.proto.QueryHeader; -import com.hedera.hashgraph.sdk.proto.Transaction; +import com.hiero.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.Transaction; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; @@ -21,7 +21,7 @@ public static void afterAll() { @Test void shouldSerialize() { - var builder = com.hedera.hashgraph.sdk.proto.Query.newBuilder(); + var builder = com.hiero.sdk.proto.Query.newBuilder(); new NetworkVersionInfoQuery() .setMaxQueryPayment(Hbar.fromTinybars(100_000)) .onMakeRequest( diff --git a/sdk/src/test/java/com/hiero/sdk/NetworkVersionInfoQueryTest.snap b/sdk/src/test/java/com/hiero/sdk/NetworkVersionInfoQueryTest.snap new file mode 100644 index 0000000000..176369a5d9 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/NetworkVersionInfoQueryTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.NetworkVersionInfoQueryTest.shouldSerialize=[ + "# com.hiero.sdk.proto.Query\nnetwork_get_version_info {\n header {\n payment {\n signed_transaction_bytes: \"\\336\\255\\276\\357\"\n }\n }\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/NetworkVersionInfoTest.java b/sdk/src/test/java/com/hiero/sdk/NetworkVersionInfoTest.java similarity index 97% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/NetworkVersionInfoTest.java rename to sdk/src/test/java/com/hiero/sdk/NetworkVersionInfoTest.java index 3920aa6b39..ae3164a7a2 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/NetworkVersionInfoTest.java +++ b/sdk/src/test/java/com/hiero/sdk/NetworkVersionInfoTest.java @@ -1,4 +1,4 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; diff --git a/sdk/src/test/java/com/hiero/sdk/NetworkVersionInfoTest.snap b/sdk/src/test/java/com/hiero/sdk/NetworkVersionInfoTest.snap new file mode 100644 index 0000000000..0b585e931c --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/NetworkVersionInfoTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.NetworkVersionInfoTest.shouldSerialize=[ + "com.hiero.sdk.NetworkVersionInfo" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/NftIdTest.java b/sdk/src/test/java/com/hiero/sdk/NftIdTest.java similarity index 98% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/NftIdTest.java rename to sdk/src/test/java/com/hiero/sdk/NftIdTest.java index cb313d93f7..1747bcb3df 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/NftIdTest.java +++ b/sdk/src/test/java/com/hiero/sdk/NftIdTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; import io.github.jsonSnapshot.SnapshotMatcher; diff --git a/sdk/src/test/java/com/hiero/sdk/NftIdTest.snap b/sdk/src/test/java/com/hiero/sdk/NftIdTest.snap new file mode 100644 index 0000000000..3f39bd22b9 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/NftIdTest.snap @@ -0,0 +1,33 @@ +com.hiero.sdk.NftIdTest.fromBytes=[ + "0.0.5005/574489" +] + + +com.hiero.sdk.NftIdTest.fromString2=[ + "0.0.5005/1234" +] + + +com.hiero.sdk.NftIdTest.fromString=[ + "0.0.5005/1234" +] + + +com.hiero.sdk.NftIdTest.fromStringWithChecksumOnMainnet=[ + "0.0.123-vfmkw/7584" +] + + +com.hiero.sdk.NftIdTest.fromStringWithChecksumOnPreviewnet=[ + "0.0.123-ogizo/487302" +] + + +com.hiero.sdk.NftIdTest.fromStringWithChecksumOnTestnet=[ + "0.0.123-esxsf/584903" +] + + +com.hiero.sdk.NftIdTest.toBytes=[ + "0a03188d2710b826" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/NodeCreateTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/NodeCreateTransactionTest.java similarity index 97% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/NodeCreateTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/NodeCreateTransactionTest.java index 4760e728e4..7c3e4bd45e 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/NodeCreateTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/NodeCreateTransactionTest.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.jupiter.api.Assertions.assertThrows; import com.google.protobuf.ByteString; -import com.hedera.hashgraph.sdk.proto.NodeCreateTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.NodeCreateTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import java.time.Instant; import java.util.Arrays; diff --git a/sdk/src/test/java/com/hiero/sdk/NodeCreateTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/NodeCreateTransactionTest.snap new file mode 100644 index 0000000000..b21a01b450 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/NodeCreateTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.NodeCreateTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\nnode_create {\n account_id {\n account_num: 9\n realm_num: 6\n shard_num: 0\n }\n admin_key {\n ed25519: \"\\030\\214\\252`\\231\\024#O\\b\\370\\342\\232\\321g\\274\\273\\346\\221}\\211m\\244R\\306\\017\\230\\017j,\\246\\206\\001\"\n }\n description: \"Test description\"\n gossip_ca_certificate: \"\\000\\001\\002\\003\\004\"\n gossip_endpoint {\n domain_name: \"0unit.test.com\"\n ip_address_v4: \"\\000\\001\\002\\003\"\n port: 42\n }\n gossip_endpoint {\n domain_name: \"1unit.test.com\"\n ip_address_v4: \"\\000\\001\\002\\003\"\n port: 43\n }\n gossip_endpoint {\n domain_name: \"2unit.test.com\"\n ip_address_v4: \"\\000\\001\\002\\003\"\n port: 44\n }\n grpc_certificate_hash: \"\\005\\006\\a\\b\\t\"\n service_endpoint {\n domain_name: \"3unit.test.com\"\n ip_address_v4: \"\\000\\001\\002\\003\"\n port: 45\n }\n service_endpoint {\n domain_name: \"4unit.test.com\"\n ip_address_v4: \"\\000\\001\\002\\003\"\n port: 46\n }\n service_endpoint {\n domain_name: \"5unit.test.com\"\n ip_address_v4: \"\\000\\001\\002\\003\"\n port: 47\n }\n service_endpoint {\n domain_name: \"6unit.test.com\"\n ip_address_v4: \"\\000\\001\\002\\003\"\n port: 48\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/NodeDeleteTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/NodeDeleteTransactionTest.java similarity index 94% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/NodeDeleteTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/NodeDeleteTransactionTest.java index 67ea54004d..097cfde76e 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/NodeDeleteTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/NodeDeleteTransactionTest.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.jupiter.api.Assertions.assertThrows; -import com.hedera.hashgraph.sdk.proto.NodeDeleteTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.NodeDeleteTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import java.time.Instant; import java.util.Arrays; diff --git a/sdk/src/test/java/com/hiero/sdk/NodeDeleteTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/NodeDeleteTransactionTest.snap new file mode 100644 index 0000000000..14a521e4c4 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/NodeDeleteTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.NodeDeleteTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\nnode_delete {\n node_id: 420\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/NodeUpdateTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/NodeUpdateTransactionTest.java similarity index 97% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/NodeUpdateTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/NodeUpdateTransactionTest.java index b07b52c908..418cc48535 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/NodeUpdateTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/NodeUpdateTransactionTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.jupiter.api.Assertions.assertThrows; @@ -25,9 +25,9 @@ import com.google.protobuf.ByteString; import com.google.protobuf.BytesValue; import com.google.protobuf.StringValue; -import com.hedera.hashgraph.sdk.proto.NodeUpdateTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.NodeUpdateTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import java.time.Instant; import java.util.Arrays; diff --git a/sdk/src/test/java/com/hiero/sdk/NodeUpdateTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/NodeUpdateTransactionTest.snap new file mode 100644 index 0000000000..9d5b085893 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/NodeUpdateTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.NodeUpdateTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\nnode_update {\n account_id {\n account_num: 9\n realm_num: 6\n shard_num: 0\n }\n admin_key {\n ed25519: \"\\030\\214\\252`\\231\\024#O\\b\\370\\342\\232\\321g\\274\\273\\346\\221}\\211m\\244R\\306\\017\\230\\017j,\\246\\206\\001\"\n }\n description {\n value: \"Test description\"\n }\n gossip_ca_certificate {\n value: \"\\000\\001\\002\\003\\004\"\n }\n gossip_endpoint {\n domain_name: \"0unit.test.com\"\n ip_address_v4: \"\\000\\001\\002\\003\"\n port: 42\n }\n gossip_endpoint {\n domain_name: \"1unit.test.com\"\n ip_address_v4: \"\\000\\001\\002\\003\"\n port: 43\n }\n gossip_endpoint {\n domain_name: \"2unit.test.com\"\n ip_address_v4: \"\\000\\001\\002\\003\"\n port: 44\n }\n grpc_certificate_hash {\n value: \"\\005\\006\\a\\b\\t\"\n }\n node_id: 420\n service_endpoint {\n domain_name: \"3unit.test.com\"\n ip_address_v4: \"\\000\\001\\002\\003\"\n port: 45\n }\n service_endpoint {\n domain_name: \"4unit.test.com\"\n ip_address_v4: \"\\000\\001\\002\\003\"\n port: 46\n }\n service_endpoint {\n domain_name: \"5unit.test.com\"\n ip_address_v4: \"\\000\\001\\002\\003\"\n port: 47\n }\n service_endpoint {\n domain_name: \"6unit.test.com\"\n ip_address_v4: \"\\000\\001\\002\\003\"\n port: 48\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/PendingAirdropIdTest.java b/sdk/src/test/java/com/hiero/sdk/PendingAirdropIdTest.java similarity index 91% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/PendingAirdropIdTest.java rename to sdk/src/test/java/com/hiero/sdk/PendingAirdropIdTest.java index 8ecbdc6f16..f35a40f4c4 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/PendingAirdropIdTest.java +++ b/sdk/src/test/java/com/hiero/sdk/PendingAirdropIdTest.java @@ -18,7 +18,7 @@ * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; @@ -97,7 +97,7 @@ void testSetNftId() { @Test void testToProtobufWithTokenId() { PendingAirdropId pendingAirdropId = new PendingAirdropId(sender, receiver, tokenId); - com.hedera.hashgraph.sdk.proto.PendingAirdropId proto = pendingAirdropId.toProtobuf(); + com.hiero.sdk.proto.PendingAirdropId proto = pendingAirdropId.toProtobuf(); assertNotNull(proto); assertEquals(sender.toProtobuf(), proto.getSenderId()); @@ -108,7 +108,7 @@ void testToProtobufWithTokenId() { @Test void testToProtobufWithNftId() { PendingAirdropId pendingAirdropId = new PendingAirdropId(sender, receiver, nftId); - com.hedera.hashgraph.sdk.proto.PendingAirdropId proto = pendingAirdropId.toProtobuf(); + com.hiero.sdk.proto.PendingAirdropId proto = pendingAirdropId.toProtobuf(); assertNotNull(proto); assertEquals(sender.toProtobuf(), proto.getSenderId()); @@ -118,7 +118,7 @@ void testToProtobufWithNftId() { @Test void testFromProtobufWithTokenId() { - com.hedera.hashgraph.sdk.proto.PendingAirdropId proto = com.hedera.hashgraph.sdk.proto.PendingAirdropId.newBuilder() + com.hiero.sdk.proto.PendingAirdropId proto = com.hiero.sdk.proto.PendingAirdropId.newBuilder() .setSenderId(sender.toProtobuf()) .setReceiverId(receiver.toProtobuf()) .setFungibleTokenType(tokenId.toProtobuf()) @@ -135,7 +135,7 @@ void testFromProtobufWithTokenId() { @Test void testFromProtobufWithNftId() { - com.hedera.hashgraph.sdk.proto.PendingAirdropId proto = com.hedera.hashgraph.sdk.proto.PendingAirdropId.newBuilder() + com.hiero.sdk.proto.PendingAirdropId proto = com.hiero.sdk.proto.PendingAirdropId.newBuilder() .setSenderId(sender.toProtobuf()) .setReceiverId(receiver.toProtobuf()) .setNonFungibleToken(nftId.toProtobuf()) diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/PrivateKeyTest.java b/sdk/src/test/java/com/hiero/sdk/PrivateKeyTest.java similarity index 98% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/PrivateKeyTest.java rename to sdk/src/test/java/com/hiero/sdk/PrivateKeyTest.java index d527c33362..e20a8cdb2b 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/PrivateKeyTest.java +++ b/sdk/src/test/java/com/hiero/sdk/PrivateKeyTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; import org.bouncycastle.util.encoders.Hex; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/PrngTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/PrngTransactionTest.java similarity index 98% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/PrngTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/PrngTransactionTest.java index 948076080a..b908b48f41 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/PrngTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/PrngTransactionTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; diff --git a/sdk/src/test/java/com/hiero/sdk/PrngTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/PrngTransactionTest.snap new file mode 100644 index 0000000000..992751a36b --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/PrngTransactionTest.snap @@ -0,0 +1,8 @@ +com.hiero.sdk.PrngTransactionTest.shouldSerialize2=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}\nutil_prng {\n range: 100\n}" +] + + +com.hiero.sdk.PrngTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}\nutil_prng {\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ProxyStakerTest.java b/sdk/src/test/java/com/hiero/sdk/ProxyStakerTest.java similarity index 77% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ProxyStakerTest.java rename to sdk/src/test/java/com/hiero/sdk/ProxyStakerTest.java index 0ab2f70eb9..6170ed02eb 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ProxyStakerTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ProxyStakerTest.java @@ -1,6 +1,6 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.ProxyStaker; +import com.hiero.sdk.proto.ProxyStaker; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; @@ -24,7 +24,7 @@ public static void afterAll() { @Test void fromProtobuf() { - SnapshotMatcher.expect(com.hedera.hashgraph.sdk.ProxyStaker.fromProtobuf(proxyStaker).toString()) + SnapshotMatcher.expect(com.hiero.sdk.ProxyStaker.fromProtobuf(proxyStaker).toString()) .toMatchSnapshot(); } } diff --git a/sdk/src/test/java/com/hiero/sdk/ProxyStakerTest.snap b/sdk/src/test/java/com/hiero/sdk/ProxyStakerTest.snap new file mode 100644 index 0000000000..e56fbd1b71 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/ProxyStakerTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.ProxyStakerTest.fromProtobuf=[ + "ProxyStaker{accountId=0.0.100, amount=10 tℏ}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ReceiptStatusExceptionTest.java b/sdk/src/test/java/com/hiero/sdk/ReceiptStatusExceptionTest.java similarity index 83% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ReceiptStatusExceptionTest.java rename to sdk/src/test/java/com/hiero/sdk/ReceiptStatusExceptionTest.java index 650814f086..5f235e2a45 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ReceiptStatusExceptionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ReceiptStatusExceptionTest.java @@ -1,6 +1,6 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.ResponseCodeEnum; +import com.hiero.sdk.proto.ResponseCodeEnum; import org.junit.jupiter.api.Test; import java.time.Instant; @@ -14,7 +14,7 @@ void shouldHaveMessage() { var validStart = Instant.ofEpochSecond(1554158542); var txId = new TransactionId(new AccountId(0, 0, 100), validStart); var txReceipt = TransactionReceipt.fromProtobuf( - com.hedera.hashgraph.sdk.proto.TransactionReceipt + com.hiero.sdk.proto.TransactionReceipt .newBuilder() .setStatusValue(ResponseCodeEnum.INSUFFICIENT_TX_FEE_VALUE) .build()); diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/RegenerateTransactionIdsTest.java b/sdk/src/test/java/com/hiero/sdk/RegenerateTransactionIdsTest.java similarity index 89% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/RegenerateTransactionIdsTest.java rename to sdk/src/test/java/com/hiero/sdk/RegenerateTransactionIdsTest.java index 7bd7ccaa21..6f19e20ccc 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/RegenerateTransactionIdsTest.java +++ b/sdk/src/test/java/com/hiero/sdk/RegenerateTransactionIdsTest.java @@ -17,13 +17,13 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.ResponseCodeEnum; -import com.hedera.hashgraph.sdk.proto.SignedTransaction; -import com.hedera.hashgraph.sdk.proto.Transaction; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.ResponseCodeEnum; +import com.hiero.sdk.proto.SignedTransaction; +import com.hiero.sdk.proto.Transaction; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.Status; import org.junit.jupiter.api.Test; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/RequestTypeTest.java b/sdk/src/test/java/com/hiero/sdk/RequestTypeTest.java similarity index 88% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/RequestTypeTest.java rename to sdk/src/test/java/com/hiero/sdk/RequestTypeTest.java index 13b2f92c0d..dd822198b6 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/RequestTypeTest.java +++ b/sdk/src/test/java/com/hiero/sdk/RequestTypeTest.java @@ -1,6 +1,6 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.HederaFunctionality; +import com.hiero.sdk.proto.HederaFunctionality; import org.junit.jupiter.api.Test; import java.util.Map; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleCreateTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/ScheduleCreateTransactionTest.java similarity index 98% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleCreateTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/ScheduleCreateTransactionTest.java index ff055cce11..d052f2f720 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleCreateTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ScheduleCreateTransactionTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; diff --git a/sdk/src/test/java/com/hiero/sdk/ScheduleCreateTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/ScheduleCreateTransactionTest.snap new file mode 100644 index 0000000000..b821d28d4f --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/ScheduleCreateTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.ScheduleCreateTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\nschedule_create {\n admin_key {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n expiration_time {\n seconds: 1554158542\n }\n memo: \"hi\"\n payer_account_i_d {\n account_num: 222\n realm_num: 0\n shard_num: 0\n }\n scheduled_transaction_body {\n crypto_transfer {\n transfers {\n account_amounts {\n account_i_d {\n account_num: 333\n realm_num: 0\n shard_num: 0\n }\n amount: 1000000000\n }\n account_amounts {\n account_i_d {\n account_num: 555\n realm_num: 0\n shard_num: 0\n }\n amount: -1000000000\n }\n }\n }\n transaction_fee: 100000000\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleDeleteTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/ScheduleDeleteTransactionTest.java similarity index 94% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleDeleteTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/ScheduleDeleteTransactionTest.java index d9eed28d1c..1b4dba5978 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleDeleteTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ScheduleDeleteTransactionTest.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.ScheduleDeleteTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.ScheduleDeleteTransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/ScheduleDeleteTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/ScheduleDeleteTransactionTest.snap new file mode 100644 index 0000000000..98969d291f --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/ScheduleDeleteTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.ScheduleDeleteTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\nschedule_delete {\n schedule_i_d {\n realm_num: 0\n schedule_num: 444\n shard_num: 0\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleInfoQueryTest.java b/sdk/src/test/java/com/hiero/sdk/ScheduleInfoQueryTest.java similarity index 90% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleInfoQueryTest.java rename to sdk/src/test/java/com/hiero/sdk/ScheduleInfoQueryTest.java index 31d584475e..5e30056448 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleInfoQueryTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ScheduleInfoQueryTest.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.QueryHeader; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; @@ -38,7 +38,7 @@ public static void afterAll() { @Test void shouldSerialize() { - var builder = com.hedera.hashgraph.sdk.proto.Query.newBuilder(); + var builder = com.hiero.sdk.proto.Query.newBuilder(); new ScheduleInfoQuery() .setScheduleId(ScheduleId.fromString("0.0.5005")) .setMaxQueryPayment(Hbar.fromTinybars(100_000)) diff --git a/sdk/src/test/java/com/hiero/sdk/ScheduleInfoQueryTest.snap b/sdk/src/test/java/com/hiero/sdk/ScheduleInfoQueryTest.snap new file mode 100644 index 0000000000..9d76470d77 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/ScheduleInfoQueryTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.ScheduleInfoQueryTest.shouldSerialize=[ + "# com.hiero.sdk.proto.Query\nschedule_get_info {\n header {\n }\n schedule_i_d {\n realm_num: 0\n schedule_num: 5005\n shard_num: 0\n }\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleInfoTest.java b/sdk/src/test/java/com/hiero/sdk/ScheduleInfoTest.java similarity index 95% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleInfoTest.java rename to sdk/src/test/java/com/hiero/sdk/ScheduleInfoTest.java index 4f15f7c45b..747e0893f0 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleInfoTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ScheduleInfoTest.java @@ -1,7 +1,7 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.CryptoDeleteTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.CryptoDeleteTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleInfoTest.snap b/sdk/src/test/java/com/hiero/sdk/ScheduleInfoTest.snap similarity index 88% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleInfoTest.snap rename to sdk/src/test/java/com/hiero/sdk/ScheduleInfoTest.snap index 68bdcb1db6..abd42d9a89 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleInfoTest.snap +++ b/sdk/src/test/java/com/hiero/sdk/ScheduleInfoTest.snap @@ -1,8 +1,8 @@ -com.hedera.hashgraph.sdk.ScheduleInfoTest.shouldSerialize=[ +com.hiero.sdk.ScheduleInfoTest.shouldSerialize=[ "ScheduleInfo{scheduleId=1.2.3, scheduledTransactionId=0.0.5006.000000000, creatorAccountId=4.5.6, payerAccountId=2.3.4, signatories=KeyList{threshold=null, keys=[302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7]}, adminKey=302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7, expirationTime=2019-04-01T22:42:22Z, memo=memo, executedAt=2019-04-01T22:42:22Z, deletedAt=null, ledgerId=testnet, waitForExpiry=true}" ] -com.hedera.hashgraph.sdk.ScheduleInfoTest.shouldSerializeDeleted=[ +com.hiero.sdk.ScheduleInfoTest.shouldSerializeDeleted=[ "ScheduleInfo{scheduleId=1.2.3, scheduledTransactionId=0.0.5006.000000000, creatorAccountId=4.5.6, payerAccountId=2.3.4, signatories=KeyList{threshold=null, keys=[302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7]}, adminKey=302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7, expirationTime=2019-04-01T22:42:22Z, memo=memo, executedAt=null, deletedAt=2019-04-01T22:42:22Z, ledgerId=testnet, waitForExpiry=true}" ] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleSignTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/ScheduleSignTransactionTest.java similarity index 98% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleSignTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/ScheduleSignTransactionTest.java index 6c987f2319..94b1481e1e 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleSignTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/ScheduleSignTransactionTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; diff --git a/sdk/src/test/java/com/hiero/sdk/ScheduleSignTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/ScheduleSignTransactionTest.snap new file mode 100644 index 0000000000..553484a7f9 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/ScheduleSignTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.ScheduleSignTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\nschedule_sign {\n schedule_i_d {\n realm_num: 0\n schedule_num: 444\n shard_num: 0\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/Snapshot.java b/sdk/src/test/java/com/hiero/sdk/Snapshot.java similarity index 98% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/Snapshot.java rename to sdk/src/test/java/com/hiero/sdk/Snapshot.java index 8487204e85..50255565d7 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/Snapshot.java +++ b/sdk/src/test/java/com/hiero/sdk/Snapshot.java @@ -1,4 +1,4 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/StakingInfoTest.java b/sdk/src/test/java/com/hiero/sdk/StakingInfoTest.java similarity index 98% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/StakingInfoTest.java rename to sdk/src/test/java/com/hiero/sdk/StakingInfoTest.java index e4af2fdcd4..1960125cb2 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/StakingInfoTest.java +++ b/sdk/src/test/java/com/hiero/sdk/StakingInfoTest.java @@ -1,4 +1,4 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/StakingInfoTest.snap b/sdk/src/test/java/com/hiero/sdk/StakingInfoTest.snap similarity index 71% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/StakingInfoTest.snap rename to sdk/src/test/java/com/hiero/sdk/StakingInfoTest.snap index 144277bc1f..f98a1e9bd4 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/StakingInfoTest.snap +++ b/sdk/src/test/java/com/hiero/sdk/StakingInfoTest.snap @@ -1,8 +1,8 @@ -com.hedera.hashgraph.sdk.StakingInfoTest.shouldSerializeAccount=[ +com.hiero.sdk.StakingInfoTest.shouldSerializeAccount=[ "StakingInfo{declineStakingReward=true, stakePeriodStart=2019-04-01T22:42:22Z, pendingReward=5 ℏ, stakedToMe=10 ℏ, stakedAccountId=1.2.3, stakedNodeId=null}" ] -com.hedera.hashgraph.sdk.StakingInfoTest.shouldSerializeNode=[ +com.hiero.sdk.StakingInfoTest.shouldSerializeNode=[ "StakingInfo{declineStakingReward=true, stakePeriodStart=2019-04-01T22:42:22Z, pendingReward=5 ℏ, stakedToMe=10 ℏ, stakedAccountId=null, stakedNodeId=3}" -] \ No newline at end of file +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/StatusTest.java b/sdk/src/test/java/com/hiero/sdk/StatusTest.java similarity index 95% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/StatusTest.java rename to sdk/src/test/java/com/hiero/sdk/StatusTest.java index cc44244e1b..bba023fef7 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/StatusTest.java +++ b/sdk/src/test/java/com/hiero/sdk/StatusTest.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.ResponseCodeEnum; +import com.hiero.sdk.proto.ResponseCodeEnum; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/SystemDeleteTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/SystemDeleteTransactionTest.java similarity index 96% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/SystemDeleteTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/SystemDeleteTransactionTest.java index b65c7dfca0..2ff614207e 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/SystemDeleteTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/SystemDeleteTransactionTest.java @@ -17,16 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody; -import com.hedera.hashgraph.sdk.proto.TimestampSeconds; -import com.hedera.hashgraph.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.SystemDeleteTransactionBody; +import com.hiero.sdk.proto.TimestampSeconds; +import com.hiero.sdk.proto.TransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import java.time.Instant; diff --git a/sdk/src/test/java/com/hiero/sdk/SystemDeleteTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/SystemDeleteTransactionTest.snap new file mode 100644 index 0000000000..c0ea93ae92 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/SystemDeleteTransactionTest.snap @@ -0,0 +1,8 @@ +com.hiero.sdk.SystemDeleteTransactionTest.shouldSerializeContract=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\nsystem_delete {\n contract_i_d {\n contract_num: 444\n realm_num: 0\n shard_num: 0\n }\n expiration_time {\n seconds: 1554158542\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] + + +com.hiero.sdk.SystemDeleteTransactionTest.shouldSerializeFile=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\nsystem_delete {\n expiration_time {\n seconds: 1554158542\n }\n file_i_d {\n file_num: 444\n realm_num: 0\n shard_num: 0\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/SystemUndeleteTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/SystemUndeleteTransactionTest.java similarity index 95% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/SystemUndeleteTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/SystemUndeleteTransactionTest.java index 965d07aef0..a7ff89fed9 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/SystemUndeleteTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/SystemUndeleteTransactionTest.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.SystemUndeleteTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.SystemUndeleteTransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/SystemUndeleteTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/SystemUndeleteTransactionTest.snap new file mode 100644 index 0000000000..a07e93154e --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/SystemUndeleteTransactionTest.snap @@ -0,0 +1,8 @@ +com.hiero.sdk.SystemUndeleteTransactionTest.shouldSerializeContract=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\nsystem_undelete {\n contract_i_d {\n contract_num: 444\n realm_num: 0\n shard_num: 0\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] + + +com.hiero.sdk.SystemUndeleteTransactionTest.shouldSerializeFile=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\nsystem_undelete {\n file_i_d {\n file_num: 444\n realm_num: 0\n shard_num: 0\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TestResponse.java b/sdk/src/test/java/com/hiero/sdk/TestResponse.java similarity index 91% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TestResponse.java rename to sdk/src/test/java/com/hiero/sdk/TestResponse.java index 7dadb11075..87061c40e3 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TestResponse.java +++ b/sdk/src/test/java/com/hiero/sdk/TestResponse.java @@ -17,12 +17,12 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.Response; -import com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse; -import com.hedera.hashgraph.sdk.proto.TransactionReceipt; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.Response; +import com.hiero.sdk.proto.TransactionGetReceiptResponse; +import com.hiero.sdk.proto.TransactionReceipt; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.StatusRuntimeException; import javax.annotation.Nullable; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TestServer.java b/sdk/src/test/java/com/hiero/sdk/TestServer.java similarity index 98% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TestServer.java rename to sdk/src/test/java/com/hiero/sdk/TestServer.java index 62bbaefe49..fbe4686544 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TestServer.java +++ b/sdk/src/test/java/com/hiero/sdk/TestServer.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import io.grpc.BindableService; import io.grpc.Server; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TestService.java b/sdk/src/test/java/com/hiero/sdk/TestService.java similarity index 92% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TestService.java rename to sdk/src/test/java/com/hiero/sdk/TestService.java index 7b12d5e66b..74a06b5ebd 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TestService.java +++ b/sdk/src/test/java/com/hiero/sdk/TestService.java @@ -17,12 +17,12 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.Query; -import com.hedera.hashgraph.sdk.proto.Response; -import com.hedera.hashgraph.sdk.proto.Transaction; -import com.hedera.hashgraph.sdk.proto.TransactionResponse; +import com.hiero.sdk.proto.Query; +import com.hiero.sdk.proto.Response; +import com.hiero.sdk.proto.Transaction; +import com.hiero.sdk.proto.TransactionResponse; import io.grpc.StatusRuntimeException; import io.grpc.stub.StreamObserver; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAirdropTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/TokenAirdropTransactionTest.java similarity index 97% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAirdropTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenAirdropTransactionTest.java index e0708b9375..d674796ad3 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAirdropTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenAirdropTransactionTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatExceptionOfType; @@ -25,9 +25,9 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenAirdropTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenServiceGrpc; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenAirdropTransactionBody; +import com.hiero.sdk.proto.TokenServiceGrpc; import io.github.jsonSnapshot.SnapshotMatcher; import java.time.Instant; import java.util.Arrays; diff --git a/sdk/src/test/java/com/hiero/sdk/TokenAirdropTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/TokenAirdropTransactionTest.snap new file mode 100644 index 0000000000..e929d51f35 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TokenAirdropTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.TokenAirdropTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_airdrop {\n token_transfers {\n nft_transfers {\n receiver_account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n sender_account_i_d {\n account_num: 5007\n realm_num: 0\n shard_num: 0\n }\n serial_number: 4\n }\n token {\n realm_num: 0\n shard_num: 0\n token_num: 2\n }\n }\n token_transfers {\n nft_transfers {\n receiver_account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n sender_account_i_d {\n account_num: 5007\n realm_num: 0\n shard_num: 0\n }\n serial_number: 4\n }\n nft_transfers {\n receiver_account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n sender_account_i_d {\n account_num: 5008\n realm_num: 0\n shard_num: 0\n }\n serial_number: 3\n }\n nft_transfers {\n receiver_account_i_d {\n account_num: 5007\n realm_num: 0\n shard_num: 0\n }\n sender_account_i_d {\n account_num: 5008\n realm_num: 0\n shard_num: 0\n }\n serial_number: 1\n }\n nft_transfers {\n receiver_account_i_d {\n account_num: 5007\n realm_num: 0\n shard_num: 0\n }\n sender_account_i_d {\n account_num: 5008\n realm_num: 0\n shard_num: 0\n }\n serial_number: 2\n }\n token {\n realm_num: 0\n shard_num: 0\n token_num: 3\n }\n }\n token_transfers {\n nft_transfers {\n is_approval: true\n receiver_account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n sender_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n }\n serial_number: 4\n }\n token {\n realm_num: 0\n shard_num: 0\n token_num: 4\n }\n transfers {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n amount: -1\n }\n transfers {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n amount: 123\n is_approval: true\n }\n transfers {\n account_i_d {\n account_num: 5008\n realm_num: 0\n shard_num: 0\n }\n amount: 1\n }\n }\n token_transfers {\n expected_decimals {\n value: 3\n }\n token {\n realm_num: 0\n shard_num: 0\n token_num: 5\n }\n transfers {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n amount: -800\n }\n transfers {\n account_i_d {\n account_num: 5007\n realm_num: 0\n shard_num: 0\n }\n amount: 400\n }\n transfers {\n account_i_d {\n account_num: 5008\n realm_num: 0\n shard_num: 0\n }\n amount: 400\n }\n }\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAllowanceTest.java b/sdk/src/test/java/com/hiero/sdk/TokenAllowanceTest.java similarity index 98% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAllowanceTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenAllowanceTest.java index 9a38876103..11894cead4 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAllowanceTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenAllowanceTest.java @@ -1,4 +1,4 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import org.junit.jupiter.api.Test; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAssociateTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/TokenAssociateTransactionTest.java similarity index 95% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAssociateTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenAssociateTransactionTest.java index ae14c42001..6855adcd65 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAssociateTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenAssociateTransactionTest.java @@ -17,11 +17,11 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenAssociateTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenAssociateTransactionBody; +import com.hiero.sdk.proto.TransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/TokenAssociateTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/TokenAssociateTransactionTest.snap new file mode 100644 index 0000000000..6ea2349de8 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TokenAssociateTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.TokenAssociateTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_associate {\n account {\n account_num: 222\n realm_num: 0\n shard_num: 0\n }\n tokens {\n realm_num: 0\n shard_num: 0\n token_num: 666\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAssociationTest.java b/sdk/src/test/java/com/hiero/sdk/TokenAssociationTest.java similarity index 99% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAssociationTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenAssociationTest.java index d2adbfee70..363d790621 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAssociationTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenAssociationTest.java @@ -1,4 +1,4 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; import io.github.jsonSnapshot.SnapshotMatcher; diff --git a/sdk/src/test/java/com/hiero/sdk/TokenAssociationTest.snap b/sdk/src/test/java/com/hiero/sdk/TokenAssociationTest.snap new file mode 100644 index 0000000000..dcb4715ca5 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TokenAssociationTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.TokenAssociationTest.shouldSerializeAccount=[ + "TokenAssociation{tokenId=1.2.3, accountId=4.5.6}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenBurnTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/TokenBurnTransactionTest.java similarity index 96% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenBurnTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenBurnTransactionTest.java index 300972dec1..968416963e 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenBurnTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenBurnTransactionTest.java @@ -17,11 +17,11 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenBurnTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenBurnTransactionBody; +import com.hiero.sdk.proto.TransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/TokenBurnTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/TokenBurnTransactionTest.snap new file mode 100644 index 0000000000..afdec5cce2 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TokenBurnTransactionTest.snap @@ -0,0 +1,8 @@ +com.hiero.sdk.TokenBurnTransactionTest.shouldSerializeFungible=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_burn {\n amount: 69\n token {\n realm_num: 2\n shard_num: 4\n token_num: 0\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] + + +com.hiero.sdk.TokenBurnTransactionTest.shouldSerializeNft=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_burn {\n amount: 0\n serial_numbers: 420\n token {\n realm_num: 2\n shard_num: 4\n token_num: 0\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenCancelAirdropTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/TokenCancelAirdropTransactionTest.java similarity index 95% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenCancelAirdropTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenCancelAirdropTransactionTest.java index 548e0b5e6d..e5b95ac05d 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenCancelAirdropTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenCancelAirdropTransactionTest.java @@ -17,12 +17,12 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenServiceGrpc; -import com.hedera.hashgraph.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenCancelAirdropTransactionBody; +import com.hiero.sdk.proto.TokenServiceGrpc; +import com.hiero.sdk.proto.TransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import java.time.Instant; import java.util.ArrayList; diff --git a/sdk/src/test/java/com/hiero/sdk/TokenCancelAirdropTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/TokenCancelAirdropTransactionTest.snap new file mode 100644 index 0000000000..03cd3aea82 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TokenCancelAirdropTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.TokenCancelAirdropTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_cancel_airdrop {\n pending_airdrops {\n fungible_token_type {\n realm_num: 0\n shard_num: 0\n token_num: 123\n }\n receiver_id {\n account_num: 456\n realm_num: 0\n shard_num: 0\n }\n sender_id {\n account_num: 457\n realm_num: 0\n shard_num: 0\n }\n }\n pending_airdrops {\n non_fungible_token {\n serial_number: 123\n token_i_d {\n realm_num: 0\n shard_num: 0\n token_num: 1234\n }\n }\n receiver_id {\n account_num: 456\n realm_num: 0\n shard_num: 0\n }\n sender_id {\n account_num: 457\n realm_num: 0\n shard_num: 0\n }\n }\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenClaimAirdropTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/TokenClaimAirdropTransactionTest.java similarity index 95% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenClaimAirdropTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenClaimAirdropTransactionTest.java index 7445670a4a..c7cc0453fa 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenClaimAirdropTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenClaimAirdropTransactionTest.java @@ -17,12 +17,12 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenClaimAirdropTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenServiceGrpc; -import com.hedera.hashgraph.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenClaimAirdropTransactionBody; +import com.hiero.sdk.proto.TokenServiceGrpc; +import com.hiero.sdk.proto.TransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import java.time.Instant; import java.util.ArrayList; diff --git a/sdk/src/test/java/com/hiero/sdk/TokenClaimAirdropTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/TokenClaimAirdropTransactionTest.snap new file mode 100644 index 0000000000..4d1e4ebf65 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TokenClaimAirdropTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.TokenClaimAirdropTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_claim_airdrop {\n pending_airdrops {\n fungible_token_type {\n realm_num: 0\n shard_num: 0\n token_num: 123\n }\n receiver_id {\n account_num: 456\n realm_num: 0\n shard_num: 0\n }\n sender_id {\n account_num: 457\n realm_num: 0\n shard_num: 0\n }\n }\n pending_airdrops {\n non_fungible_token {\n serial_number: 123\n token_i_d {\n realm_num: 0\n shard_num: 0\n token_num: 1234\n }\n }\n receiver_id {\n account_num: 456\n realm_num: 0\n shard_num: 0\n }\n sender_id {\n account_num: 457\n realm_num: 0\n shard_num: 0\n }\n }\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenCreateTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/TokenCreateTransactionTest.java similarity index 97% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenCreateTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenCreateTransactionTest.java index 286c7ea46e..5851239c3a 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenCreateTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenCreateTransactionTest.java @@ -17,17 +17,17 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.jupiter.api.Assertions.assertThrows; import com.google.common.collect.Iterables; import com.google.protobuf.ByteString; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.Timestamp; -import com.hedera.hashgraph.sdk.proto.TokenCreateTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.Timestamp; +import com.hiero.sdk.proto.TokenCreateTransactionBody; +import com.hiero.sdk.proto.TransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import java.time.Duration; import java.time.Instant; @@ -160,7 +160,7 @@ void constructTokenCreateTransactionFungibleFromTransactionBodyProtobuf() { .setFeeScheduleKey(testFeeScheduleKey.toProtobufKey()).setSupplyKey(testSupplyKey.toProtobufKey()) .setAdminKey(testAdminKey.toProtobufKey()).setAutoRenewAccount(testAutoRenewAccountId.toProtobuf()) .setAutoRenewPeriod( - com.hedera.hashgraph.sdk.proto.Duration.newBuilder().setSeconds(testAutoRenewPeriod.toSeconds()) + com.hiero.sdk.proto.Duration.newBuilder().setSeconds(testAutoRenewPeriod.toSeconds()) .build()).setExpiry(Timestamp.newBuilder().setSeconds(testExpirationTime.getEpochSecond()).build()) .setDecimals(testDecimals).setFreezeDefault(testFreezeDefault).setFreezeKey(testFreezeKey.toProtobufKey()) .setWipeKey(testWipeKey.toProtobufKey()).setSymbol(testTokenSymbol).setKycKey(testKycKey.toProtobufKey()) @@ -203,10 +203,10 @@ void constructTokenCreateTransactionNftFromTransactionBodyProtobuf() { .setFeeScheduleKey(testFeeScheduleKey.toProtobufKey()).setSupplyKey(testSupplyKey.toProtobufKey()) .setMaxSupply(testMaxSupply).setAdminKey(testAdminKey.toProtobufKey()) .setAutoRenewAccount(testAutoRenewAccountId.toProtobuf()).setAutoRenewPeriod( - com.hedera.hashgraph.sdk.proto.Duration.newBuilder().setSeconds(testAutoRenewPeriod.toSeconds()) + com.hiero.sdk.proto.Duration.newBuilder().setSeconds(testAutoRenewPeriod.toSeconds()) .build()).setExpiry(Timestamp.newBuilder().setSeconds(testExpirationTime.getEpochSecond()).build()) - .setTokenType(com.hedera.hashgraph.sdk.proto.TokenType.NON_FUNGIBLE_UNIQUE) - .setSupplyType(com.hedera.hashgraph.sdk.proto.TokenSupplyType.FINITE) + .setTokenType(com.hiero.sdk.proto.TokenType.NON_FUNGIBLE_UNIQUE) + .setSupplyType(com.hiero.sdk.proto.TokenSupplyType.FINITE) .setFreezeKey(testFreezeKey.toProtobufKey()).setWipeKey(testWipeKey.toProtobufKey()) .setSymbol(testTokenSymbol).setKycKey(testKycKey.toProtobufKey()).setPauseKey(testPauseKey.toProtobufKey()) .setMetadataKey(testMetadataKey.toProtobufKey()) diff --git a/sdk/src/test/java/com/hiero/sdk/TokenCreateTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/TokenCreateTransactionTest.snap new file mode 100644 index 0000000000..8ff80fb208 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TokenCreateTransactionTest.snap @@ -0,0 +1,8 @@ +com.hiero.sdk.TokenCreateTransactionTest.shouldSerializeFungible=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_creation {\n admin_key {\n ed25519: \"\\332\\207p\\020\\227\\206ns\\360\\335\\224,\\273>\\227\\0063)\\371\\005X\\206!\\261x\\322\\027Yh\\215G\\374\"\n }\n auto_renew_account {\n account_num: 8\n realm_num: 8\n shard_num: 8\n }\n custom_fees {\n fee_collector_account_id {\n account_num: 543\n realm_num: 0\n shard_num: 0\n }\n fixed_fee {\n amount: 3\n denominating_token_id {\n realm_num: 3\n shard_num: 4\n token_num: 2\n }\n }\n }\n decimals: 3\n expiry {\n seconds: 1554158542\n }\n fee_schedule_key {\n ed25519: \"K\\276\\225\\250m$\\370\\371gs\\261(&\\374\\276\\000\\226\\210\\313\\r\\312\\210\\317\\361\\027\\243\\250\\257P\\303q\\023\"\n }\n freeze_default: true\n freeze_key {\n ed25519: \"=\\355S\\343\\\"3S/=\\204b2L\\321\\023\\253\\276Os!m\\360mT\\241\\034\\266\\221\\301[\\'\\315\"\n }\n initial_supply: 30\n kyc_key {\n ed25519: \"\\373\\210\\2637\\337\\327ea{\\3442*\\347\\357\\2053\\326\\036d\\203\\005\\016 \\354HE\\2453\\275\\334\\244\\261\"\n }\n max_supply: 0\n memo: \"test memo\"\n metadata: \"\\001\\002\\003\\004\\005\"\n metadata_key {\n ed25519: \"\\024m\\354\\2222\\nnF\\353\\032Cv{\\261\\354\\225\\242\\346\\300%\\032\\260\\335x\\017\\343tt\\324\\272\\304\\025\"\n }\n name: \"test name\"\n pause_key {\n ed25519: \"\\321he\\251\\214\\370\\260\\267\\370\\3727v\\262\\r\\257\\305\\276\\004\\377\\353\\232$\\227r\\a\\203\\316\\231\\036+\\031t\"\n }\n supply_key {\n ed25519: \";\\2218S\\257\\245\\233U\\253\\305\\201\\302\\254\\r6X\\n\\302\\354\\244\\275\\020\\034\\002\\027?\\357\\002\\346w\\335\\325\"\n }\n symbol: \"test symbol\"\n treasury {\n account_num: 7\n realm_num: 7\n shard_num: 7\n }\n wipe_key {\n ed25519: \"R[\\234\\025_\\220+\\221-\\275\\201\\276\\246\\324:\\a}zb\\335\\037\\357\\317\\307}\\351aD\\325\\372\\303\\356\"\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] + + +com.hiero.sdk.TokenCreateTransactionTest.shouldSerializeNft=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_creation {\n admin_key {\n ed25519: \"\\332\\207p\\020\\227\\206ns\\360\\335\\224,\\273>\\227\\0063)\\371\\005X\\206!\\261x\\322\\027Yh\\215G\\374\"\n }\n auto_renew_account {\n account_num: 8\n realm_num: 8\n shard_num: 8\n }\n expiry {\n seconds: 1554158542\n }\n fee_schedule_key {\n ed25519: \"K\\276\\225\\250m$\\370\\371gs\\261(&\\374\\276\\000\\226\\210\\313\\r\\312\\210\\317\\361\\027\\243\\250\\257P\\303q\\023\"\n }\n freeze_key {\n ed25519: \"=\\355S\\343\\\"3S/=\\204b2L\\321\\023\\253\\276Os!m\\360mT\\241\\034\\266\\221\\301[\\'\\315\"\n }\n initial_supply: 0\n kyc_key {\n ed25519: \"\\373\\210\\2637\\337\\327ea{\\3442*\\347\\357\\2053\\326\\036d\\203\\005\\016 \\354HE\\2453\\275\\334\\244\\261\"\n }\n max_supply: 500\n memo: \"test memo\"\n metadata: \"\\001\\002\\003\\004\\005\"\n metadata_key {\n ed25519: \"\\024m\\354\\2222\\nnF\\353\\032Cv{\\261\\354\\225\\242\\346\\300%\\032\\260\\335x\\017\\343tt\\324\\272\\304\\025\"\n }\n name: \"test name\"\n pause_key {\n ed25519: \"\\321he\\251\\214\\370\\260\\267\\370\\3727v\\262\\r\\257\\305\\276\\004\\377\\353\\232$\\227r\\a\\203\\316\\231\\036+\\031t\"\n }\n supply_key {\n ed25519: \";\\2218S\\257\\245\\233U\\253\\305\\201\\302\\254\\r6X\\n\\302\\354\\244\\275\\020\\034\\002\\027?\\357\\002\\346w\\335\\325\"\n }\n supply_type: FINITE\n supply_type_value: 1\n symbol: \"test symbol\"\n token_type: NON_FUNGIBLE_UNIQUE\n token_type_value: 1\n treasury {\n account_num: 7\n realm_num: 7\n shard_num: 7\n }\n wipe_key {\n ed25519: \"R[\\234\\025_\\220+\\221-\\275\\201\\276\\246\\324:\\a}zb\\335\\037\\357\\317\\307}\\351aD\\325\\372\\303\\356\"\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenDeleteTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/TokenDeleteTransactionTest.java similarity index 94% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenDeleteTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenDeleteTransactionTest.java index e58b2d0531..53fc70ad53 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenDeleteTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenDeleteTransactionTest.java @@ -17,11 +17,11 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenDeleteTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenDeleteTransactionBody; +import com.hiero.sdk.proto.TransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/TokenDeleteTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/TokenDeleteTransactionTest.snap new file mode 100644 index 0000000000..8de52185d9 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TokenDeleteTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.TokenDeleteTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_deletion {\n token {\n realm_num: 2\n shard_num: 1\n token_num: 3\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenDissociateTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/TokenDissociateTransactionTest.java similarity index 95% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenDissociateTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenDissociateTransactionTest.java index 9635c3dfe3..3e33bbbc37 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenDissociateTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenDissociateTransactionTest.java @@ -17,11 +17,11 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenDissociateTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenDissociateTransactionBody; +import com.hiero.sdk.proto.TransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/TokenDissociateTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/TokenDissociateTransactionTest.snap new file mode 100644 index 0000000000..cf7c1596d7 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TokenDissociateTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.TokenDissociateTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_dissociate {\n account {\n account_num: 0\n realm_num: 9\n shard_num: 6\n }\n tokens {\n realm_num: 2\n shard_num: 4\n token_num: 0\n }\n tokens {\n realm_num: 2\n shard_num: 4\n token_num: 1\n }\n tokens {\n realm_num: 2\n shard_num: 4\n token_num: 2\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenFeeScheduleUpdateTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/TokenFeeScheduleUpdateTransactionTest.java similarity index 94% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenFeeScheduleUpdateTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenFeeScheduleUpdateTransactionTest.java index b7e2bea705..4dd02fee58 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenFeeScheduleUpdateTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenFeeScheduleUpdateTransactionTest.java @@ -17,11 +17,11 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenFeeScheduleUpdateTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenFeeScheduleUpdateTransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/TokenFeeScheduleUpdateTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/TokenFeeScheduleUpdateTransactionTest.snap new file mode 100644 index 0000000000..9a65ab46d8 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TokenFeeScheduleUpdateTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.TokenFeeScheduleUpdateTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_fee_schedule_update {\n custom_fees {\n fee_collector_account_id {\n account_num: 4322\n realm_num: 0\n shard_num: 0\n }\n fixed_fee {\n amount: 10\n denominating_token_id {\n realm_num: 0\n shard_num: 0\n token_num: 483902\n }\n }\n }\n custom_fees {\n fee_collector_account_id {\n account_num: 389042\n realm_num: 0\n shard_num: 0\n }\n fractional_fee {\n fractional_amount {\n denominator: 7\n numerator: 3\n }\n maximum_amount: 100\n minimum_amount: 3\n net_of_transfers: true\n }\n }\n token_id {\n realm_num: 0\n shard_num: 0\n token_num: 8798\n }\n}\ntransaction_fee: 200000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenFreezeTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/TokenFreezeTransactionTest.java similarity index 94% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenFreezeTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenFreezeTransactionTest.java index 017d6cfb2a..0978799eb1 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenFreezeTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenFreezeTransactionTest.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenFreezeAccountTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenFreezeAccountTransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/TokenFreezeTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/TokenFreezeTransactionTest.snap new file mode 100644 index 0000000000..afa0e2a6b3 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TokenFreezeTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.TokenFreezeTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_freeze {\n account {\n account_num: 222\n realm_num: 0\n shard_num: 0\n }\n token {\n realm_num: 5\n shard_num: 6\n token_num: 4\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenGrantKycTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/TokenGrantKycTransactionTest.java similarity index 94% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenGrantKycTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenGrantKycTransactionTest.java index d912ca40a0..0aa87ef2dd 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenGrantKycTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenGrantKycTransactionTest.java @@ -17,11 +17,11 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenGrantKycTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenGrantKycTransactionBody; +import com.hiero.sdk.proto.TransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/TokenGrantKycTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/TokenGrantKycTransactionTest.snap new file mode 100644 index 0000000000..d9dc6b4c4a --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TokenGrantKycTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.TokenGrantKycTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_grant_kyc {\n account {\n account_num: 0\n realm_num: 9\n shard_num: 6\n }\n token {\n realm_num: 2\n shard_num: 4\n token_num: 0\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenInfoQueryTest.java b/sdk/src/test/java/com/hiero/sdk/TokenInfoQueryTest.java similarity index 91% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenInfoQueryTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenInfoQueryTest.java index 5579b4e359..bdb00d1fdf 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenInfoQueryTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenInfoQueryTest.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.QueryHeader; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; @@ -42,7 +42,7 @@ public static void afterAll() { @Test void shouldSerialize() { - var builder = com.hedera.hashgraph.sdk.proto.Query.newBuilder(); + var builder = com.hiero.sdk.proto.Query.newBuilder(); new TokenInfoQuery().setTokenId(testTokenId).setMaxQueryPayment(Hbar.fromTinybars(100_000)) .onMakeRequest(builder, QueryHeader.newBuilder().build()); SnapshotMatcher.expect(builder.build().toString().replaceAll("@[A-Za-z0-9]+", "")).toMatchSnapshot(); diff --git a/sdk/src/test/java/com/hiero/sdk/TokenInfoQueryTest.snap b/sdk/src/test/java/com/hiero/sdk/TokenInfoQueryTest.snap new file mode 100644 index 0000000000..b542f14a69 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TokenInfoQueryTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.TokenInfoQueryTest.shouldSerialize=[ + "# com.hiero.sdk.proto.Query\ntoken_get_info {\n header {\n }\n token {\n realm_num: 2\n shard_num: 4\n token_num: 0\n }\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenInfoTest.java b/sdk/src/test/java/com/hiero/sdk/TokenInfoTest.java similarity index 98% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenInfoTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenInfoTest.java index 6e0dfa52fc..2729528703 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenInfoTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenInfoTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; import io.github.jsonSnapshot.SnapshotMatcher; @@ -232,9 +232,9 @@ void toProtobuf() { testExpirationTime.getEpochSecond()); assertThat(tokenInfoProto.getTokenInfo().getMemo()).isEqualTo(testTokenMemo); assertThat(tokenInfoProto.getTokenInfo().getTokenType()).isEqualTo( - com.hedera.hashgraph.sdk.proto.TokenType.valueOf(testTokenType.name())); + com.hiero.sdk.proto.TokenType.valueOf(testTokenType.name())); assertThat(tokenInfoProto.getTokenInfo().getSupplyType()).isEqualTo( - com.hedera.hashgraph.sdk.proto.TokenSupplyType.valueOf(testTokenSupplyType.name())); + com.hiero.sdk.proto.TokenSupplyType.valueOf(testTokenSupplyType.name())); assertThat(tokenInfoProto.getTokenInfo().getMaxSupply()).isEqualTo(testTokenMaxSupply); assertThat(tokenInfoProto.getTokenInfo().getFeeScheduleKey().getEd25519().toByteArray()).isEqualTo( testFeeScheduleKey.toBytesRaw()); diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenInfoTest.snap b/sdk/src/test/java/com/hiero/sdk/TokenInfoTest.snap similarity index 96% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenInfoTest.snap rename to sdk/src/test/java/com/hiero/sdk/TokenInfoTest.snap index 6ad928bd08..904d2c4049 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenInfoTest.snap +++ b/sdk/src/test/java/com/hiero/sdk/TokenInfoTest.snap @@ -1,3 +1,3 @@ -com.hedera.hashgraph.sdk.TokenInfoTest.shouldSerialize=[ +com.hiero.sdk.TokenInfoTest.shouldSerialize=[ "TokenInfo{tokenId=0.6.9, name=test token name, symbol=TTN, decimals=3, totalSupply=1000, treasuryAccountId=7.7.7, adminKey=302a300506032b6570032100da87701097866e73f0dd942cbb3e97063329f905588621b178d21759688d47fc, kycKey=302a300506032b6570032100fb88b337dfd765617be4322ae7ef8533d61e6483050e20ec4845a533bddca4b1, freezeKey=302a300506032b65700321003ded53e32233532f3d8462324cd113abbe4f73216df06d54a11cb691c15b27cd, wipeKey=302a300506032b6570032100525b9c155f902b912dbd81bea6d43a077d7a62dd1fefcfc77de96144d5fac3ee, supplyKey=302a300506032b65700321003b913853afa59b55abc581c2ac0d36580ac2eca4bd101c02173fef02e677ddd5, feeScheduleKey=302a300506032b65700321004bbe95a86d24f8f96773b12826fcbe009688cb0dca88cff117a3a8af50c37113, defaultFreezeStatus=true, defaultKycStatus=true, isDeleted=false, autoRenewAccount=8.9.0, autoRenewPeriod=PT10H, expirationTime=2019-04-01T22:42:22Z, tokenMemo=memo, customFees=[CustomFixedFee{feeCollectorAccountId=0.0.4322, allCollectorsAreExempt=false, amount=10, demoninatingTokenId=0.0.483902}, CustomFractionalFee{feeCollectorAccountId=0.0.389042, allCollectorsAreExempt=false, numerator=3, denominator=7, min=3, max=100, assessmentMethod=INCLUSIVE}], tokenType=FUNGIBLE_COMMON, supplyType=FINITE, maxSupply=1000000, pauseKey=302a300506032b6570032100d16865a98cf8b0b7f8fa3776b20dafc5be04ffeb9a2497720783ce991e2b1974, pauseStatus=true, metadata=[1, 2, 3, 4, 5], metadataKey=302a300506032b6570032100146dec92320a6e46eb1a43767bb1ec95a2e6c0251ab0dd780fe37474d4bac415, ledgerId=mainnet}" ] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenMintTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/TokenMintTransactionTest.java similarity index 96% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenMintTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenMintTransactionTest.java index fe20d79cd2..923ddd6bb5 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenMintTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenMintTransactionTest.java @@ -1,10 +1,10 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.collect.Iterables; import com.google.protobuf.ByteString; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenMintTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenMintTransactionBody; +import com.hiero.sdk.proto.TransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/TokenMintTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/TokenMintTransactionTest.snap new file mode 100644 index 0000000000..35a7a1c651 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TokenMintTransactionTest.snap @@ -0,0 +1,8 @@ +com.hiero.sdk.TokenMintTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_mint {\n amount: 10\n token {\n realm_num: 2\n shard_num: 4\n token_num: 0\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] + + +com.hiero.sdk.TokenMintTransactionTest.shouldSerializeMetadata=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_mint {\n amount: 0\n metadata: \"\\001\\002\\003\\004\\005\"\n token {\n realm_num: 2\n shard_num: 1\n token_num: 3\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenNftInfoQueryTest.java b/sdk/src/test/java/com/hiero/sdk/TokenNftInfoQueryTest.java similarity index 90% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenNftInfoQueryTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenNftInfoQueryTest.java index d3910563ed..44bfb02a85 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenNftInfoQueryTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenNftInfoQueryTest.java @@ -1,6 +1,6 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.QueryHeader; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; @@ -21,7 +21,7 @@ public static void afterAll() { @Test void shouldSerialize() { - var builder = com.hedera.hashgraph.sdk.proto.Query.newBuilder(); + var builder = com.hiero.sdk.proto.Query.newBuilder(); new TokenNftInfoQuery() .setNftId(TokenId.fromString("0.0.5005").nft(101)) .setMaxQueryPayment(Hbar.fromTinybars(100_000)) diff --git a/sdk/src/test/java/com/hiero/sdk/TokenNftInfoQueryTest.snap b/sdk/src/test/java/com/hiero/sdk/TokenNftInfoQueryTest.snap new file mode 100644 index 0000000000..85148c5795 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TokenNftInfoQueryTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.TokenNftInfoQueryTest.shouldSerialize=[ + "# com.hiero.sdk.proto.Query\ntoken_get_nft_info {\n header {\n }\n nft_i_d {\n serial_number: 101\n token_i_d {\n realm_num: 0\n shard_num: 0\n token_num: 5005\n }\n }\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenNftInfoTest.java b/sdk/src/test/java/com/hiero/sdk/TokenNftInfoTest.java similarity index 98% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenNftInfoTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenNftInfoTest.java index 4d290be154..901443f8f9 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenNftInfoTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenNftInfoTest.java @@ -1,4 +1,4 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import io.github.jsonSnapshot.SnapshotMatcher; import org.bouncycastle.util.encoders.Hex; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenNftInfoTest.snap b/sdk/src/test/java/com/hiero/sdk/TokenNftInfoTest.snap similarity index 70% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenNftInfoTest.snap rename to sdk/src/test/java/com/hiero/sdk/TokenNftInfoTest.snap index 4b4007c092..ff92edc2a1 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenNftInfoTest.snap +++ b/sdk/src/test/java/com/hiero/sdk/TokenNftInfoTest.snap @@ -1,8 +1,8 @@ -com.hedera.hashgraph.sdk.TokenNftInfoTest.shouldSerialize=[ +com.hiero.sdk.TokenNftInfoTest.shouldSerialize=[ "TokenNftInfo{nftId=1.2.3/4, accountId=5.6.7, creationTime=2019-04-01T22:42:22Z, metadata=[-34, -83, -66, -17], ledgerId=mainnet, spenderId=8.9.10}" ] -com.hedera.hashgraph.sdk.TokenNftInfoTest.shouldSerializeNullSpender=[ +com.hiero.sdk.TokenNftInfoTest.shouldSerializeNullSpender=[ "TokenNftInfo{nftId=1.2.3/4, accountId=5.6.7, creationTime=2019-04-01T22:42:22Z, metadata=[-34, -83, -66, -17], ledgerId=mainnet, spenderId=null}" ] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenPauseTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/TokenPauseTransactionTest.java similarity index 94% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenPauseTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenPauseTransactionTest.java index 8afd61f516..98aee39720 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenPauseTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenPauseTransactionTest.java @@ -17,11 +17,11 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenPauseTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenPauseTransactionBody; +import com.hiero.sdk.proto.TransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/TokenPauseTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/TokenPauseTransactionTest.snap new file mode 100644 index 0000000000..6520861ed5 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TokenPauseTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.TokenPauseTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_pause {\n token {\n realm_num: 2\n shard_num: 4\n token_num: 0\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRejectTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/TokenRejectTransactionTest.java similarity index 95% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRejectTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenRejectTransactionTest.java index 6ca229b6f0..e4406e50af 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRejectTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenRejectTransactionTest.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.jupiter.api.Assertions.assertThrows; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenReference; -import com.hedera.hashgraph.sdk.proto.TokenRejectTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenReference; +import com.hiero.sdk.proto.TokenRejectTransactionBody; +import com.hiero.sdk.proto.TransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import java.time.Instant; import java.util.Arrays; diff --git a/sdk/src/test/java/com/hiero/sdk/TokenRejectTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/TokenRejectTransactionTest.snap new file mode 100644 index 0000000000..7bdc6ec768 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TokenRejectTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.TokenRejectTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_reject {\n owner {\n account_num: 9\n realm_num: 6\n shard_num: 0\n }\n rejections {\n fungible_token {\n realm_num: 2\n shard_num: 1\n token_num: 3\n }\n }\n rejections {\n fungible_token {\n realm_num: 5\n shard_num: 4\n token_num: 6\n }\n }\n rejections {\n fungible_token {\n realm_num: 8\n shard_num: 7\n token_num: 9\n }\n }\n rejections {\n nft {\n serial_number: 2\n token_i_d {\n realm_num: 5\n shard_num: 4\n token_num: 6\n }\n }\n }\n rejections {\n nft {\n serial_number: 3\n token_i_d {\n realm_num: 8\n shard_num: 7\n token_num: 9\n }\n }\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRelationshipTest.java b/sdk/src/test/java/com/hiero/sdk/TokenRelationshipTest.java similarity index 97% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRelationshipTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenRelationshipTest.java index a0e202fb5f..82e0e02687 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRelationshipTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenRelationshipTest.java @@ -1,4 +1,4 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRelationshipTest.snap b/sdk/src/test/java/com/hiero/sdk/TokenRelationshipTest.snap similarity index 61% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRelationshipTest.snap rename to sdk/src/test/java/com/hiero/sdk/TokenRelationshipTest.snap index 5334a5510c..8221c009b0 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRelationshipTest.snap +++ b/sdk/src/test/java/com/hiero/sdk/TokenRelationshipTest.snap @@ -1,3 +1,3 @@ -com.hedera.hashgraph.sdk.TokenRelationshipTest.shouldSerializeTokenRelationship=[ +com.hiero.sdk.TokenRelationshipTest.shouldSerializeTokenRelationship=[ "TokenRelationship{tokenId=1.2.3, symbol=ABC, balance=55, kycStatus=true, freezeStatus=true, decimals=4, automaticAssociation=true}" -] \ No newline at end of file +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRevokeKycTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/TokenRevokeKycTransactionTest.java similarity index 94% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRevokeKycTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenRevokeKycTransactionTest.java index e8a270028d..0fccdff241 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRevokeKycTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenRevokeKycTransactionTest.java @@ -17,11 +17,11 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenRevokeKycTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenRevokeKycTransactionBody; +import com.hiero.sdk.proto.TransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/TokenRevokeKycTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/TokenRevokeKycTransactionTest.snap new file mode 100644 index 0000000000..9aee784b32 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TokenRevokeKycTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.TokenRevokeKycTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_revoke_kyc {\n account {\n account_num: 0\n realm_num: 9\n shard_num: 6\n }\n token {\n realm_num: 2\n shard_num: 4\n token_num: 0\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenSupplyTypeTest.java b/sdk/src/test/java/com/hiero/sdk/TokenSupplyTypeTest.java similarity index 57% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenSupplyTypeTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenSupplyTypeTest.java index fbfdf4067a..bcf1964aa8 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenSupplyTypeTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenSupplyTypeTest.java @@ -1,6 +1,6 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.TokenSupplyType; +import com.hiero.sdk.proto.TokenSupplyType; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; @@ -25,22 +25,22 @@ public static void afterAll() { @Test void fromProtobuf() { SnapshotMatcher.expect( - com.hedera.hashgraph.sdk.TokenSupplyType.valueOf(tokenSupplyTypeInfinite).toString(), - com.hedera.hashgraph.sdk.TokenSupplyType.valueOf(tokenSupplyTypeFinite).toString()) + com.hiero.sdk.TokenSupplyType.valueOf(tokenSupplyTypeInfinite).toString(), + com.hiero.sdk.TokenSupplyType.valueOf(tokenSupplyTypeFinite).toString()) .toMatchSnapshot(); } @Test void toProtobuf() { SnapshotMatcher.expect( - com.hedera.hashgraph.sdk.TokenSupplyType.valueOf(tokenSupplyTypeInfinite).toProtobuf(), - com.hedera.hashgraph.sdk.TokenSupplyType.valueOf(tokenSupplyTypeFinite).toProtobuf()) + com.hiero.sdk.TokenSupplyType.valueOf(tokenSupplyTypeInfinite).toProtobuf(), + com.hiero.sdk.TokenSupplyType.valueOf(tokenSupplyTypeFinite).toProtobuf()) .toMatchSnapshot(); } @Test void tokenSupplyTestToString() { - assertThat(com.hedera.hashgraph.sdk.TokenSupplyType.INFINITE).hasToString("INFINITE"); - assertThat(com.hedera.hashgraph.sdk.TokenSupplyType.FINITE).hasToString("FINITE"); + assertThat(com.hiero.sdk.TokenSupplyType.INFINITE).hasToString("INFINITE"); + assertThat(com.hiero.sdk.TokenSupplyType.FINITE).hasToString("FINITE"); } } diff --git a/sdk/src/test/java/com/hiero/sdk/TokenSupplyTypeTest.snap b/sdk/src/test/java/com/hiero/sdk/TokenSupplyTypeTest.snap new file mode 100644 index 0000000000..fcf92cee57 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TokenSupplyTypeTest.snap @@ -0,0 +1,10 @@ +com.hiero.sdk.TokenSupplyTypeTest.fromProtobuf=[ + "INFINITE", + "FINITE" +] + + +com.hiero.sdk.TokenSupplyTypeTest.toProtobuf=[ + "INFINITE", + "FINITE" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenTypeTest.java b/sdk/src/test/java/com/hiero/sdk/TokenTypeTest.java similarity index 75% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenTypeTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenTypeTest.java index dbc37dba6c..19faa8eb70 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenTypeTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenTypeTest.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.TokenType; +import com.hiero.sdk.proto.TokenType; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; @@ -43,16 +43,16 @@ public static void afterAll() { @Test void fromProtobuf() { SnapshotMatcher.expect( - com.hedera.hashgraph.sdk.TokenType.valueOf(tokenTypeFungible).toString(), - com.hedera.hashgraph.sdk.TokenType.valueOf(tokenTypeNonFungible).toString()) + com.hiero.sdk.TokenType.valueOf(tokenTypeFungible).toString(), + com.hiero.sdk.TokenType.valueOf(tokenTypeNonFungible).toString()) .toMatchSnapshot(); } @Test void toProtobuf() { SnapshotMatcher.expect( - com.hedera.hashgraph.sdk.TokenType.valueOf(tokenTypeFungible).toProtobuf(), - com.hedera.hashgraph.sdk.TokenType.valueOf(tokenTypeNonFungible).toProtobuf()) + com.hiero.sdk.TokenType.valueOf(tokenTypeFungible).toProtobuf(), + com.hiero.sdk.TokenType.valueOf(tokenTypeNonFungible).toProtobuf()) .toMatchSnapshot(); } } diff --git a/sdk/src/test/java/com/hiero/sdk/TokenTypeTest.snap b/sdk/src/test/java/com/hiero/sdk/TokenTypeTest.snap new file mode 100644 index 0000000000..97be08a8f8 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TokenTypeTest.snap @@ -0,0 +1,10 @@ +com.hiero.sdk.TokenTypeTest.fromProtobuf=[ + "FUNGIBLE_COMMON", + "NON_FUNGIBLE_UNIQUE" +] + + +com.hiero.sdk.TokenTypeTest.toProtobuf=[ + "FUNGIBLE_COMMON", + "NON_FUNGIBLE_UNIQUE" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUnfreezeTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/TokenUnfreezeTransactionTest.java similarity index 94% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUnfreezeTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenUnfreezeTransactionTest.java index de42e6e290..ad52ac12f4 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUnfreezeTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenUnfreezeTransactionTest.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenUnfreezeAccountTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenUnfreezeAccountTransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/TokenUnfreezeTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/TokenUnfreezeTransactionTest.snap new file mode 100644 index 0000000000..55f4effc6a --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TokenUnfreezeTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.TokenUnfreezeTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_unfreeze {\n account {\n account_num: 222\n realm_num: 0\n shard_num: 0\n }\n token {\n realm_num: 5\n shard_num: 6\n token_num: 4\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUnpauseTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/TokenUnpauseTransactionTest.java similarity index 94% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUnpauseTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenUnpauseTransactionTest.java index a92dbaefeb..eb893c3243 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUnpauseTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenUnpauseTransactionTest.java @@ -17,11 +17,11 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenUnpauseTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenUnpauseTransactionBody; +import com.hiero.sdk.proto.TransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/TokenUnpauseTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/TokenUnpauseTransactionTest.snap new file mode 100644 index 0000000000..58df5430f5 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TokenUnpauseTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.TokenUnpauseTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_unpause {\n token {\n realm_num: 2\n shard_num: 4\n token_num: 0\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUpdateNftsTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/TokenUpdateNftsTransactionTest.java similarity index 95% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUpdateNftsTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenUpdateNftsTransactionTest.java index 16d45e1d09..1bb90dfce3 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUpdateNftsTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenUpdateNftsTransactionTest.java @@ -17,16 +17,16 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.jupiter.api.Assertions.assertThrows; import com.google.protobuf.ByteString; import com.google.protobuf.BytesValue; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenUpdateNftsTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenUpdateNftsTransactionBody; +import com.hiero.sdk.proto.TransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import java.time.Instant; import java.util.Arrays; diff --git a/sdk/src/test/java/com/hiero/sdk/TokenUpdateNftsTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/TokenUpdateNftsTransactionTest.snap new file mode 100644 index 0000000000..50b78973c3 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TokenUpdateNftsTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.TokenUpdateNftsTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_update_nfts {\n metadata {\n value: \"\\001\\002\\003\\004\\005\"\n }\n serial_numbers: 8\n serial_numbers: 9\n serial_numbers: 10\n token {\n realm_num: 2\n shard_num: 4\n token_num: 0\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUpdateTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/TokenUpdateTransactionTest.java similarity index 97% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUpdateTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenUpdateTransactionTest.java index bade583e97..f166452826 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUpdateTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenUpdateTransactionTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.jupiter.api.Assertions.assertThrows; @@ -25,10 +25,10 @@ import com.google.protobuf.ByteString; import com.google.protobuf.BytesValue; import com.google.protobuf.StringValue; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.Timestamp; -import com.hedera.hashgraph.sdk.proto.TokenUpdateTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.Timestamp; +import com.hiero.sdk.proto.TokenUpdateTransactionBody; +import com.hiero.sdk.proto.TransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import java.time.Duration; import java.time.Instant; @@ -129,13 +129,13 @@ void constructTokenUpdateTransactionFromTransactionBodyProtobuf() { .setFreezeKey(testFreezeKey.toProtobufKey()).setWipeKey(testWipeKey.toProtobufKey()) .setSupplyKey(testSupplyKey.toProtobufKey()).setAutoRenewAccount(testAutoRenewAccountId.toProtobuf()) .setAutoRenewPeriod( - com.hedera.hashgraph.sdk.proto.Duration.newBuilder().setSeconds(testAutoRenewPeriod.toSeconds()) + com.hiero.sdk.proto.Duration.newBuilder().setSeconds(testAutoRenewPeriod.toSeconds()) .build()).setExpiry(Timestamp.newBuilder().setSeconds(testExpirationTime.getEpochSecond()).build()) .setMemo(StringValue.newBuilder().setValue(testTokenMemo).build()) .setFeeScheduleKey(testFeeScheduleKey.toProtobufKey()).setPauseKey(testPauseKey.toProtobufKey()) .setMetadataKey(testMetadataKey.toProtobufKey()) .setMetadata(BytesValue.of(ByteString.copyFrom(testMetadata))) - .setKeyVerificationMode(com.hedera.hashgraph.sdk.proto.TokenKeyValidation.NO_VALIDATION).build(); + .setKeyVerificationMode(com.hiero.sdk.proto.TokenKeyValidation.NO_VALIDATION).build(); var tx = TransactionBody.newBuilder().setTokenUpdate(transactionBody).build(); var tokenUpdateTransaction = new TokenUpdateTransaction(tx); diff --git a/sdk/src/test/java/com/hiero/sdk/TokenUpdateTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/TokenUpdateTransactionTest.snap new file mode 100644 index 0000000000..46b4478035 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TokenUpdateTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.TokenUpdateTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_update {\n admin_key {\n ed25519: \"\\332\\207p\\020\\227\\206ns\\360\\335\\224,\\273>\\227\\0063)\\371\\005X\\206!\\261x\\322\\027Yh\\215G\\374\"\n }\n auto_renew_account {\n account_num: 8\n realm_num: 8\n shard_num: 8\n }\n expiry {\n seconds: 1554158542\n }\n fee_schedule_key {\n ed25519: \"K\\276\\225\\250m$\\370\\371gs\\261(&\\374\\276\\000\\226\\210\\313\\r\\312\\210\\317\\361\\027\\243\\250\\257P\\303q\\023\"\n }\n freeze_key {\n ed25519: \"=\\355S\\343\\\"3S/=\\204b2L\\321\\023\\253\\276Os!m\\360mT\\241\\034\\266\\221\\301[\\'\\315\"\n }\n key_verification_mode: NO_VALIDATION\n key_verification_mode_value: 1\n kyc_key {\n ed25519: \"\\373\\210\\2637\\337\\327ea{\\3442*\\347\\357\\2053\\326\\036d\\203\\005\\016 \\354HE\\2453\\275\\334\\244\\261\"\n }\n memo {\n value: \"test memo\"\n }\n metadata {\n value: \"\\001\\002\\003\\004\\005\"\n }\n metadata_key {\n ed25519: \"\\024m\\354\\2222\\nnF\\353\\032Cv{\\261\\354\\225\\242\\346\\300%\\032\\260\\335x\\017\\343tt\\324\\272\\304\\025\"\n }\n name: \"test name\"\n pause_key {\n ed25519: \"\\321he\\251\\214\\370\\260\\267\\370\\3727v\\262\\r\\257\\305\\276\\004\\377\\353\\232$\\227r\\a\\203\\316\\231\\036+\\031t\"\n }\n supply_key {\n ed25519: \";\\2218S\\257\\245\\233U\\253\\305\\201\\302\\254\\r6X\\n\\302\\354\\244\\275\\020\\034\\002\\027?\\357\\002\\346w\\335\\325\"\n }\n symbol: \"test symbol\"\n token {\n realm_num: 2\n shard_num: 4\n token_num: 0\n }\n treasury {\n account_num: 7\n realm_num: 7\n shard_num: 7\n }\n wipe_key {\n ed25519: \"R[\\234\\025_\\220+\\221-\\275\\201\\276\\246\\324:\\a}zb\\335\\037\\357\\317\\307}\\351aD\\325\\372\\303\\356\"\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenWipeTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/TokenWipeTransactionTest.java similarity index 96% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TokenWipeTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/TokenWipeTransactionTest.java index 5fb777400d..e8387c9437 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenWipeTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TokenWipeTransactionTest.java @@ -17,11 +17,11 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TokenWipeAccountTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TokenWipeAccountTransactionBody; +import com.hiero.sdk.proto.TransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/TokenWipeTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/TokenWipeTransactionTest.snap new file mode 100644 index 0000000000..cc62e90c67 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TokenWipeTransactionTest.snap @@ -0,0 +1,8 @@ +com.hiero.sdk.TokenWipeTransactionTest.shouldSerializeFungible=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_wipe {\n account {\n account_num: 9\n realm_num: 6\n shard_num: 0\n }\n amount: 4\n serial_numbers: 8\n serial_numbers: 9\n serial_numbers: 10\n token {\n realm_num: 0\n shard_num: 0\n token_num: 111\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] + + +com.hiero.sdk.TokenWipeTransactionTest.shouldSerializeNft=[ + "# com.hiero.sdk.proto.TransactionBody\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntoken_wipe {\n account {\n account_num: 9\n realm_num: 6\n shard_num: 0\n }\n amount: 0\n serial_numbers: 444\n token {\n realm_num: 0\n shard_num: 0\n token_num: 111\n }\n}\ntransaction_fee: 100000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicCreateTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/TopicCreateTransactionTest.java similarity index 94% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TopicCreateTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/TopicCreateTransactionTest.java index 2528b67d20..2b767a04a9 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicCreateTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TopicCreateTransactionTest.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.ConsensusCreateTopicTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.ConsensusCreateTopicTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/TopicCreateTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/TopicCreateTransactionTest.snap new file mode 100644 index 0000000000..acc2d389fe --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TopicCreateTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.TopicCreateTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nconsensus_create_topic {\n admin_key {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n auto_renew_account {\n account_num: 5007\n realm_num: 0\n shard_num: 0\n }\n auto_renew_period {\n seconds: 86400\n }\n memo: \"hello memo\"\n submit_key {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicDeleteTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/TopicDeleteTransactionTest.java similarity index 93% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TopicDeleteTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/TopicDeleteTransactionTest.java index 964e8a33da..ebe717aa85 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicDeleteTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TopicDeleteTransactionTest.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.ConsensusDeleteTopicTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.ConsensusDeleteTopicTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hiero/sdk/TopicDeleteTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/TopicDeleteTransactionTest.snap new file mode 100644 index 0000000000..aa514810e5 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TopicDeleteTransactionTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.TopicDeleteTransactionTest.shouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nconsensus_delete_topic {\n topic_i_d {\n realm_num: 0\n shard_num: 0\n topic_num: 5007\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 100000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicIdTest.java b/sdk/src/test/java/com/hiero/sdk/TopicIdTest.java similarity index 98% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TopicIdTest.java rename to sdk/src/test/java/com/hiero/sdk/TopicIdTest.java index a2d5df673c..cbd28bb4a7 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicIdTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TopicIdTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; import io.github.jsonSnapshot.SnapshotMatcher; diff --git a/sdk/src/test/java/com/hiero/sdk/TopicIdTest.snap b/sdk/src/test/java/com/hiero/sdk/TopicIdTest.snap new file mode 100644 index 0000000000..5877a59b92 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TopicIdTest.snap @@ -0,0 +1,23 @@ +com.hiero.sdk.TopicIdTest.fromBytes=[ + "0.0.5005" +] + + +com.hiero.sdk.TopicIdTest.fromSolidityAddress=[ + "0.0.5005" +] + + +com.hiero.sdk.TopicIdTest.shouldSerializeFromString=[ + "0.0.5005" +] + + +com.hiero.sdk.TopicIdTest.toBytes=[ + "188d27" +] + + +com.hiero.sdk.TopicIdTest.toSolidityAddress=[ + "000000000000000000000000000000000000138d" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicInfoQueryTest.java b/sdk/src/test/java/com/hiero/sdk/TopicInfoQueryTest.java similarity index 89% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TopicInfoQueryTest.java rename to sdk/src/test/java/com/hiero/sdk/TopicInfoQueryTest.java index 23d2d16421..430fa7fbed 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicInfoQueryTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TopicInfoQueryTest.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.QueryHeader; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; @@ -38,7 +38,7 @@ public static void afterAll() { @Test void shouldSerialize() { - var builder = com.hedera.hashgraph.sdk.proto.Query.newBuilder(); + var builder = com.hiero.sdk.proto.Query.newBuilder(); new TopicInfoQuery() .setTopicId(TopicId.fromString("0.0.5005")) .onMakeRequest(builder, QueryHeader.newBuilder().build()); diff --git a/sdk/src/test/java/com/hiero/sdk/TopicInfoQueryTest.snap b/sdk/src/test/java/com/hiero/sdk/TopicInfoQueryTest.snap new file mode 100644 index 0000000000..ed165ff364 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TopicInfoQueryTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.TopicInfoQueryTest.shouldSerialize=[ + "# com.hiero.sdk.proto.Query\nconsensus_get_topic_info {\n header {\n }\n topic_i_d {\n realm_num: 0\n shard_num: 0\n topic_num: 5005\n }\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicInfoTest.java b/sdk/src/test/java/com/hiero/sdk/TopicInfoTest.java similarity index 94% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TopicInfoTest.java rename to sdk/src/test/java/com/hiero/sdk/TopicInfoTest.java index a75437b51b..59159f6669 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicInfoTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TopicInfoTest.java @@ -17,12 +17,12 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.ConsensusGetTopicInfoResponse; -import com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo; +import com.hiero.sdk.proto.ConsensusGetTopicInfoResponse; +import com.hiero.sdk.proto.ConsensusTopicInfo; import io.github.jsonSnapshot.SnapshotMatcher; import org.bouncycastle.util.encoders.Hex; import org.junit.jupiter.api.AfterAll; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicInfoTest.snap b/sdk/src/test/java/com/hiero/sdk/TopicInfoTest.snap similarity index 50% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TopicInfoTest.snap rename to sdk/src/test/java/com/hiero/sdk/TopicInfoTest.snap index 27fcc2903d..582a7d1d25 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicInfoTest.snap +++ b/sdk/src/test/java/com/hiero/sdk/TopicInfoTest.snap @@ -1,18 +1,18 @@ -com.hedera.hashgraph.sdk.TopicInfoTest.fromBytes=[ +com.hiero.sdk.TopicInfoTest.fromBytes=[ "TopicInfo{topicId=0.0.0, topicMemo=1, runningHash=[2], sequenceNumber=3, expirationTime=1970-01-01T00:00:00.004Z, adminKey=302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7, submitKey=302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7, autoRenewPeriod=PT120H, autoRenewAccountId=0.0.4, ledgerId=testnet}" ] -com.hedera.hashgraph.sdk.TopicInfoTest.fromProtobuf=[ +com.hiero.sdk.TopicInfoTest.fromProtobuf=[ "TopicInfo{topicId=0.0.0, topicMemo=1, runningHash=[2], sequenceNumber=3, expirationTime=1970-01-01T00:00:00.004Z, adminKey=302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7, submitKey=302a300506032b6570032100e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b7, autoRenewPeriod=PT120H, autoRenewAccountId=0.0.4, ledgerId=testnet}" ] -com.hedera.hashgraph.sdk.TopicInfoTest.toBytes=[ +com.hiero.sdk.TopicInfoTest.toBytes=[ "12002a640a013112010218032205108092f4012a221220e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b732221220e0c8ec2758a5879ffac226a13c0c516b799e72e35141a0dd828f94d37988a4b73a040880af1a420218044a0101" ] -com.hedera.hashgraph.sdk.TopicInfoTest.toProtobuf=[ - "# com.hedera.hashgraph.sdk.proto.ConsensusGetTopicInfoResponse@a2d5b392\ntopic_i_d {\n realm_num: 0\n shard_num: 0\n topic_num: 0\n}\ntopic_info {\n admin_key {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n auto_renew_account {\n account_num: 4\n realm_num: 0\n shard_num: 0\n }\n auto_renew_period {\n seconds: 432000\n }\n expiration_time {\n nanos: 4000000\n seconds: 0\n }\n ledger_id: \"\\001\"\n memo: \"1\"\n running_hash: \"\\002\"\n sequence_number: 3\n submit_key {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n}" -] \ No newline at end of file +com.hiero.sdk.TopicInfoTest.toProtobuf=[ + "# com.hiero.sdk.proto.ConsensusGetTopicInfoResponse@a2d5b392\ntopic_i_d {\n realm_num: 0\n shard_num: 0\n topic_num: 0\n}\ntopic_info {\n admin_key {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n auto_renew_account {\n account_num: 4\n realm_num: 0\n shard_num: 0\n }\n auto_renew_period {\n seconds: 432000\n }\n expiration_time {\n nanos: 4000000\n seconds: 0\n }\n ledger_id: \"\\001\"\n memo: \"1\"\n running_hash: \"\\002\"\n sequence_number: 3\n submit_key {\n ed25519: \"\\340\\310\\354\\'X\\245\\207\\237\\372\\302&\\241<\\fQky\\236r\\343QA\\240\\335\\202\\217\\224\\323y\\210\\244\\267\"\n }\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicMessageChunkTest.java b/sdk/src/test/java/com/hiero/sdk/TopicMessageChunkTest.java similarity index 87% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TopicMessageChunkTest.java rename to sdk/src/test/java/com/hiero/sdk/TopicMessageChunkTest.java index 0bb9517ac0..d24fc1aa02 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicMessageChunkTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TopicMessageChunkTest.java @@ -1,9 +1,9 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; -import com.hedera.hashgraph.sdk.proto.ConsensusMessageChunkInfo; -import com.hedera.hashgraph.sdk.proto.Timestamp; -import com.hedera.hashgraph.sdk.proto.mirror.ConsensusTopicResponse; +import com.hiero.sdk.proto.ConsensusMessageChunkInfo; +import com.hiero.sdk.proto.Timestamp; +import com.hiero.sdk.proto.mirror.ConsensusTopicResponse; import org.junit.jupiter.api.Test; import java.time.Instant; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicMessageQueryTest.java b/sdk/src/test/java/com/hiero/sdk/TopicMessageQueryTest.java similarity index 93% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TopicMessageQueryTest.java rename to sdk/src/test/java/com/hiero/sdk/TopicMessageQueryTest.java index 18adba0c17..d2e7048047 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicMessageQueryTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TopicMessageQueryTest.java @@ -17,26 +17,27 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.common.base.Stopwatch; import com.google.common.primitives.Longs; import com.google.common.util.concurrent.Uninterruptibles; import com.google.protobuf.ByteString; -import com.hedera.hashgraph.sdk.proto.AccountID; -import com.hedera.hashgraph.sdk.proto.ConsensusMessageChunkInfo; -import com.hedera.hashgraph.sdk.proto.Timestamp; -import com.hedera.hashgraph.sdk.proto.TopicID; -import com.hedera.hashgraph.sdk.proto.TransactionID; -import com.hedera.hashgraph.sdk.proto.mirror.ConsensusServiceGrpc; -import com.hedera.hashgraph.sdk.proto.mirror.ConsensusTopicQuery; -import com.hedera.hashgraph.sdk.proto.mirror.ConsensusTopicResponse; +import com.hiero.sdk.proto.AccountID; +import com.hiero.sdk.proto.ConsensusMessageChunkInfo; +import com.hiero.sdk.proto.Timestamp; +import com.hiero.sdk.proto.TopicID; +import com.hiero.sdk.proto.TransactionID; +import com.hiero.sdk.proto.mirror.ConsensusServiceGrpc; +import com.hiero.sdk.proto.mirror.ConsensusTopicQuery; +import com.hiero.sdk.proto.mirror.ConsensusTopicResponse; import io.github.jsonSnapshot.SnapshotMatcher; import io.grpc.Server; import io.grpc.Status; import io.grpc.StatusRuntimeException; import io.grpc.inprocess.InProcessServerBuilder; import io.grpc.stub.StreamObserver; +import org.assertj.core.api.Assertions; import org.assertj.core.api.InstanceOfAssertFactories; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.AfterEach; @@ -195,7 +196,7 @@ void subscribe() { subscribeToMirror(received::add); assertThat(errors).isEmpty(); - assertThat(received).hasSize(2).extracting(t -> t.sequenceNumber).containsExactly(1L, 2L); + Assertions.assertThat(received).hasSize(2).extracting(t -> t.sequenceNumber).containsExactly(1L, 2L); } @Test @@ -211,7 +212,7 @@ void subscribeChunked() { var message = combine(response1.getMessage().toByteArray(), response2.getMessage().toByteArray()); assertThat(errors).isEmpty(); - assertThat(received) + Assertions.assertThat(received) .hasSize(1) .first() .returns(toInstant(response2.getConsensusTimestamp()), t -> t.consensusTimestamp) @@ -234,7 +235,7 @@ void subscribeNoResponse() { subscribeToMirror(received::add); assertThat(errors).isEmpty(); - assertThat(received).isEmpty(); + Assertions.assertThat(received).isEmpty(); } @Test @@ -248,7 +249,7 @@ void errorDuringOnNext() { }); assertThat(errors).hasSize(1).first().isInstanceOf(RuntimeException.class); - assertThat(received).isEmpty(); + Assertions.assertThat(received).isEmpty(); } @ParameterizedTest(name = "Retry recovers w/ status {0} and description {1}") @@ -273,7 +274,7 @@ void retryRecovers(Status.Code code, String description) { subscribeToMirror(received::add); - assertThat(received).hasSize(2).extracting(t -> t.sequenceNumber).containsExactly(1L, 2L); + Assertions.assertThat(received).hasSize(2).extracting(t -> t.sequenceNumber).containsExactly(1L, 2L); assertThat(errors).isEmpty(); } @@ -291,7 +292,7 @@ void noRetry(Status.Code code, String description) { subscribeToMirror(received::add); - assertThat(received).isEmpty(); + Assertions.assertThat(received).isEmpty(); assertThat(errors).hasSize(1) .first() .isInstanceOf(StatusRuntimeException.class) @@ -310,7 +311,7 @@ void customRetry() { subscribeToMirror(received::add); - assertThat(received).hasSize(1).extracting(t -> t.sequenceNumber).containsExactly(1L); + Assertions.assertThat(received).hasSize(1).extracting(t -> t.sequenceNumber).containsExactly(1L); assertThat(errors).isEmpty(); } @@ -330,7 +331,7 @@ void retryWithLimit() { subscribeToMirror(received::add); - assertThat(received).hasSize(2).extracting(t -> t.sequenceNumber).containsExactly(1L, 2L); + Assertions.assertThat(received).hasSize(2).extracting(t -> t.sequenceNumber).containsExactly(1L, 2L); assertThat(errors).isEmpty(); } @@ -345,7 +346,7 @@ void retriesExhausted() { subscribeToMirror(received::add); - assertThat(received).isEmpty(); + Assertions.assertThat(received).isEmpty(); assertThat(errors).hasSize(1) .first() .isInstanceOf(StatusRuntimeException.class) @@ -368,7 +369,7 @@ void errorWhenCallIsCancelled() { .extracting(t -> ((StatusRuntimeException)t).getStatus()) .isEqualTo(Status.CANCELLED); - assertThat(received).isEmpty(); + Assertions.assertThat(received).isEmpty(); } private void subscribeToMirror(Consumer onNext) { diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicMessageQueryTest.snap b/sdk/src/test/java/com/hiero/sdk/TopicMessageQueryTest.snap similarity index 100% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TopicMessageQueryTest.snap rename to sdk/src/test/java/com/hiero/sdk/TopicMessageQueryTest.snap diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicMessageSubmitTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/TopicMessageSubmitTransactionTest.java similarity index 94% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TopicMessageSubmitTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/TopicMessageSubmitTransactionTest.java index 0ff928f529..9e313f721c 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicMessageSubmitTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TopicMessageSubmitTransactionTest.java @@ -1,9 +1,9 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; -import com.hedera.hashgraph.sdk.proto.ConsensusSubmitMessageTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.ConsensusSubmitMessageTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.TransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicMessageSubmitTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/TopicMessageSubmitTransactionTest.snap similarity index 100% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TopicMessageSubmitTransactionTest.snap rename to sdk/src/test/java/com/hiero/sdk/TopicMessageSubmitTransactionTest.snap diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicMessageTest.java b/sdk/src/test/java/com/hiero/sdk/TopicMessageTest.java similarity index 95% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TopicMessageTest.java rename to sdk/src/test/java/com/hiero/sdk/TopicMessageTest.java index d3bb8ad63f..9d076b95da 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicMessageTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TopicMessageTest.java @@ -1,9 +1,9 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; -import com.hedera.hashgraph.sdk.proto.ConsensusMessageChunkInfo; -import com.hedera.hashgraph.sdk.proto.Timestamp; -import com.hedera.hashgraph.sdk.proto.mirror.ConsensusTopicResponse; +import com.hiero.sdk.proto.ConsensusMessageChunkInfo; +import com.hiero.sdk.proto.Timestamp; +import com.hiero.sdk.proto.mirror.ConsensusTopicResponse; import org.junit.jupiter.api.Test; import java.time.Instant; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicUpdateTransactionTest.java b/sdk/src/test/java/com/hiero/sdk/TopicUpdateTransactionTest.java similarity index 95% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TopicUpdateTransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/TopicUpdateTransactionTest.java index 6214b47555..8bc3df5a18 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicUpdateTransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TopicUpdateTransactionTest.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.StringValue; -import com.hedera.hashgraph.sdk.proto.ConsensusUpdateTopicTransactionBody; -import com.hedera.hashgraph.sdk.proto.CryptoDeleteTransactionBody; -import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody; -import com.hedera.hashgraph.sdk.proto.Timestamp; -import com.hedera.hashgraph.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.ConsensusUpdateTopicTransactionBody; +import com.hiero.sdk.proto.CryptoDeleteTransactionBody; +import com.hiero.sdk.proto.SchedulableTransactionBody; +import com.hiero.sdk.proto.Timestamp; +import com.hiero.sdk.proto.TransactionBody; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; @@ -109,7 +109,7 @@ void constructTopicUpdateTransactionFromTransactionBodyProtobuf() { .setMemo(StringValue.newBuilder().setValue(testTopicMemo).build()) .setExpirationTime(Timestamp.newBuilder().setSeconds(testExpirationTime.getEpochSecond()).build()) .setAdminKey(testAdminKey.toProtobufKey()).setSubmitKey(testSubmitKey.toProtobufKey()).setAutoRenewPeriod( - com.hedera.hashgraph.sdk.proto.Duration.newBuilder().setSeconds(testAutoRenewPeriod.toSeconds()) + com.hiero.sdk.proto.Duration.newBuilder().setSeconds(testAutoRenewPeriod.toSeconds()) .build()).setAutoRenewAccount(testAutoRenewAccountId.toProtobuf()).build(); var tx = TransactionBody.newBuilder().setConsensusUpdateTopic(transactionBody).build(); diff --git a/sdk/src/test/java/com/hiero/sdk/TopicUpdateTransactionTest.snap b/sdk/src/test/java/com/hiero/sdk/TopicUpdateTransactionTest.snap new file mode 100644 index 0000000000..f2ee0eac88 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TopicUpdateTransactionTest.snap @@ -0,0 +1,8 @@ +com.hiero.sdk.TopicUpdateTransactionTest.clearShouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nconsensus_update_topic {\n admin_key {\n key_list {\n }\n }\n auto_renew_account {\n account_num: 0\n realm_num: 0\n shard_num: 0\n }\n memo {\n }\n submit_key {\n key_list {\n }\n }\n topic_i_d {\n realm_num: 0\n shard_num: 0\n topic_num: 5007\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 200000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] + + +com.hiero.sdk.TopicUpdateTransactionTest.setShouldSerialize=[ + "# com.hiero.sdk.proto.TransactionBody\nconsensus_update_topic {\n admin_key {\n ed25519: \"\\332\\207p\\020\\227\\206ns\\360\\335\\224,\\273>\\227\\0063)\\371\\005X\\206!\\261x\\322\\027Yh\\215G\\374\"\n }\n auto_renew_account {\n account_num: 8\n realm_num: 8\n shard_num: 8\n }\n auto_renew_period {\n seconds: 36000\n }\n expiration_time {\n seconds: 1554158542\n }\n memo {\n value: \"test memo\"\n }\n submit_key {\n ed25519: \"\\373\\210\\2637\\337\\327ea{\\3442*\\347\\357\\2053\\326\\036d\\203\\005\\016 \\354HE\\2453\\275\\334\\244\\261\"\n }\n topic_i_d {\n realm_num: 0\n shard_num: 0\n topic_num: 5007\n }\n}\nnode_account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n}\ntransaction_fee: 200000000\ntransaction_i_d {\n account_i_d {\n account_num: 5006\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n}\ntransaction_valid_duration {\n seconds: 120\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionIdTest.java b/sdk/src/test/java/com/hiero/sdk/TransactionIdTest.java similarity index 99% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionIdTest.java rename to sdk/src/test/java/com/hiero/sdk/TransactionIdTest.java index 17e212adf8..55ee5b44d1 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionIdTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TransactionIdTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; import io.github.jsonSnapshot.SnapshotMatcher; diff --git a/sdk/src/test/java/com/hiero/sdk/TransactionIdTest.snap b/sdk/src/test/java/com/hiero/sdk/TransactionIdTest.snap new file mode 100644 index 0000000000..aca3726f13 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TransactionIdTest.snap @@ -0,0 +1,8 @@ +com.hiero.sdk.TransactionIdTest.shouldSerialize2=[ + "0.0.23847@1588539964.632521325?scheduled/3" +] + + +com.hiero.sdk.TransactionIdTest.shouldSerialize=[ + "0.0.23847@1588539964.632521325" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionReceiptQueryTest.java b/sdk/src/test/java/com/hiero/sdk/TransactionReceiptQueryTest.java similarity index 91% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionReceiptQueryTest.java rename to sdk/src/test/java/com/hiero/sdk/TransactionReceiptQueryTest.java index 946b36c97c..1378e7e3f3 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionReceiptQueryTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TransactionReceiptQueryTest.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.QueryHeader; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; @@ -45,7 +45,7 @@ public static void afterAll() { @Test void shouldSerialize() { - var builder = com.hedera.hashgraph.sdk.proto.Query.newBuilder(); + var builder = com.hiero.sdk.proto.Query.newBuilder(); new TransactionReceiptQuery() .setTransactionId(TransactionId.withValidStart(AccountId.fromString("0.0.5005"), validStart)) .onMakeRequest(builder, QueryHeader.newBuilder().build()); diff --git a/sdk/src/test/java/com/hiero/sdk/TransactionReceiptQueryTest.snap b/sdk/src/test/java/com/hiero/sdk/TransactionReceiptQueryTest.snap new file mode 100644 index 0000000000..435dfc80a3 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TransactionReceiptQueryTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.TransactionReceiptQueryTest.shouldSerialize=[ + "# com.hiero.sdk.proto.Query\ntransaction_get_receipt {\n header {\n }\n transaction_i_d {\n account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n }\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionReceiptTest.java b/sdk/src/test/java/com/hiero/sdk/TransactionReceiptTest.java similarity index 98% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionReceiptTest.java rename to sdk/src/test/java/com/hiero/sdk/TransactionReceiptTest.java index 5e950a62fd..2f8236e067 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionReceiptTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TransactionReceiptTest.java @@ -1,4 +1,4 @@ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import io.github.jsonSnapshot.SnapshotMatcher; diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionReceiptTest.snap b/sdk/src/test/java/com/hiero/sdk/TransactionReceiptTest.snap similarity index 90% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionReceiptTest.snap rename to sdk/src/test/java/com/hiero/sdk/TransactionReceiptTest.snap index 9a19e2b5d3..6ccfa3e262 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionReceiptTest.snap +++ b/sdk/src/test/java/com/hiero/sdk/TransactionReceiptTest.snap @@ -1,3 +1,3 @@ -com.hedera.hashgraph.sdk.TransactionReceiptTest.shouldSerialize=[ +com.hiero.sdk.TransactionReceiptTest.shouldSerialize=[ "TransactionReceipt{transactionId=null, status=SCHEDULE_ALREADY_DELETED, exchangeRate=ExchangeRate{hbars=3, cents=4, expirationTime=2019-04-01T22:42:22Z, exchangeRateInCents=1.3333333333333333}, accountId=1.2.3, fileId=4.5.6, contractId=3.2.1, topicId=9.8.7, tokenId=6.5.4, topicSequenceNumber=3, topicRunningHash=[54, 56, 54, 102, 55, 55, 50, 48, 54, 101, 54, 102, 55, 55, 50, 48, 54, 50, 55, 50, 54, 102, 55, 55, 54, 101, 50, 48, 54, 51, 54, 102, 55, 55], totalSupply=30, scheduleId=1.1.1, scheduledTransactionId=3.3.3@1554158542.000000000, serials=[1, 2, 3], nodeId=1, duplicates=[], children=[]}" -] \ No newline at end of file +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionRecordQueryTest.java b/sdk/src/test/java/com/hiero/sdk/TransactionRecordQueryTest.java similarity index 92% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionRecordQueryTest.java rename to sdk/src/test/java/com/hiero/sdk/TransactionRecordQueryTest.java index 15590be199..c33d82b6fe 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionRecordQueryTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TransactionRecordQueryTest.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; -import com.hedera.hashgraph.sdk.proto.QueryHeader; +import com.hiero.sdk.proto.QueryHeader; import io.github.jsonSnapshot.SnapshotMatcher; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; @@ -45,7 +45,7 @@ public static void afterAll() { @Test void shouldSerialize() { - var builder = com.hedera.hashgraph.sdk.proto.Query.newBuilder(); + var builder = com.hiero.sdk.proto.Query.newBuilder(); spawnQuery().onMakeRequest(builder, QueryHeader.newBuilder().build()); SnapshotMatcher.expect(builder.build().toString().replaceAll("@[A-Za-z0-9]+", "")).toMatchSnapshot(); } diff --git a/sdk/src/test/java/com/hiero/sdk/TransactionRecordQueryTest.snap b/sdk/src/test/java/com/hiero/sdk/TransactionRecordQueryTest.snap new file mode 100644 index 0000000000..4b71c83598 --- /dev/null +++ b/sdk/src/test/java/com/hiero/sdk/TransactionRecordQueryTest.snap @@ -0,0 +1,3 @@ +com.hiero.sdk.TransactionRecordQueryTest.shouldSerialize=[ + "# com.hiero.sdk.proto.Query\ntransaction_get_record {\n header {\n }\n include_child_records: true\n include_duplicates: true\n transaction_i_d {\n account_i_d {\n account_num: 5005\n realm_num: 0\n shard_num: 0\n }\n transaction_valid_start {\n seconds: 1554158542\n }\n }\n}" +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionRecordTest.java b/sdk/src/test/java/com/hiero/sdk/TransactionRecordTest.java similarity index 94% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionRecordTest.java rename to sdk/src/test/java/com/hiero/sdk/TransactionRecordTest.java index f68ed794f7..317379b604 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionRecordTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TransactionRecordTest.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.ByteString; import com.google.protobuf.BytesValue; @@ -34,8 +34,8 @@ import java.util.List; import java.util.Map; -import static com.hedera.hashgraph.sdk.ContractFunctionResultTest.CALL_RESULT_HEX; -import static com.hedera.hashgraph.sdk.TransactionReceiptTest.spawnReceiptExample; +import static com.hiero.sdk.ContractFunctionResultTest.CALL_RESULT_HEX; +import static com.hiero.sdk.TransactionReceiptTest.spawnReceiptExample; import static org.assertj.core.api.Assertions.assertThat; public class TransactionRecordTest { @@ -61,7 +61,7 @@ private static TransactionRecord spawnRecordExample(@Nullable ByteString prngByt "memo", 3000L, new ContractFunctionResult( - com.hedera.hashgraph.sdk.proto.ContractFunctionResult.newBuilder() + com.hiero.sdk.proto.ContractFunctionResult.newBuilder() .setContractID(ContractId.fromString("1.2.3").toProtobuf()) .setContractCallResult(ByteString.copyFrom(callResult)) .setEvmAddress(BytesValue.newBuilder().setValue(ByteString.copyFrom(Hex.decode("98329e006610472e6B372C080833f6D79ED833cf"))).build()) diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionRecordTest.snap b/sdk/src/test/java/com/hiero/sdk/TransactionRecordTest.snap similarity index 97% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionRecordTest.snap rename to sdk/src/test/java/com/hiero/sdk/TransactionRecordTest.snap index d0e9381928..08e20be479 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionRecordTest.snap +++ b/sdk/src/test/java/com/hiero/sdk/TransactionRecordTest.snap @@ -1,8 +1,8 @@ -com.hedera.hashgraph.sdk.TransactionRecordTest.shouldSerialize2=[ +com.hiero.sdk.TransactionRecordTest.shouldSerialize2=[ "TransactionRecord{receipt=TransactionReceipt{transactionId=null, status=SCHEDULE_ALREADY_DELETED, exchangeRate=ExchangeRate{hbars=3, cents=4, expirationTime=2019-04-01T22:42:22Z, exchangeRateInCents=1.3333333333333333}, accountId=1.2.3, fileId=4.5.6, contractId=3.2.1, topicId=9.8.7, tokenId=6.5.4, topicSequenceNumber=3, topicRunningHash=[54, 56, 54, 102, 55, 55, 50, 48, 54, 101, 54, 102, 55, 55, 50, 48, 54, 50, 55, 50, 54, 102, 55, 55, 54, 101, 50, 48, 54, 51, 54, 102, 55, 55], totalSupply=30, scheduleId=1.1.1, scheduledTransactionId=3.3.3@1554158542.000000000, serials=[1, 2, 3], nodeId=1, duplicates=[], children=[]}, transactionHash=68656c6c6f, consensusTimestamp=2019-04-01T22:42:22Z, transactionId=3.3.3@1554158542.000000000, transactionMemo=memo, transactionFee=3000 tℏ, contractFunctionResult=ContractFunctionResult{contractId=1.2.3, evmAddress=1.2.98329e006610472e6b372c080833f6d79ed833cf, errorMessage=null, bloom=, gasUsed=0, logs=[], createdContractIds=[], stateChanges=[], gas=0, hbarAmount=0 tℏ, contractFunctionparametersBytes=, rawResult=00000000000000000000000000000000000000000000000000000000ffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000000000000000000011223344556677889900aabbccddeeff00112233ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000d48656c6c6f2c20776f726c642100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001448656c6c6f2c20776f726c642c20616761696e21000000000000000000000000, senderAccountId=1.2.3, contractNonces=[], signerNonce=0}, transfers=[Transfer{accountId=4.4.4, amount=5 ℏ}], tokenTransfers={6.6.6={1.1.1=4}}, tokenNftTransfers={4.4.4=[TokenNftTransfer{tokenId=4.4.4, sender=1.2.3, receiver=3.2.1, serial=4, isApproved=true}]}, scheduleRef=3.3.3, assessedCustomFees=[AssessedCustomFee{amount=4, tokenId=4.5.6, feeCollectorAccountId=8.6.5, payerAccountIdList=[3.3.3]}], automaticTokenAssociations=[TokenAssociation{tokenId=5.4.3, accountId=8.7.6}], aliasKey=3036301006072a8648ce3d020106052b8104000a03220002703a9370b0443be6ae7c507b0aec81a55e94e4a863b9655360bd65358caa6588, children=[], duplicates=[], parentConsensusTimestamp=2019-04-01T22:42:22Z, ethereumHash=536f6d652068617368, paidStakingRewards=[Transfer{accountId=1.2.3, amount=8 ℏ}], prngBytes=null, prngNumber=4, evmAddress=30783030, pendingAirdropRecords=[PendingAirdropRecord{pendingAirdropId=PendingAirdropId{sender=0.0.123, receiver=0.0.124, tokenId=null, nftId=0.0.5005/1234}, pendingAirdropAmount=123}, PendingAirdropRecord{pendingAirdropId=PendingAirdropId{sender=0.0.123, receiver=0.0.124, tokenId=0.0.12345, nftId=null}, pendingAirdropAmount=123}]}" ] -com.hedera.hashgraph.sdk.TransactionRecordTest.shouldSerialize=[ +com.hiero.sdk.TransactionRecordTest.shouldSerialize=[ "TransactionRecord{receipt=TransactionReceipt{transactionId=null, status=SCHEDULE_ALREADY_DELETED, exchangeRate=ExchangeRate{hbars=3, cents=4, expirationTime=2019-04-01T22:42:22Z, exchangeRateInCents=1.3333333333333333}, accountId=1.2.3, fileId=4.5.6, contractId=3.2.1, topicId=9.8.7, tokenId=6.5.4, topicSequenceNumber=3, topicRunningHash=[54, 56, 54, 102, 55, 55, 50, 48, 54, 101, 54, 102, 55, 55, 50, 48, 54, 50, 55, 50, 54, 102, 55, 55, 54, 101, 50, 48, 54, 51, 54, 102, 55, 55], totalSupply=30, scheduleId=1.1.1, scheduledTransactionId=3.3.3@1554158542.000000000, serials=[1, 2, 3], nodeId=1, duplicates=[], children=[]}, transactionHash=68656c6c6f, consensusTimestamp=2019-04-01T22:42:22Z, transactionId=3.3.3@1554158542.000000000, transactionMemo=memo, transactionFee=3000 tℏ, contractFunctionResult=ContractFunctionResult{contractId=1.2.3, evmAddress=1.2.98329e006610472e6b372c080833f6d79ed833cf, errorMessage=null, bloom=, gasUsed=0, logs=[], createdContractIds=[], stateChanges=[], gas=0, hbarAmount=0 tℏ, contractFunctionparametersBytes=, rawResult=00000000000000000000000000000000000000000000000000000000ffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000000000000000000011223344556677889900aabbccddeeff00112233ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000d48656c6c6f2c20776f726c642100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001448656c6c6f2c20776f726c642c20616761696e21000000000000000000000000, senderAccountId=1.2.3, contractNonces=[], signerNonce=0}, transfers=[Transfer{accountId=4.4.4, amount=5 ℏ}], tokenTransfers={6.6.6={1.1.1=4}}, tokenNftTransfers={4.4.4=[TokenNftTransfer{tokenId=4.4.4, sender=1.2.3, receiver=3.2.1, serial=4, isApproved=true}]}, scheduleRef=3.3.3, assessedCustomFees=[AssessedCustomFee{amount=4, tokenId=4.5.6, feeCollectorAccountId=8.6.5, payerAccountIdList=[3.3.3]}], automaticTokenAssociations=[TokenAssociation{tokenId=5.4.3, accountId=8.7.6}], aliasKey=3036301006072a8648ce3d020106052b8104000a03220002703a9370b0443be6ae7c507b0aec81a55e94e4a863b9655360bd65358caa6588, children=[], duplicates=[], parentConsensusTimestamp=2019-04-01T22:42:22Z, ethereumHash=536f6d652068617368, paidStakingRewards=[Transfer{accountId=1.2.3, amount=8 ℏ}], prngBytes=766572792072616e646f6d206279746573, prngNumber=null, evmAddress=30783030, pendingAirdropRecords=[PendingAirdropRecord{pendingAirdropId=PendingAirdropId{sender=0.0.123, receiver=0.0.124, tokenId=null, nftId=0.0.5005/1234}, pendingAirdropAmount=123}, PendingAirdropRecord{pendingAirdropId=PendingAirdropId{sender=0.0.123, receiver=0.0.124, tokenId=0.0.12345, nftId=null}, pendingAirdropAmount=123}]}" -] \ No newline at end of file +] diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionTest.java b/sdk/src/test/java/com/hiero/sdk/TransactionTest.java similarity index 93% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionTest.java rename to sdk/src/test/java/com/hiero/sdk/TransactionTest.java index db62bd65ff..d9ceb36fa9 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionTest.java +++ b/sdk/src/test/java/com/hiero/sdk/TransactionTest.java @@ -17,12 +17,12 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk; +package com.hiero.sdk; import com.google.protobuf.InvalidProtocolBufferException; -import com.hedera.hashgraph.sdk.proto.SignedTransaction; -import com.hedera.hashgraph.sdk.proto.TokenAssociateTransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.SignedTransaction; +import com.hiero.sdk.proto.TokenAssociateTransactionBody; +import com.hiero.sdk.proto.TransactionBody; import org.bouncycastle.util.encoders.Hex; import org.junit.jupiter.api.Test; @@ -30,7 +30,7 @@ import java.util.Arrays; import java.util.List; -import static com.hedera.hashgraph.sdk.Transaction.fromBytes; +import static com.hiero.sdk.Transaction.fromBytes; import static org.assertj.core.api.Assertions.assertThat; @@ -93,7 +93,7 @@ void tokenAssociateTransactionFromTransactionBytes() throws InvalidProtocolBuffe .build(); var signedTransactionBodyProto = TransactionBody.parseFrom(signedTransactionProto.getBodyBytes()); - var transactionSignedProto = com.hedera.hashgraph.sdk.proto.Transaction.newBuilder() + var transactionSignedProto = com.hiero.sdk.proto.Transaction.newBuilder() .setSignedTransactionBytes(signedTransactionBodyProto.toByteString()).build(); var transactionSignedBodyProto = TransactionBody.parseFrom(transactionSignedProto.getSignedTransactionBytes()); diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/logger/LoggerTest.java b/sdk/src/test/java/com/hiero/sdk/logger/LoggerTest.java similarity index 96% rename from sdk/src/test/java/com/hedera/hashgraph/sdk/logger/LoggerTest.java rename to sdk/src/test/java/com/hiero/sdk/logger/LoggerTest.java index 84956f1306..6582b9b804 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/logger/LoggerTest.java +++ b/sdk/src/test/java/com/hiero/sdk/logger/LoggerTest.java @@ -1,5 +1,7 @@ -package com.hedera.hashgraph.sdk.logger; +package com.hiero.sdk.logger; +import com.hiero.sdk.logger.LogLevel; +import com.hiero.sdk.logger.Logger; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/AccountAllowanceIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/AccountAllowanceIntegrationTest.java similarity index 88% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/AccountAllowanceIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/AccountAllowanceIntegrationTest.java index 8f4fb7eae2..f5ef05622f 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/AccountAllowanceIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/AccountAllowanceIntegrationTest.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; -import com.hedera.hashgraph.sdk.AccountAllowanceApproveTransaction; -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.AccountDeleteTransaction; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.TransactionId; -import com.hedera.hashgraph.sdk.TransferTransaction; +import com.hiero.sdk.AccountAllowanceApproveTransaction; +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.AccountDeleteTransaction; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.TransactionId; +import com.hiero.sdk.TransferTransaction; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/AccountBalanceIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/AccountBalanceIntegrationTest.java similarity index 95% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/AccountBalanceIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/AccountBalanceIntegrationTest.java index 0669f2a570..217e08c4ff 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/AccountBalanceIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/AccountBalanceIntegrationTest.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.AccountBalanceQuery; -import com.hedera.hashgraph.sdk.AccountId; -import com.hedera.hashgraph.sdk.Client; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.Status; -import com.hedera.hashgraph.sdk.TokenCreateTransaction; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.AccountBalanceQuery; +import com.hiero.sdk.AccountId; +import com.hiero.sdk.Client; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.Status; +import com.hiero.sdk.TokenCreateTransaction; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/AccountCreateIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/AccountCreateIntegrationTest.java similarity index 99% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/AccountCreateIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/AccountCreateIntegrationTest.java index 4dcd7886d2..de453898cb 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/AccountCreateIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/AccountCreateIntegrationTest.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; -import com.hedera.hashgraph.sdk.*; +import com.hiero.sdk.*; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import java.time.Duration; @@ -122,7 +122,7 @@ void canCreateWithAliasKey() throws Exception { assertThat(key.getPublicKey()).isEqualTo(info.aliasKey); - } + } } @Test diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/AccountDeleteIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/AccountDeleteIntegrationTest.java similarity index 88% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/AccountDeleteIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/AccountDeleteIntegrationTest.java index a3ed868797..5b78f07fad 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/AccountDeleteIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/AccountDeleteIntegrationTest.java @@ -17,16 +17,16 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.AccountDeleteTransaction; -import com.hedera.hashgraph.sdk.AccountInfoQuery; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.Status; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.AccountDeleteTransaction; +import com.hiero.sdk.AccountInfoQuery; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.Status; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import java.time.Duration; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/AccountIdPopulationIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/AccountIdPopulationIntegrationTest.java similarity index 94% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/AccountIdPopulationIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/AccountIdPopulationIntegrationTest.java index cff3131038..41659613b9 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/AccountIdPopulationIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/AccountIdPopulationIntegrationTest.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; import static org.assertj.core.api.Assertions.assertThat; -import com.hedera.hashgraph.sdk.AccountId; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.TransactionReceiptQuery; -import com.hedera.hashgraph.sdk.TransferTransaction; +import com.hiero.sdk.AccountId; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.TransactionReceiptQuery; +import com.hiero.sdk.TransferTransaction; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; @@ -81,7 +81,7 @@ void canPopulateAccountIdNumAsync() throws Exception { var accountId = idMirror.populateAccountNumAsync(testEnv.client).get(); assertThat(newAccountId.num).isEqualTo(accountId.num); - + } } diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/AccountInfoIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/AccountInfoIntegrationTest.java similarity index 88% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/AccountInfoIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/AccountInfoIntegrationTest.java index 45d47016cc..e08cbe0371 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/AccountInfoIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/AccountInfoIntegrationTest.java @@ -17,16 +17,16 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.AccountInfoFlow; -import com.hedera.hashgraph.sdk.AccountInfoQuery; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.PublicKey; -import com.hedera.hashgraph.sdk.Transaction; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.AccountInfoFlow; +import com.hiero.sdk.AccountInfoQuery; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.PublicKey; +import com.hiero.sdk.Transaction; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; @@ -105,7 +105,7 @@ void getCostSmallMaxAccountInfoForClientOperator() throws Exception { assertThatExceptionOfType(RuntimeException.class).isThrownBy(() -> { info.execute(testEnv.client); - }).withMessage("com.hedera.hashgraph.sdk.MaxQueryPaymentExceededException: cost for AccountInfoQuery, of " + cost.toString() + ", without explicit payment is greater than the maximum allowed payment of 1 tℏ"); + }).withMessage("com.hiero.sdk.MaxQueryPaymentExceededException: cost for AccountInfoQuery, of " + cost.toString() + ", without explicit payment is greater than the maximum allowed payment of 1 tℏ"); } } diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/AccountRecordsIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/AccountRecordsIntegrationTest.java similarity index 87% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/AccountRecordsIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/AccountRecordsIntegrationTest.java index 9dc2a46976..0839343abe 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/AccountRecordsIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/AccountRecordsIntegrationTest.java @@ -17,13 +17,13 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.AccountRecordsQuery; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.TransferTransaction; +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.AccountRecordsQuery; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.TransferTransaction; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/AccountStakersIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/AccountStakersIntegrationTest.java similarity index 85% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/AccountStakersIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/AccountStakersIntegrationTest.java index 222b6b5a75..0e40d97851 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/AccountStakersIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/AccountStakersIntegrationTest.java @@ -17,12 +17,12 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; -import com.hedera.hashgraph.sdk.AccountStakersQuery; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.Status; +import com.hiero.sdk.AccountStakersQuery; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.Status; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/AccountUpdateIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/AccountUpdateIntegrationTest.java similarity index 89% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/AccountUpdateIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/AccountUpdateIntegrationTest.java index f2aff5de2f..48208ee225 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/AccountUpdateIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/AccountUpdateIntegrationTest.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.AccountInfoQuery; -import com.hedera.hashgraph.sdk.AccountUpdateTransaction; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.Status; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.AccountInfoQuery; +import com.hiero.sdk.AccountUpdateTransaction; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.Status; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import java.time.Duration; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ClientIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ClientIntegrationTest.java similarity index 98% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ClientIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ClientIntegrationTest.java index f3ae4e580d..a8a3157351 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ClientIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ClientIntegrationTest.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; -import com.hedera.hashgraph.sdk.*; +import com.hiero.sdk.*; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import java.time.Duration; @@ -177,7 +177,7 @@ void pingAllBadNetwork() throws Exception { assertThat(testEnv.client.getNetwork().values().size()).isEqualTo(1); } - + } @Test @@ -212,7 +212,7 @@ void pingAllAsync() throws Exception { new AccountBalanceQuery() .setAccountId(node) .execute(testEnv.client); - + } } } diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/Contents.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/Contents.java similarity index 99% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/Contents.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/Contents.java index e3dadb7ca1..14bf407a3d 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/Contents.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/Contents.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; public class Contents { private Contents() { diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractBytecodeIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractBytecodeIntegrationTest.java similarity index 94% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractBytecodeIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractBytecodeIntegrationTest.java index 1bbd481bf5..74ec3ec4ff 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractBytecodeIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractBytecodeIntegrationTest.java @@ -17,18 +17,18 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.ContractByteCodeQuery; -import com.hedera.hashgraph.sdk.ContractCreateTransaction; -import com.hedera.hashgraph.sdk.ContractDeleteTransaction; -import com.hedera.hashgraph.sdk.ContractFunctionParameters; -import com.hedera.hashgraph.sdk.FileCreateTransaction; -import com.hedera.hashgraph.sdk.FileDeleteTransaction; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.MaxQueryPaymentExceededException; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.Status; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.ContractByteCodeQuery; +import com.hiero.sdk.ContractCreateTransaction; +import com.hiero.sdk.ContractDeleteTransaction; +import com.hiero.sdk.ContractFunctionParameters; +import com.hiero.sdk.FileCreateTransaction; +import com.hiero.sdk.FileDeleteTransaction; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.MaxQueryPaymentExceededException; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.Status; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractCallIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractCallIntegrationTest.java similarity index 96% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractCallIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractCallIntegrationTest.java index fe96198102..5a34dd4198 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractCallIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractCallIntegrationTest.java @@ -17,18 +17,18 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.ContractCallQuery; -import com.hedera.hashgraph.sdk.ContractCreateTransaction; -import com.hedera.hashgraph.sdk.ContractDeleteTransaction; -import com.hedera.hashgraph.sdk.ContractFunctionParameters; -import com.hedera.hashgraph.sdk.FileCreateTransaction; -import com.hedera.hashgraph.sdk.FileDeleteTransaction; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.MaxQueryPaymentExceededException; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.Status; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.ContractCallQuery; +import com.hiero.sdk.ContractCreateTransaction; +import com.hiero.sdk.ContractDeleteTransaction; +import com.hiero.sdk.ContractFunctionParameters; +import com.hiero.sdk.FileCreateTransaction; +import com.hiero.sdk.FileDeleteTransaction; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.MaxQueryPaymentExceededException; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.Status; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractCreateFlowIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractCreateFlowIntegrationTest.java similarity index 99% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractCreateFlowIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractCreateFlowIntegrationTest.java index 14cf3231d0..36988a1e09 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractCreateFlowIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractCreateFlowIntegrationTest.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; -import com.hedera.hashgraph.sdk.*; +import com.hiero.sdk.*; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractCreateIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractCreateIntegrationTest.java similarity index 95% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractCreateIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractCreateIntegrationTest.java index d4e5f22953..ae8f0edc1d 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractCreateIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractCreateIntegrationTest.java @@ -17,17 +17,17 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.ContractCreateTransaction; -import com.hedera.hashgraph.sdk.ContractDeleteTransaction; -import com.hedera.hashgraph.sdk.ContractFunctionParameters; -import com.hedera.hashgraph.sdk.ContractInfoQuery; -import com.hedera.hashgraph.sdk.FileCreateTransaction; -import com.hedera.hashgraph.sdk.FileDeleteTransaction; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.Status; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.ContractCreateTransaction; +import com.hiero.sdk.ContractDeleteTransaction; +import com.hiero.sdk.ContractFunctionParameters; +import com.hiero.sdk.ContractInfoQuery; +import com.hiero.sdk.FileCreateTransaction; +import com.hiero.sdk.FileDeleteTransaction; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.Status; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractDeleteIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractDeleteIntegrationTest.java similarity index 93% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractDeleteIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractDeleteIntegrationTest.java index c7ec9a1d88..179b30bf1c 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractDeleteIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractDeleteIntegrationTest.java @@ -17,17 +17,17 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.ContractCreateTransaction; -import com.hedera.hashgraph.sdk.ContractDeleteTransaction; -import com.hedera.hashgraph.sdk.ContractFunctionParameters; -import com.hedera.hashgraph.sdk.ContractInfoQuery; -import com.hedera.hashgraph.sdk.FileCreateTransaction; -import com.hedera.hashgraph.sdk.FileDeleteTransaction; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.Status; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.ContractCreateTransaction; +import com.hiero.sdk.ContractDeleteTransaction; +import com.hiero.sdk.ContractFunctionParameters; +import com.hiero.sdk.ContractInfoQuery; +import com.hiero.sdk.FileCreateTransaction; +import com.hiero.sdk.FileDeleteTransaction; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.Status; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractExecuteIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractExecuteIntegrationTest.java similarity index 94% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractExecuteIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractExecuteIntegrationTest.java index eaaff2eb96..a4cf972557 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractExecuteIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractExecuteIntegrationTest.java @@ -17,20 +17,20 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatExceptionOfType; -import com.hedera.hashgraph.sdk.ContractCreateTransaction; -import com.hedera.hashgraph.sdk.ContractDeleteTransaction; -import com.hedera.hashgraph.sdk.ContractExecuteTransaction; -import com.hedera.hashgraph.sdk.ContractFunctionParameters; -import com.hedera.hashgraph.sdk.FileCreateTransaction; -import com.hedera.hashgraph.sdk.FileDeleteTransaction; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.Status; +import com.hiero.sdk.ContractCreateTransaction; +import com.hiero.sdk.ContractDeleteTransaction; +import com.hiero.sdk.ContractExecuteTransaction; +import com.hiero.sdk.ContractFunctionParameters; +import com.hiero.sdk.FileCreateTransaction; +import com.hiero.sdk.FileDeleteTransaction; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.Status; import java.util.Objects; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractFunctionParametersIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractFunctionParametersIntegrationTest.java similarity index 99% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractFunctionParametersIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractFunctionParametersIntegrationTest.java index bd75046aa7..ddff76f4ec 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractFunctionParametersIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractFunctionParametersIntegrationTest.java @@ -17,21 +17,21 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; import static org.assertj.core.api.Assertions.assertThat; import com.esaulpaugh.headlong.abi.Address; -import com.hedera.hashgraph.sdk.ContractCallQuery; -import com.hedera.hashgraph.sdk.ContractCreateTransaction; -import com.hedera.hashgraph.sdk.ContractDeleteTransaction; -import com.hedera.hashgraph.sdk.ContractFunctionParameters; -import com.hedera.hashgraph.sdk.ContractId; -import com.hedera.hashgraph.sdk.FileAppendTransaction; -import com.hedera.hashgraph.sdk.FileCreateTransaction; -import com.hedera.hashgraph.sdk.FileDeleteTransaction; -import com.hedera.hashgraph.sdk.FileId; -import com.hedera.hashgraph.sdk.Hbar; +import com.hiero.sdk.ContractCallQuery; +import com.hiero.sdk.ContractCreateTransaction; +import com.hiero.sdk.ContractDeleteTransaction; +import com.hiero.sdk.ContractFunctionParameters; +import com.hiero.sdk.ContractId; +import com.hiero.sdk.FileAppendTransaction; +import com.hiero.sdk.FileCreateTransaction; +import com.hiero.sdk.FileDeleteTransaction; +import com.hiero.sdk.FileId; +import com.hiero.sdk.Hbar; import java.math.BigInteger; import java.util.Arrays; import java.util.Objects; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractIdPopulationIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractIdPopulationIntegrationTest.java similarity index 95% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractIdPopulationIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractIdPopulationIntegrationTest.java index 74e3f5f9a7..f756c2033f 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractIdPopulationIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractIdPopulationIntegrationTest.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; import static org.assertj.core.api.Assertions.assertThat; -import com.hedera.hashgraph.sdk.ContractCreateTransaction; -import com.hedera.hashgraph.sdk.ContractFunctionParameters; -import com.hedera.hashgraph.sdk.ContractId; -import com.hedera.hashgraph.sdk.ContractInfoQuery; -import com.hedera.hashgraph.sdk.FileCreateTransaction; +import com.hiero.sdk.ContractCreateTransaction; +import com.hiero.sdk.ContractFunctionParameters; +import com.hiero.sdk.ContractId; +import com.hiero.sdk.ContractInfoQuery; +import com.hiero.sdk.FileCreateTransaction; import java.util.Objects; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; @@ -108,7 +108,7 @@ void canPopulateContractIdNumAsync() throws Exception { var newContractId = idMirror.populateContractNumAsync(testEnv.client).get(); assertThat(contractId.num).isEqualTo(newContractId.num); - + } } } diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractInfoIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractInfoIntegrationTest.java similarity index 99% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractInfoIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractInfoIntegrationTest.java index 08435ce466..7c8e51e672 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractInfoIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractInfoIntegrationTest.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; -import com.hedera.hashgraph.sdk.*; +import com.hiero.sdk.*; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractNonceInfoIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractNonceInfoIntegrationTest.java similarity index 91% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractNonceInfoIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractNonceInfoIntegrationTest.java index 5a2b7c2361..250d7a4bb6 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractNonceInfoIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractNonceInfoIntegrationTest.java @@ -17,16 +17,16 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; import static org.assertj.core.api.Assertions.assertThat; -import com.hedera.hashgraph.sdk.ContractCreateTransaction; -import com.hedera.hashgraph.sdk.ContractDeleteTransaction; -import com.hedera.hashgraph.sdk.ContractId; -import com.hedera.hashgraph.sdk.ContractNonceInfo; -import com.hedera.hashgraph.sdk.FileCreateTransaction; -import com.hedera.hashgraph.sdk.FileDeleteTransaction; +import com.hiero.sdk.ContractCreateTransaction; +import com.hiero.sdk.ContractDeleteTransaction; +import com.hiero.sdk.ContractId; +import com.hiero.sdk.ContractNonceInfo; +import com.hiero.sdk.FileCreateTransaction; +import com.hiero.sdk.FileDeleteTransaction; import java.util.Objects; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractUpdateIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractUpdateIntegrationTest.java similarity index 93% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractUpdateIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractUpdateIntegrationTest.java index 902a231dba..a7682e6751 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ContractUpdateIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ContractUpdateIntegrationTest.java @@ -17,18 +17,18 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.ContractCreateTransaction; -import com.hedera.hashgraph.sdk.ContractDeleteTransaction; -import com.hedera.hashgraph.sdk.ContractFunctionParameters; -import com.hedera.hashgraph.sdk.ContractInfoQuery; -import com.hedera.hashgraph.sdk.ContractUpdateTransaction; -import com.hedera.hashgraph.sdk.FileCreateTransaction; -import com.hedera.hashgraph.sdk.FileDeleteTransaction; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.Status; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.ContractCreateTransaction; +import com.hiero.sdk.ContractDeleteTransaction; +import com.hiero.sdk.ContractFunctionParameters; +import com.hiero.sdk.ContractInfoQuery; +import com.hiero.sdk.ContractUpdateTransaction; +import com.hiero.sdk.FileCreateTransaction; +import com.hiero.sdk.FileDeleteTransaction; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.Status; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/EntityHelper.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/EntityHelper.java similarity index 92% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/EntityHelper.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/EntityHelper.java index 78053bd3f7..fcdec63407 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/EntityHelper.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/EntityHelper.java @@ -17,21 +17,21 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.AccountId; -import com.hedera.hashgraph.sdk.ContractCreateFlow; -import com.hedera.hashgraph.sdk.ContractFunctionParameters; -import com.hedera.hashgraph.sdk.ContractId; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.Key; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.TokenCreateTransaction; -import com.hedera.hashgraph.sdk.TokenId; -import com.hedera.hashgraph.sdk.TokenSupplyType; -import com.hedera.hashgraph.sdk.TokenType; +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.AccountId; +import com.hiero.sdk.ContractCreateFlow; +import com.hiero.sdk.ContractFunctionParameters; +import com.hiero.sdk.ContractId; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.Key; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.TokenCreateTransaction; +import com.hiero.sdk.TokenId; +import com.hiero.sdk.TokenSupplyType; +import com.hiero.sdk.TokenType; import java.util.concurrent.TimeoutException; /** diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/EthereumTransactionIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/EthereumTransactionIntegrationTest.java similarity index 92% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/EthereumTransactionIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/EthereumTransactionIntegrationTest.java index 80c7c68497..3a4f7112d7 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/EthereumTransactionIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/EthereumTransactionIntegrationTest.java @@ -17,23 +17,23 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; import static org.assertj.core.api.Assertions.assertThat; import com.esaulpaugh.headlong.rlp.RLPEncoder; import com.esaulpaugh.headlong.util.Integers; -import com.hedera.hashgraph.sdk.ContractCreateTransaction; -import com.hedera.hashgraph.sdk.ContractDeleteTransaction; -import com.hedera.hashgraph.sdk.ContractExecuteTransaction; -import com.hedera.hashgraph.sdk.ContractFunctionParameters; -import com.hedera.hashgraph.sdk.EthereumTransaction; -import com.hedera.hashgraph.sdk.FileCreateTransaction; -import com.hedera.hashgraph.sdk.FileDeleteTransaction; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.PrivateKeyECDSA; -import com.hedera.hashgraph.sdk.TransferTransaction; +import com.hiero.sdk.ContractCreateTransaction; +import com.hiero.sdk.ContractDeleteTransaction; +import com.hiero.sdk.ContractExecuteTransaction; +import com.hiero.sdk.ContractFunctionParameters; +import com.hiero.sdk.EthereumTransaction; +import com.hiero.sdk.FileCreateTransaction; +import com.hiero.sdk.FileDeleteTransaction; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.PrivateKeyECDSA; +import com.hiero.sdk.TransferTransaction; import java.math.BigInteger; import java.util.List; import java.util.Objects; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/FeeSchedulesTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/FeeSchedulesTest.java similarity index 88% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/FeeSchedulesTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/FeeSchedulesTest.java index 08f408ed8e..31cfe72a00 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/FeeSchedulesTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/FeeSchedulesTest.java @@ -17,12 +17,12 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; import com.google.protobuf.ByteString; -import com.hedera.hashgraph.sdk.FeeSchedules; -import com.hedera.hashgraph.sdk.FileContentsQuery; -import com.hedera.hashgraph.sdk.FileId; +import com.hiero.sdk.FeeSchedules; +import com.hiero.sdk.FileContentsQuery; +import com.hiero.sdk.FileId; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/FileAppendIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/FileAppendIntegrationTest.java similarity index 95% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/FileAppendIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/FileAppendIntegrationTest.java index 8a9c6d4b4e..c29caa880e 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/FileAppendIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/FileAppendIntegrationTest.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.FileAppendTransaction; -import com.hedera.hashgraph.sdk.FileContentsQuery; -import com.hedera.hashgraph.sdk.FileCreateTransaction; -import com.hedera.hashgraph.sdk.FileDeleteTransaction; -import com.hedera.hashgraph.sdk.FileInfoQuery; -import com.hedera.hashgraph.sdk.KeyList; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.FileAppendTransaction; +import com.hiero.sdk.FileContentsQuery; +import com.hiero.sdk.FileCreateTransaction; +import com.hiero.sdk.FileDeleteTransaction; +import com.hiero.sdk.FileInfoQuery; +import com.hiero.sdk.KeyList; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import java.time.Duration; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/FileContentsIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/FileContentsIntegrationTest.java similarity index 93% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/FileContentsIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/FileContentsIntegrationTest.java index 929ff8f8d6..a28a771ac4 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/FileContentsIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/FileContentsIntegrationTest.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.FileContentsQuery; -import com.hedera.hashgraph.sdk.FileCreateTransaction; -import com.hedera.hashgraph.sdk.FileDeleteTransaction; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.MaxQueryPaymentExceededException; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.Status; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.FileContentsQuery; +import com.hiero.sdk.FileCreateTransaction; +import com.hiero.sdk.FileDeleteTransaction; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.MaxQueryPaymentExceededException; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.Status; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/FileCreateIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/FileCreateIntegrationTest.java similarity index 93% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/FileCreateIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/FileCreateIntegrationTest.java index 92a93c1989..ef53d14a1c 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/FileCreateIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/FileCreateIntegrationTest.java @@ -17,12 +17,12 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; -import com.hedera.hashgraph.sdk.FileCreateTransaction; -import com.hedera.hashgraph.sdk.FileDeleteTransaction; -import com.hedera.hashgraph.sdk.FileInfoQuery; -import com.hedera.hashgraph.sdk.KeyList; +import com.hiero.sdk.FileCreateTransaction; +import com.hiero.sdk.FileDeleteTransaction; +import com.hiero.sdk.FileInfoQuery; +import com.hiero.sdk.KeyList; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/FileDeleteIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/FileDeleteIntegrationTest.java similarity index 89% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/FileDeleteIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/FileDeleteIntegrationTest.java index 04bc27eb27..fe178aece9 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/FileDeleteIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/FileDeleteIntegrationTest.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.FileCreateTransaction; -import com.hedera.hashgraph.sdk.FileDeleteTransaction; -import com.hedera.hashgraph.sdk.FileInfoQuery; -import com.hedera.hashgraph.sdk.KeyList; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.Status; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.FileCreateTransaction; +import com.hiero.sdk.FileDeleteTransaction; +import com.hiero.sdk.FileInfoQuery; +import com.hiero.sdk.KeyList; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.Status; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/FileInfoIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/FileInfoIntegrationTest.java similarity index 93% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/FileInfoIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/FileInfoIntegrationTest.java index 8eef3c92a7..d9cd09a17d 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/FileInfoIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/FileInfoIntegrationTest.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.FileCreateTransaction; -import com.hedera.hashgraph.sdk.FileDeleteTransaction; -import com.hedera.hashgraph.sdk.FileInfoQuery; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.KeyList; -import com.hedera.hashgraph.sdk.MaxQueryPaymentExceededException; -import com.hedera.hashgraph.sdk.PrecheckStatusException; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.FileCreateTransaction; +import com.hiero.sdk.FileDeleteTransaction; +import com.hiero.sdk.FileInfoQuery; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.KeyList; +import com.hiero.sdk.MaxQueryPaymentExceededException; +import com.hiero.sdk.PrecheckStatusException; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/FileUpdateIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/FileUpdateIntegrationTest.java similarity index 89% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/FileUpdateIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/FileUpdateIntegrationTest.java index f41a62f998..28383e34c1 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/FileUpdateIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/FileUpdateIntegrationTest.java @@ -17,19 +17,19 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.AccountId; -import com.hedera.hashgraph.sdk.FileCreateTransaction; -import com.hedera.hashgraph.sdk.FileDeleteTransaction; -import com.hedera.hashgraph.sdk.FileId; -import com.hedera.hashgraph.sdk.FileInfoQuery; -import com.hedera.hashgraph.sdk.FileUpdateTransaction; -import com.hedera.hashgraph.sdk.KeyList; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.Status; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.AccountId; +import com.hiero.sdk.FileCreateTransaction; +import com.hiero.sdk.FileDeleteTransaction; +import com.hiero.sdk.FileId; +import com.hiero.sdk.FileInfoQuery; +import com.hiero.sdk.FileUpdateTransaction; +import com.hiero.sdk.KeyList; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.Status; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/IntegrationTestEnv.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/IntegrationTestEnv.java similarity index 94% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/IntegrationTestEnv.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/IntegrationTestEnv.java index 359d24b99c..f1cc17950f 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/IntegrationTestEnv.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/IntegrationTestEnv.java @@ -17,19 +17,19 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; import static org.assertj.core.api.Assertions.assertThat; -import com.hedera.hashgraph.sdk.AccountBalanceQuery; -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.AccountId; -import com.hedera.hashgraph.sdk.Client; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.PublicKey; -import com.hedera.hashgraph.sdk.TokenId; -import com.hedera.hashgraph.sdk.TransferTransaction; +import com.hiero.sdk.AccountBalanceQuery; +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.AccountId; +import com.hiero.sdk.Client; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.PublicKey; +import com.hiero.sdk.TokenId; +import com.hiero.sdk.TransferTransaction; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/LiveHashAddIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/LiveHashAddIntegrationTest.java similarity index 85% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/LiveHashAddIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/LiveHashAddIntegrationTest.java index 8d590d749f..ee4878f675 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/LiveHashAddIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/LiveHashAddIntegrationTest.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.LiveHashAddTransaction; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.Status; +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.LiveHashAddTransaction; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.Status; import org.bouncycastle.util.encoders.Hex; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/LiveHashDeleteIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/LiveHashDeleteIntegrationTest.java similarity index 85% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/LiveHashDeleteIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/LiveHashDeleteIntegrationTest.java index 4c313c074d..daaea4443f 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/LiveHashDeleteIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/LiveHashDeleteIntegrationTest.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.LiveHashDeleteTransaction; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.Status; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.LiveHashDeleteTransaction; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.Status; import org.bouncycastle.util.encoders.Hex; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/LoadIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/LoadIntegrationTest.java similarity index 93% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/LoadIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/LoadIntegrationTest.java index 50a307fda7..f7b62a8640 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/LoadIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/LoadIntegrationTest.java @@ -18,14 +18,14 @@ * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; import static org.junit.jupiter.api.Assertions.fail; -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.AccountId; -import com.hedera.hashgraph.sdk.Client; -import com.hedera.hashgraph.sdk.PrivateKey; +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.AccountId; +import com.hiero.sdk.Client; +import com.hiero.sdk.PrivateKey; import java.util.concurrent.Executors; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/NetworkVersionInfoIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/NetworkVersionInfoIntegrationTest.java similarity index 90% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/NetworkVersionInfoIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/NetworkVersionInfoIntegrationTest.java index e006fb5f7c..67c85e393c 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/NetworkVersionInfoIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/NetworkVersionInfoIntegrationTest.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; -import com.hedera.hashgraph.sdk.NetworkVersionInfoQuery; +import com.hiero.sdk.NetworkVersionInfoQuery; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/NftAllowancesIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/NftAllowancesIntegrationTest.java similarity index 95% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/NftAllowancesIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/NftAllowancesIntegrationTest.java index a10dfcd24e..638ca67627 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/NftAllowancesIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/NftAllowancesIntegrationTest.java @@ -17,27 +17,27 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatExceptionOfType; -import com.hedera.hashgraph.sdk.AccountAllowanceApproveTransaction; -import com.hedera.hashgraph.sdk.AccountAllowanceDeleteTransaction; -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.NftId; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.Status; -import com.hedera.hashgraph.sdk.TokenAssociateTransaction; -import com.hedera.hashgraph.sdk.TokenCreateTransaction; -import com.hedera.hashgraph.sdk.TokenId; -import com.hedera.hashgraph.sdk.TokenMintTransaction; -import com.hedera.hashgraph.sdk.TokenNftInfoQuery; -import com.hedera.hashgraph.sdk.TokenType; -import com.hedera.hashgraph.sdk.TransactionId; -import com.hedera.hashgraph.sdk.TransferTransaction; +import com.hiero.sdk.AccountAllowanceApproveTransaction; +import com.hiero.sdk.AccountAllowanceDeleteTransaction; +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.NftId; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.Status; +import com.hiero.sdk.TokenAssociateTransaction; +import com.hiero.sdk.TokenCreateTransaction; +import com.hiero.sdk.TokenId; +import com.hiero.sdk.TokenMintTransaction; +import com.hiero.sdk.TokenNftInfoQuery; +import com.hiero.sdk.TokenType; +import com.hiero.sdk.TransactionId; +import com.hiero.sdk.TransferTransaction; import java.nio.charset.StandardCharsets; import java.util.List; import org.junit.jupiter.api.DisplayName; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/NftMetadataGenerator.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/NftMetadataGenerator.java similarity index 96% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/NftMetadataGenerator.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/NftMetadataGenerator.java index 2c731905cf..aed75ab689 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/NftMetadataGenerator.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/NftMetadataGenerator.java @@ -17,7 +17,7 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; import java.util.ArrayList; import java.util.Collections; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/NodeCreateTransactionIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/NodeCreateTransactionIntegrationTest.java similarity index 92% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/NodeCreateTransactionIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/NodeCreateTransactionIntegrationTest.java index bda6cb10ba..ade4449aed 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/NodeCreateTransactionIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/NodeCreateTransactionIntegrationTest.java @@ -17,16 +17,16 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; -import static com.hedera.hashgraph.sdk.test.integration.IntegrationTestEnv.LOCAL_CONSENSUS_NODE_ACCOUNT_ID; +import static com.hiero.sdk.test.integration.IntegrationTestEnv.LOCAL_CONSENSUS_NODE_ACCOUNT_ID; -import com.hedera.hashgraph.sdk.AccountId; -import com.hedera.hashgraph.sdk.Client; -import com.hedera.hashgraph.sdk.Endpoint; -import com.hedera.hashgraph.sdk.NodeCreateTransaction; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.PrivateKeyECDSA; +import com.hiero.sdk.AccountId; +import com.hiero.sdk.Client; +import com.hiero.sdk.Endpoint; +import com.hiero.sdk.NodeCreateTransaction; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.PrivateKeyECDSA; import java.util.HashMap; import java.util.List; import org.bouncycastle.util.encoders.Hex; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ReceiptQueryIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ReceiptQueryIntegrationTest.java similarity index 94% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ReceiptQueryIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ReceiptQueryIntegrationTest.java index e2e1601101..0208677f93 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ReceiptQueryIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ReceiptQueryIntegrationTest.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.TransactionReceiptQuery; -import com.hedera.hashgraph.sdk.TransactionRecordQuery; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.TransactionReceiptQuery; +import com.hiero.sdk.TransactionRecordQuery; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ScheduleCreateIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ScheduleCreateIntegrationTest.java similarity index 92% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ScheduleCreateIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ScheduleCreateIntegrationTest.java index c871400bae..1cb638dfba 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/ScheduleCreateIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/ScheduleCreateIntegrationTest.java @@ -17,29 +17,29 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.AccountBalanceQuery; -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.AccountDeleteTransaction; -import com.hedera.hashgraph.sdk.AccountId; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.KeyList; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.ScheduleCreateTransaction; -import com.hedera.hashgraph.sdk.ScheduleId; -import com.hedera.hashgraph.sdk.ScheduleInfo; -import com.hedera.hashgraph.sdk.ScheduleInfoQuery; -import com.hedera.hashgraph.sdk.ScheduleSignTransaction; -import com.hedera.hashgraph.sdk.TokenAssociateTransaction; -import com.hedera.hashgraph.sdk.TokenCreateTransaction; -import com.hedera.hashgraph.sdk.TopicCreateTransaction; -import com.hedera.hashgraph.sdk.TopicMessageSubmitTransaction; -import com.hedera.hashgraph.sdk.TransactionId; -import com.hedera.hashgraph.sdk.TransactionReceipt; -import com.hedera.hashgraph.sdk.TransactionResponse; -import com.hedera.hashgraph.sdk.TransferTransaction; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.AccountBalanceQuery; +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.AccountDeleteTransaction; +import com.hiero.sdk.AccountId; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.KeyList; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.ScheduleCreateTransaction; +import com.hiero.sdk.ScheduleId; +import com.hiero.sdk.ScheduleInfo; +import com.hiero.sdk.ScheduleInfoQuery; +import com.hiero.sdk.ScheduleSignTransaction; +import com.hiero.sdk.TokenAssociateTransaction; +import com.hiero.sdk.TokenCreateTransaction; +import com.hiero.sdk.TopicCreateTransaction; +import com.hiero.sdk.TopicMessageSubmitTransaction; +import com.hiero.sdk.TransactionId; +import com.hiero.sdk.TransactionReceipt; +import com.hiero.sdk.TransactionResponse; +import com.hiero.sdk.TransferTransaction; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/SystemIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/SystemIntegrationTest.java similarity index 92% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/SystemIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/SystemIntegrationTest.java index f94f4a675e..694a454783 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/SystemIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/SystemIntegrationTest.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; -import com.hedera.hashgraph.sdk.ContractCreateTransaction; -import com.hedera.hashgraph.sdk.ContractFunctionParameters; -import com.hedera.hashgraph.sdk.FileCreateTransaction; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.Status; -import com.hedera.hashgraph.sdk.SystemDeleteTransaction; -import com.hedera.hashgraph.sdk.SystemUndeleteTransaction; +import com.hiero.sdk.ContractCreateTransaction; +import com.hiero.sdk.ContractFunctionParameters; +import com.hiero.sdk.FileCreateTransaction; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.Status; +import com.hiero.sdk.SystemDeleteTransaction; +import com.hiero.sdk.SystemUndeleteTransaction; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import java.time.Instant; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenAirdropCancelIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenAirdropCancelIntegrationTest.java similarity index 95% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenAirdropCancelIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenAirdropCancelIntegrationTest.java index 3d15da8e23..b0284e4286 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenAirdropCancelIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenAirdropCancelIntegrationTest.java @@ -17,29 +17,29 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; -import static com.hedera.hashgraph.sdk.test.integration.EntityHelper.fungibleInitialBalance; -import static com.hedera.hashgraph.sdk.test.integration.EntityHelper.mitedNfts; +import static com.hiero.sdk.test.integration.EntityHelper.fungibleInitialBalance; +import static com.hiero.sdk.test.integration.EntityHelper.mitedNfts; import static org.assertj.core.api.AssertionsForClassTypes.assertThatExceptionOfType; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; -import com.hedera.hashgraph.sdk.AccountBalanceQuery; -import com.hedera.hashgraph.sdk.PendingAirdropId; -import com.hedera.hashgraph.sdk.PendingAirdropRecord; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.Status; -import com.hedera.hashgraph.sdk.TokenAirdropTransaction; -import com.hedera.hashgraph.sdk.TokenAssociateTransaction; -import com.hedera.hashgraph.sdk.TokenCancelAirdropTransaction; -import com.hedera.hashgraph.sdk.TokenDeleteTransaction; -import com.hedera.hashgraph.sdk.TokenFreezeTransaction; -import com.hedera.hashgraph.sdk.TokenMintTransaction; -import com.hedera.hashgraph.sdk.TokenPauseTransaction; -import com.hedera.hashgraph.sdk.TransactionId; +import com.hiero.sdk.AccountBalanceQuery; +import com.hiero.sdk.PendingAirdropId; +import com.hiero.sdk.PendingAirdropRecord; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.Status; +import com.hiero.sdk.TokenAirdropTransaction; +import com.hiero.sdk.TokenAssociateTransaction; +import com.hiero.sdk.TokenCancelAirdropTransaction; +import com.hiero.sdk.TokenDeleteTransaction; +import com.hiero.sdk.TokenFreezeTransaction; +import com.hiero.sdk.TokenMintTransaction; +import com.hiero.sdk.TokenPauseTransaction; +import com.hiero.sdk.TransactionId; import java.util.ArrayList; import java.util.Collections; import org.junit.jupiter.api.DisplayName; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenAirdropClaimIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenAirdropClaimIntegrationTest.java similarity index 96% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenAirdropClaimIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenAirdropClaimIntegrationTest.java index 07817fbc00..de3954fcc6 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenAirdropClaimIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenAirdropClaimIntegrationTest.java @@ -17,28 +17,28 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; -import static com.hedera.hashgraph.sdk.test.integration.EntityHelper.fungibleInitialBalance; -import static com.hedera.hashgraph.sdk.test.integration.EntityHelper.mitedNfts; +import static com.hiero.sdk.test.integration.EntityHelper.fungibleInitialBalance; +import static com.hiero.sdk.test.integration.EntityHelper.mitedNfts; import static org.assertj.core.api.Assertions.assertThatExceptionOfType; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; -import com.hedera.hashgraph.sdk.AccountBalanceQuery; -import com.hedera.hashgraph.sdk.PendingAirdropId; -import com.hedera.hashgraph.sdk.PendingAirdropRecord; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.Status; -import com.hedera.hashgraph.sdk.TokenAirdropTransaction; -import com.hedera.hashgraph.sdk.TokenAssociateTransaction; -import com.hedera.hashgraph.sdk.TokenClaimAirdropTransaction; -import com.hedera.hashgraph.sdk.TokenDeleteTransaction; -import com.hedera.hashgraph.sdk.TokenFreezeTransaction; -import com.hedera.hashgraph.sdk.TokenMintTransaction; -import com.hedera.hashgraph.sdk.TokenPauseTransaction; +import com.hiero.sdk.AccountBalanceQuery; +import com.hiero.sdk.PendingAirdropId; +import com.hiero.sdk.PendingAirdropRecord; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.Status; +import com.hiero.sdk.TokenAirdropTransaction; +import com.hiero.sdk.TokenAssociateTransaction; +import com.hiero.sdk.TokenClaimAirdropTransaction; +import com.hiero.sdk.TokenDeleteTransaction; +import com.hiero.sdk.TokenFreezeTransaction; +import com.hiero.sdk.TokenMintTransaction; +import com.hiero.sdk.TokenPauseTransaction; import java.util.ArrayList; import java.util.Collections; import org.junit.jupiter.api.DisplayName; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenAirdropTransactionIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenAirdropTransactionIntegrationTest.java similarity index 95% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenAirdropTransactionIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenAirdropTransactionIntegrationTest.java index 899d6c3742..1575309589 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenAirdropTransactionIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenAirdropTransactionIntegrationTest.java @@ -17,33 +17,33 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; -import static com.hedera.hashgraph.sdk.test.integration.EntityHelper.fungibleInitialBalance; -import static com.hedera.hashgraph.sdk.test.integration.EntityHelper.mitedNfts; +import static com.hiero.sdk.test.integration.EntityHelper.fungibleInitialBalance; +import static com.hiero.sdk.test.integration.EntityHelper.mitedNfts; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatExceptionOfType; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNull; -import com.hedera.hashgraph.sdk.AccountAllowanceApproveTransaction; -import com.hedera.hashgraph.sdk.AccountBalanceQuery; -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.AccountId; -import com.hedera.hashgraph.sdk.CustomFixedFee; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.PublicKey; -import com.hedera.hashgraph.sdk.Status; -import com.hedera.hashgraph.sdk.TokenAirdropTransaction; -import com.hedera.hashgraph.sdk.TokenAssociateTransaction; -import com.hedera.hashgraph.sdk.TokenCreateTransaction; -import com.hedera.hashgraph.sdk.TokenMintTransaction; -import com.hedera.hashgraph.sdk.TokenSupplyType; -import com.hedera.hashgraph.sdk.TransactionId; -import com.hedera.hashgraph.sdk.TransferTransaction; +import com.hiero.sdk.AccountAllowanceApproveTransaction; +import com.hiero.sdk.AccountBalanceQuery; +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.AccountId; +import com.hiero.sdk.CustomFixedFee; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.PublicKey; +import com.hiero.sdk.Status; +import com.hiero.sdk.TokenAirdropTransaction; +import com.hiero.sdk.TokenAssociateTransaction; +import com.hiero.sdk.TokenCreateTransaction; +import com.hiero.sdk.TokenMintTransaction; +import com.hiero.sdk.TokenSupplyType; +import com.hiero.sdk.TransactionId; +import com.hiero.sdk.TransferTransaction; import java.util.Collections; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenAutomaticAssociationIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenAutomaticAssociationIntegrationTest.java similarity index 97% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenAutomaticAssociationIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenAutomaticAssociationIntegrationTest.java index 80d98aef93..350aeb682f 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenAutomaticAssociationIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenAutomaticAssociationIntegrationTest.java @@ -17,18 +17,18 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.AccountAllowanceApproveTransaction; -import com.hedera.hashgraph.sdk.AccountBalanceQuery; -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.AccountInfoQuery; -import com.hedera.hashgraph.sdk.AccountUpdateTransaction; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.TokenDeleteTransaction; -import com.hedera.hashgraph.sdk.TokenMintTransaction; -import com.hedera.hashgraph.sdk.TransactionId; -import com.hedera.hashgraph.sdk.TransferTransaction; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.AccountAllowanceApproveTransaction; +import com.hiero.sdk.AccountBalanceQuery; +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.AccountInfoQuery; +import com.hiero.sdk.AccountUpdateTransaction; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.TokenDeleteTransaction; +import com.hiero.sdk.TokenMintTransaction; +import com.hiero.sdk.TransactionId; +import com.hiero.sdk.TransferTransaction; import java.util.ArrayList; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenBurnIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenBurnIntegrationTest.java similarity index 93% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenBurnIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenBurnIntegrationTest.java index dde7405f2d..3e0118cb32 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenBurnIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenBurnIntegrationTest.java @@ -17,20 +17,20 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.Status; -import com.hedera.hashgraph.sdk.TokenAssociateTransaction; -import com.hedera.hashgraph.sdk.TokenBurnTransaction; -import com.hedera.hashgraph.sdk.TokenCreateTransaction; -import com.hedera.hashgraph.sdk.TokenMintTransaction; -import com.hedera.hashgraph.sdk.TokenType; -import com.hedera.hashgraph.sdk.TransferTransaction; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.Status; +import com.hiero.sdk.TokenAssociateTransaction; +import com.hiero.sdk.TokenBurnTransaction; +import com.hiero.sdk.TokenCreateTransaction; +import com.hiero.sdk.TokenMintTransaction; +import com.hiero.sdk.TokenType; +import com.hiero.sdk.TransferTransaction; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenCreateIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenCreateIntegrationTest.java similarity index 96% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenCreateIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenCreateIntegrationTest.java index 598d259691..ec802549f7 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenCreateIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenCreateIntegrationTest.java @@ -17,22 +17,22 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; import static org.assertj.core.api.Assertions.assertThatExceptionOfType; -import com.hedera.hashgraph.sdk.AccountId; -import com.hedera.hashgraph.sdk.CustomFee; -import com.hedera.hashgraph.sdk.CustomFixedFee; -import com.hedera.hashgraph.sdk.CustomFractionalFee; -import com.hedera.hashgraph.sdk.CustomRoyaltyFee; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.Status; -import com.hedera.hashgraph.sdk.TokenCreateTransaction; -import com.hedera.hashgraph.sdk.TokenType; +import com.hiero.sdk.AccountId; +import com.hiero.sdk.CustomFee; +import com.hiero.sdk.CustomFixedFee; +import com.hiero.sdk.CustomFractionalFee; +import com.hiero.sdk.CustomRoyaltyFee; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.Status; +import com.hiero.sdk.TokenCreateTransaction; +import com.hiero.sdk.TokenType; import java.util.ArrayList; import java.util.Collections; import java.util.List; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenDeleteIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenDeleteIntegrationTest.java similarity index 92% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenDeleteIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenDeleteIntegrationTest.java index 31f909c1e1..5244bcb652 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenDeleteIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenDeleteIntegrationTest.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.Status; -import com.hedera.hashgraph.sdk.TokenCreateTransaction; -import com.hedera.hashgraph.sdk.TokenDeleteTransaction; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.Status; +import com.hiero.sdk.TokenCreateTransaction; +import com.hiero.sdk.TokenDeleteTransaction; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenDissociateIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenDissociateIntegrationTest.java similarity index 94% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenDissociateIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenDissociateIntegrationTest.java index f6dcaceacd..d02acb3ab9 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenDissociateIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenDissociateIntegrationTest.java @@ -17,17 +17,17 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.Status; -import com.hedera.hashgraph.sdk.TokenAssociateTransaction; -import com.hedera.hashgraph.sdk.TokenCreateTransaction; -import com.hedera.hashgraph.sdk.TokenDissociateTransaction; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.Status; +import com.hiero.sdk.TokenAssociateTransaction; +import com.hiero.sdk.TokenCreateTransaction; +import com.hiero.sdk.TokenDissociateTransaction; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenFeeScheduleUpdateIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenFeeScheduleUpdateIntegrationTest.java similarity index 94% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenFeeScheduleUpdateIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenFeeScheduleUpdateIntegrationTest.java index fa544a9498..910f9fccad 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenFeeScheduleUpdateIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenFeeScheduleUpdateIntegrationTest.java @@ -17,17 +17,17 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.CustomFee; -import com.hedera.hashgraph.sdk.CustomFixedFee; -import com.hedera.hashgraph.sdk.CustomFractionalFee; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.Status; -import com.hedera.hashgraph.sdk.TokenCreateTransaction; -import com.hedera.hashgraph.sdk.TokenFeeScheduleUpdateTransaction; -import com.hedera.hashgraph.sdk.TokenInfoQuery; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.CustomFee; +import com.hiero.sdk.CustomFixedFee; +import com.hiero.sdk.CustomFractionalFee; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.Status; +import com.hiero.sdk.TokenCreateTransaction; +import com.hiero.sdk.TokenFeeScheduleUpdateTransaction; +import com.hiero.sdk.TokenInfoQuery; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenFreezeIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenFreezeIntegrationTest.java similarity index 93% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenFreezeIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenFreezeIntegrationTest.java index c9fb87a6db..cffa70da7c 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenFreezeIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenFreezeIntegrationTest.java @@ -17,17 +17,17 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.Status; -import com.hedera.hashgraph.sdk.TokenAssociateTransaction; -import com.hedera.hashgraph.sdk.TokenCreateTransaction; -import com.hedera.hashgraph.sdk.TokenFreezeTransaction; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.Status; +import com.hiero.sdk.TokenAssociateTransaction; +import com.hiero.sdk.TokenCreateTransaction; +import com.hiero.sdk.TokenFreezeTransaction; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; @@ -111,7 +111,7 @@ void cannotFreezeAccountOnTokenWhenTokenIDIsNotSet() throws Exception { .getReceipt(testEnv.client); }).withMessageContaining(Status.INVALID_TOKEN_ID.toString()); - } + } } @Test diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenGrantKycIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenGrantKycIntegrationTest.java similarity index 93% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenGrantKycIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenGrantKycIntegrationTest.java index 08b7efb4e6..79cbcfc785 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenGrantKycIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenGrantKycIntegrationTest.java @@ -17,17 +17,17 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.Status; -import com.hedera.hashgraph.sdk.TokenAssociateTransaction; -import com.hedera.hashgraph.sdk.TokenCreateTransaction; -import com.hedera.hashgraph.sdk.TokenGrantKycTransaction; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.Status; +import com.hiero.sdk.TokenAssociateTransaction; +import com.hiero.sdk.TokenCreateTransaction; +import com.hiero.sdk.TokenGrantKycTransaction; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenInfoIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenInfoIntegrationTest.java similarity index 95% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenInfoIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenInfoIntegrationTest.java index ee79505363..ff1f3f6a1f 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenInfoIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenInfoIntegrationTest.java @@ -17,18 +17,18 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.MaxQueryPaymentExceededException; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.TokenCreateTransaction; -import com.hedera.hashgraph.sdk.TokenDeleteTransaction; -import com.hedera.hashgraph.sdk.TokenInfoQuery; -import com.hedera.hashgraph.sdk.TokenMintTransaction; -import com.hedera.hashgraph.sdk.TokenSupplyType; -import com.hedera.hashgraph.sdk.TokenType; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.Hbar; +import com.hiero.sdk.MaxQueryPaymentExceededException; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.TokenCreateTransaction; +import com.hiero.sdk.TokenDeleteTransaction; +import com.hiero.sdk.TokenInfoQuery; +import com.hiero.sdk.TokenMintTransaction; +import com.hiero.sdk.TokenSupplyType; +import com.hiero.sdk.TokenType; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenManualAssociationIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenManualAssociationIntegrationTest.java similarity index 93% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenManualAssociationIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenManualAssociationIntegrationTest.java index e41bdcb61f..aad2da6ef4 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenManualAssociationIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenManualAssociationIntegrationTest.java @@ -17,20 +17,20 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.AccountBalanceQuery; -import com.hedera.hashgraph.sdk.AccountId; -import com.hedera.hashgraph.sdk.AccountInfoQuery; -import com.hedera.hashgraph.sdk.ContractDeleteTransaction; -import com.hedera.hashgraph.sdk.ContractInfoQuery; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.Status; -import com.hedera.hashgraph.sdk.TokenAssociateTransaction; -import com.hedera.hashgraph.sdk.TokenMintTransaction; -import com.hedera.hashgraph.sdk.TransferTransaction; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.AccountBalanceQuery; +import com.hiero.sdk.AccountId; +import com.hiero.sdk.AccountInfoQuery; +import com.hiero.sdk.ContractDeleteTransaction; +import com.hiero.sdk.ContractInfoQuery; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.Status; +import com.hiero.sdk.TokenAssociateTransaction; +import com.hiero.sdk.TokenMintTransaction; +import com.hiero.sdk.TransferTransaction; import java.util.ArrayList; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; @@ -193,7 +193,7 @@ void canManuallyAssociateContractWithNft() throws Exception { @DisplayName("Can execute token associate transaction even when token IDs are not set") void canExecuteTokenAssociateTransactionEvenWhenTokenIDsAreNotSet() throws Exception { try(var testEnv = new IntegrationTestEnv(1).useThrowawayAccount()){ - + var accountKey = PrivateKey.generateED25519(); var accountMaxAutomaticTokenAssociations = 0; var accountId = EntityHelper.createAccount(testEnv, accountKey, accountMaxAutomaticTokenAssociations); @@ -212,7 +212,7 @@ void canExecuteTokenAssociateTransactionEvenWhenTokenIDsAreNotSet() throws Excep @DisplayName("Cannot Manually associate Account with a Token when Account ID is not set") void cannotAssociateAccountWithTokensWhenAccountIDIsNotSet() throws Exception { try(var testEnv = new IntegrationTestEnv(1).useThrowawayAccount()){ - + var accountKey = PrivateKey.generateED25519(); var accountMaxAutomaticTokenAssociations = 0; var accountId = EntityHelper.createAccount(testEnv, accountKey, accountMaxAutomaticTokenAssociations); diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenMintIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenMintIntegrationTest.java similarity index 94% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenMintIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenMintIntegrationTest.java index 44bf44fb99..21a70f654c 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenMintIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenMintIntegrationTest.java @@ -17,18 +17,18 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.Status; -import com.hedera.hashgraph.sdk.TokenCreateTransaction; -import com.hedera.hashgraph.sdk.TokenMintTransaction; -import com.hedera.hashgraph.sdk.TokenSupplyType; -import com.hedera.hashgraph.sdk.TokenType; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.Status; +import com.hiero.sdk.TokenCreateTransaction; +import com.hiero.sdk.TokenMintTransaction; +import com.hiero.sdk.TokenSupplyType; +import com.hiero.sdk.TokenType; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenNftInfoIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenNftInfoIntegrationTest.java similarity index 96% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenNftInfoIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenNftInfoIntegrationTest.java index e9b8952bc3..f0c95625cc 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenNftInfoIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenNftInfoIntegrationTest.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.NftId; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.Status; -import com.hedera.hashgraph.sdk.TokenCreateTransaction; -import com.hedera.hashgraph.sdk.TokenMintTransaction; -import com.hedera.hashgraph.sdk.TokenNftInfoQuery; -import com.hedera.hashgraph.sdk.TokenType; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.NftId; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.Status; +import com.hiero.sdk.TokenCreateTransaction; +import com.hiero.sdk.TokenMintTransaction; +import com.hiero.sdk.TokenNftInfoQuery; +import com.hiero.sdk.TokenType; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenNftTransferIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenNftTransferIntegrationTest.java similarity index 89% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenNftTransferIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenNftTransferIntegrationTest.java index 0d552b8fa5..aa25efdf49 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenNftTransferIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenNftTransferIntegrationTest.java @@ -17,21 +17,21 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.Status; -import com.hedera.hashgraph.sdk.TokenAssociateTransaction; -import com.hedera.hashgraph.sdk.TokenCreateTransaction; -import com.hedera.hashgraph.sdk.TokenGrantKycTransaction; -import com.hedera.hashgraph.sdk.TokenMintTransaction; -import com.hedera.hashgraph.sdk.TokenType; -import com.hedera.hashgraph.sdk.TokenWipeTransaction; -import com.hedera.hashgraph.sdk.TransactionResponse; -import com.hedera.hashgraph.sdk.TransferTransaction; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.Status; +import com.hiero.sdk.TokenAssociateTransaction; +import com.hiero.sdk.TokenCreateTransaction; +import com.hiero.sdk.TokenGrantKycTransaction; +import com.hiero.sdk.TokenMintTransaction; +import com.hiero.sdk.TokenType; +import com.hiero.sdk.TokenWipeTransaction; +import com.hiero.sdk.TransactionResponse; +import com.hiero.sdk.TransferTransaction; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenPauseIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenPauseIntegrationTest.java similarity index 85% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenPauseIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenPauseIntegrationTest.java index f637439353..eb9b3956a9 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenPauseIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenPauseIntegrationTest.java @@ -17,19 +17,19 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; import static org.junit.jupiter.api.Assertions.assertThrows; -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.TokenAssociateTransaction; -import com.hedera.hashgraph.sdk.TokenCreateTransaction; -import com.hedera.hashgraph.sdk.TokenPauseTransaction; -import com.hedera.hashgraph.sdk.TransferTransaction; +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.TokenAssociateTransaction; +import com.hiero.sdk.TokenCreateTransaction; +import com.hiero.sdk.TokenPauseTransaction; +import com.hiero.sdk.TransferTransaction; import java.util.Collections; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenRejectFlowIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenRejectFlowIntegrationTest.java similarity index 95% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenRejectFlowIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenRejectFlowIntegrationTest.java index 6571974341..737a054a0f 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenRejectFlowIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenRejectFlowIntegrationTest.java @@ -17,19 +17,19 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatExceptionOfType; -import com.hedera.hashgraph.sdk.AccountBalanceQuery; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.TokenAssociateTransaction; -import com.hedera.hashgraph.sdk.TokenDeleteTransaction; -import com.hedera.hashgraph.sdk.TokenMintTransaction; -import com.hedera.hashgraph.sdk.TokenNftInfoQuery; -import com.hedera.hashgraph.sdk.TokenRejectFlow; -import com.hedera.hashgraph.sdk.TransferTransaction; +import com.hiero.sdk.AccountBalanceQuery; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.TokenAssociateTransaction; +import com.hiero.sdk.TokenDeleteTransaction; +import com.hiero.sdk.TokenMintTransaction; +import com.hiero.sdk.TokenNftInfoQuery; +import com.hiero.sdk.TokenRejectFlow; +import com.hiero.sdk.TransferTransaction; import java.util.Collections; import java.util.List; import org.junit.jupiter.api.DisplayName; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenRejectIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenRejectIntegrationTest.java similarity index 98% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenRejectIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenRejectIntegrationTest.java index 01746132d4..b58602bd6c 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenRejectIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenRejectIntegrationTest.java @@ -17,28 +17,28 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatExceptionOfType; -import com.hedera.hashgraph.sdk.AccountAllowanceApproveTransaction; -import com.hedera.hashgraph.sdk.AccountBalanceQuery; -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.TokenAssociateTransaction; -import com.hedera.hashgraph.sdk.TokenCreateTransaction; -import com.hedera.hashgraph.sdk.TokenDeleteTransaction; -import com.hedera.hashgraph.sdk.TokenFreezeTransaction; -import com.hedera.hashgraph.sdk.TokenMintTransaction; -import com.hedera.hashgraph.sdk.TokenNftInfoQuery; -import com.hedera.hashgraph.sdk.TokenPauseTransaction; -import com.hedera.hashgraph.sdk.TokenRejectTransaction; -import com.hedera.hashgraph.sdk.TokenSupplyType; -import com.hedera.hashgraph.sdk.TokenType; -import com.hedera.hashgraph.sdk.TransactionId; -import com.hedera.hashgraph.sdk.TransferTransaction; +import com.hiero.sdk.AccountAllowanceApproveTransaction; +import com.hiero.sdk.AccountBalanceQuery; +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.TokenAssociateTransaction; +import com.hiero.sdk.TokenCreateTransaction; +import com.hiero.sdk.TokenDeleteTransaction; +import com.hiero.sdk.TokenFreezeTransaction; +import com.hiero.sdk.TokenMintTransaction; +import com.hiero.sdk.TokenNftInfoQuery; +import com.hiero.sdk.TokenPauseTransaction; +import com.hiero.sdk.TokenRejectTransaction; +import com.hiero.sdk.TokenSupplyType; +import com.hiero.sdk.TokenType; +import com.hiero.sdk.TransactionId; +import com.hiero.sdk.TransferTransaction; import java.util.Collections; import java.util.List; @@ -995,7 +995,7 @@ void cannotRejectTokenWhenTokenOrNFTIdIsNotSet() throws Exception { .execute(testEnv.client) .getReceipt(testEnv.client); }).withMessageContaining("EMPTY_TOKEN_REFERENCE_LIST"); - + } } diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenRevokeKycIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenRevokeKycIntegrationTest.java similarity index 93% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenRevokeKycIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenRevokeKycIntegrationTest.java index 31c57e6aa4..d4d635df04 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenRevokeKycIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenRevokeKycIntegrationTest.java @@ -17,17 +17,17 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.Status; -import com.hedera.hashgraph.sdk.TokenAssociateTransaction; -import com.hedera.hashgraph.sdk.TokenCreateTransaction; -import com.hedera.hashgraph.sdk.TokenRevokeKycTransaction; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.Status; +import com.hiero.sdk.TokenAssociateTransaction; +import com.hiero.sdk.TokenCreateTransaction; +import com.hiero.sdk.TokenRevokeKycTransaction; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenTransferIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenTransferIntegrationTest.java similarity index 90% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenTransferIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenTransferIntegrationTest.java index 13e52fa8c5..5ff64367f8 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenTransferIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenTransferIntegrationTest.java @@ -17,20 +17,20 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.CustomFixedFee; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.Status; -import com.hedera.hashgraph.sdk.TokenAssociateTransaction; -import com.hedera.hashgraph.sdk.TokenCreateTransaction; -import com.hedera.hashgraph.sdk.TokenDeleteTransaction; -import com.hedera.hashgraph.sdk.TokenGrantKycTransaction; -import com.hedera.hashgraph.sdk.TransactionResponse; -import com.hedera.hashgraph.sdk.TransferTransaction; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.CustomFixedFee; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.Status; +import com.hiero.sdk.TokenAssociateTransaction; +import com.hiero.sdk.TokenCreateTransaction; +import com.hiero.sdk.TokenDeleteTransaction; +import com.hiero.sdk.TokenGrantKycTransaction; +import com.hiero.sdk.TransactionResponse; +import com.hiero.sdk.TransferTransaction; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenUnfreezeIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenUnfreezeIntegrationTest.java similarity index 93% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenUnfreezeIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenUnfreezeIntegrationTest.java index 678c49687c..6f15575b66 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenUnfreezeIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenUnfreezeIntegrationTest.java @@ -17,17 +17,17 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.Status; -import com.hedera.hashgraph.sdk.TokenAssociateTransaction; -import com.hedera.hashgraph.sdk.TokenCreateTransaction; -import com.hedera.hashgraph.sdk.TokenUnfreezeTransaction; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.Status; +import com.hiero.sdk.TokenAssociateTransaction; +import com.hiero.sdk.TokenCreateTransaction; +import com.hiero.sdk.TokenUnfreezeTransaction; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenUnpauseIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenUnpauseIntegrationTest.java similarity index 83% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenUnpauseIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenUnpauseIntegrationTest.java index 7c0d037c2e..51859de747 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenUnpauseIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenUnpauseIntegrationTest.java @@ -17,21 +17,21 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; import static org.junit.jupiter.api.Assertions.assertThrows; -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.AccountDeleteTransaction; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.TokenAssociateTransaction; -import com.hedera.hashgraph.sdk.TokenCreateTransaction; -import com.hedera.hashgraph.sdk.TokenDeleteTransaction; -import com.hedera.hashgraph.sdk.TokenUnpauseTransaction; -import com.hedera.hashgraph.sdk.TokenWipeTransaction; -import com.hedera.hashgraph.sdk.TransferTransaction; +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.AccountDeleteTransaction; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.TokenAssociateTransaction; +import com.hiero.sdk.TokenCreateTransaction; +import com.hiero.sdk.TokenDeleteTransaction; +import com.hiero.sdk.TokenUnpauseTransaction; +import com.hiero.sdk.TokenWipeTransaction; +import com.hiero.sdk.TransferTransaction; import java.util.Collections; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenUpdateIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenUpdateIntegrationTest.java similarity index 99% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenUpdateIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenUpdateIntegrationTest.java index ba4dbc4331..d68b33cbbf 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenUpdateIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenUpdateIntegrationTest.java @@ -17,22 +17,22 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatExceptionOfType; -import com.hedera.hashgraph.sdk.KeyList; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.PublicKey; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.Status; -import com.hedera.hashgraph.sdk.TokenCreateTransaction; -import com.hedera.hashgraph.sdk.TokenInfoQuery; -import com.hedera.hashgraph.sdk.TokenKeyValidation; -import com.hedera.hashgraph.sdk.TokenType; -import com.hedera.hashgraph.sdk.TokenUpdateTransaction; +import com.hiero.sdk.KeyList; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.PublicKey; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.Status; +import com.hiero.sdk.TokenCreateTransaction; +import com.hiero.sdk.TokenInfoQuery; +import com.hiero.sdk.TokenKeyValidation; +import com.hiero.sdk.TokenType; +import com.hiero.sdk.TokenUpdateTransaction; import java.util.Objects; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenUpdateNftsIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenUpdateNftsIntegrationTest.java similarity index 96% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenUpdateNftsIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenUpdateNftsIntegrationTest.java index 5b256e1596..6b9700ff55 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenUpdateNftsIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenUpdateNftsIntegrationTest.java @@ -17,23 +17,23 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatExceptionOfType; -import com.hedera.hashgraph.sdk.Client; -import com.hedera.hashgraph.sdk.NftId; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.Status; -import com.hedera.hashgraph.sdk.TokenCreateTransaction; -import com.hedera.hashgraph.sdk.TokenId; -import com.hedera.hashgraph.sdk.TokenInfoQuery; -import com.hedera.hashgraph.sdk.TokenMintTransaction; -import com.hedera.hashgraph.sdk.TokenNftInfoQuery; -import com.hedera.hashgraph.sdk.TokenType; -import com.hedera.hashgraph.sdk.TokenUpdateNftsTransaction; +import com.hiero.sdk.Client; +import com.hiero.sdk.NftId; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.Status; +import com.hiero.sdk.TokenCreateTransaction; +import com.hiero.sdk.TokenId; +import com.hiero.sdk.TokenInfoQuery; +import com.hiero.sdk.TokenMintTransaction; +import com.hiero.sdk.TokenNftInfoQuery; +import com.hiero.sdk.TokenType; +import com.hiero.sdk.TokenUpdateNftsTransaction; import java.util.List; import java.util.Objects; import org.junit.jupiter.api.DisplayName; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenWipeIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenWipeIntegrationTest.java similarity index 95% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenWipeIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenWipeIntegrationTest.java index 2eeb3d1c47..3b4a2f2f3c 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TokenWipeIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TokenWipeIntegrationTest.java @@ -17,21 +17,21 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.Status; -import com.hedera.hashgraph.sdk.TokenAssociateTransaction; -import com.hedera.hashgraph.sdk.TokenCreateTransaction; -import com.hedera.hashgraph.sdk.TokenGrantKycTransaction; -import com.hedera.hashgraph.sdk.TokenMintTransaction; -import com.hedera.hashgraph.sdk.TokenType; -import com.hedera.hashgraph.sdk.TokenWipeTransaction; -import com.hedera.hashgraph.sdk.TransferTransaction; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.Status; +import com.hiero.sdk.TokenAssociateTransaction; +import com.hiero.sdk.TokenCreateTransaction; +import com.hiero.sdk.TokenGrantKycTransaction; +import com.hiero.sdk.TokenMintTransaction; +import com.hiero.sdk.TokenType; +import com.hiero.sdk.TokenWipeTransaction; +import com.hiero.sdk.TransferTransaction; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TopicCreateIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TopicCreateIntegrationTest.java similarity index 91% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TopicCreateIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TopicCreateIntegrationTest.java index 375f7ee137..fcdd5f4353 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TopicCreateIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TopicCreateIntegrationTest.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; -import com.hedera.hashgraph.sdk.TopicCreateTransaction; -import com.hedera.hashgraph.sdk.TopicDeleteTransaction; +import com.hiero.sdk.TopicCreateTransaction; +import com.hiero.sdk.TopicDeleteTransaction; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TopicDeleteIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TopicDeleteIntegrationTest.java similarity index 89% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TopicDeleteIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TopicDeleteIntegrationTest.java index 6a33a35b1b..e3899ee1c4 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TopicDeleteIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TopicDeleteIntegrationTest.java @@ -17,12 +17,12 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; -import com.hedera.hashgraph.sdk.ReceiptStatusException; -import com.hedera.hashgraph.sdk.Status; -import com.hedera.hashgraph.sdk.TopicCreateTransaction; -import com.hedera.hashgraph.sdk.TopicDeleteTransaction; +import com.hiero.sdk.ReceiptStatusException; +import com.hiero.sdk.Status; +import com.hiero.sdk.TopicCreateTransaction; +import com.hiero.sdk.TopicDeleteTransaction; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TopicInfoIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TopicInfoIntegrationTest.java similarity index 94% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TopicInfoIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TopicInfoIntegrationTest.java index 014f40399b..7c6ee638d2 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TopicInfoIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TopicInfoIntegrationTest.java @@ -17,14 +17,14 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.MaxQueryPaymentExceededException; -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.TopicCreateTransaction; -import com.hedera.hashgraph.sdk.TopicDeleteTransaction; -import com.hedera.hashgraph.sdk.TopicInfoQuery; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.Hbar; +import com.hiero.sdk.MaxQueryPaymentExceededException; +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.TopicCreateTransaction; +import com.hiero.sdk.TopicDeleteTransaction; +import com.hiero.sdk.TopicInfoQuery; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TopicMessageIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TopicMessageIntegrationTest.java similarity index 98% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TopicMessageIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TopicMessageIntegrationTest.java index a8369b4edd..0ec0ab9bb8 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TopicMessageIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TopicMessageIntegrationTest.java @@ -17,9 +17,9 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; -import com.hedera.hashgraph.sdk.*; +import com.hiero.sdk.*; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import java.time.Duration; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TopicMessageSubmitIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TopicMessageSubmitIntegrationTest.java similarity index 95% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TopicMessageSubmitIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TopicMessageSubmitIntegrationTest.java index e729532657..8fbffb1f48 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TopicMessageSubmitIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TopicMessageSubmitIntegrationTest.java @@ -17,15 +17,15 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; - -import com.hedera.hashgraph.sdk.PrecheckStatusException; -import com.hedera.hashgraph.sdk.Status; -import com.hedera.hashgraph.sdk.TopicCreateTransaction; -import com.hedera.hashgraph.sdk.TopicDeleteTransaction; -import com.hedera.hashgraph.sdk.TopicInfoQuery; -import com.hedera.hashgraph.sdk.TopicMessageSubmitTransaction; -import com.hedera.hashgraph.sdk.Transaction; +package com.hiero.sdk.test.integration; + +import com.hiero.sdk.PrecheckStatusException; +import com.hiero.sdk.Status; +import com.hiero.sdk.TopicCreateTransaction; +import com.hiero.sdk.TopicDeleteTransaction; +import com.hiero.sdk.TopicInfoQuery; +import com.hiero.sdk.TopicMessageSubmitTransaction; +import com.hiero.sdk.Transaction; import org.bouncycastle.util.encoders.Hex; import org.junit.jupiter.api.Assumptions; import org.junit.jupiter.api.DisplayName; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TopicUpdateIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TopicUpdateIntegrationTest.java similarity index 88% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TopicUpdateIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TopicUpdateIntegrationTest.java index ad5ae1ef6b..89fe3242ef 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TopicUpdateIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TopicUpdateIntegrationTest.java @@ -17,12 +17,12 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; -import com.hedera.hashgraph.sdk.TopicCreateTransaction; -import com.hedera.hashgraph.sdk.TopicDeleteTransaction; -import com.hedera.hashgraph.sdk.TopicInfoQuery; -import com.hedera.hashgraph.sdk.TopicUpdateTransaction; +import com.hiero.sdk.TopicCreateTransaction; +import com.hiero.sdk.TopicDeleteTransaction; +import com.hiero.sdk.TopicInfoQuery; +import com.hiero.sdk.TopicUpdateTransaction; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TransactionIntegrationTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TransactionIntegrationTest.java similarity index 95% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TransactionIntegrationTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TransactionIntegrationTest.java index ba175b5745..e948fb3c5d 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TransactionIntegrationTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TransactionIntegrationTest.java @@ -17,39 +17,39 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; import com.google.protobuf.ByteString; -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.AccountDeleteTransaction; -import com.hedera.hashgraph.sdk.AccountId; -import com.hedera.hashgraph.sdk.FileAppendTransaction; -import com.hedera.hashgraph.sdk.FileContentsQuery; -import com.hedera.hashgraph.sdk.FileCreateTransaction; -import com.hedera.hashgraph.sdk.FileDeleteTransaction; -import com.hedera.hashgraph.sdk.FileInfoQuery; -import com.hedera.hashgraph.sdk.Hbar; -import com.hedera.hashgraph.sdk.KeyList; -import com.hedera.hashgraph.sdk.PrivateKey; -import com.hedera.hashgraph.sdk.TopicCreateTransaction; -import com.hedera.hashgraph.sdk.TopicDeleteTransaction; -import com.hedera.hashgraph.sdk.TopicInfoQuery; -import com.hedera.hashgraph.sdk.TopicMessageSubmitTransaction; -import com.hedera.hashgraph.sdk.Transaction; -import com.hedera.hashgraph.sdk.TransactionId; -import com.hedera.hashgraph.sdk.TransferTransaction; -import com.hedera.hashgraph.sdk.proto.AccountAmount; -import com.hedera.hashgraph.sdk.proto.AccountID; -import com.hedera.hashgraph.sdk.proto.CryptoTransferTransactionBody; -import com.hedera.hashgraph.sdk.proto.Duration; -import com.hedera.hashgraph.sdk.proto.SignatureMap; -import com.hedera.hashgraph.sdk.proto.SignaturePair; -import com.hedera.hashgraph.sdk.proto.SignedTransaction; -import com.hedera.hashgraph.sdk.proto.Timestamp; -import com.hedera.hashgraph.sdk.proto.TransactionBody; -import com.hedera.hashgraph.sdk.proto.TransactionID; -import com.hedera.hashgraph.sdk.proto.TransactionList; -import com.hedera.hashgraph.sdk.proto.TransferList; +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.AccountDeleteTransaction; +import com.hiero.sdk.AccountId; +import com.hiero.sdk.FileAppendTransaction; +import com.hiero.sdk.FileContentsQuery; +import com.hiero.sdk.FileCreateTransaction; +import com.hiero.sdk.FileDeleteTransaction; +import com.hiero.sdk.FileInfoQuery; +import com.hiero.sdk.Hbar; +import com.hiero.sdk.KeyList; +import com.hiero.sdk.PrivateKey; +import com.hiero.sdk.TopicCreateTransaction; +import com.hiero.sdk.TopicDeleteTransaction; +import com.hiero.sdk.TopicInfoQuery; +import com.hiero.sdk.TopicMessageSubmitTransaction; +import com.hiero.sdk.Transaction; +import com.hiero.sdk.TransactionId; +import com.hiero.sdk.TransferTransaction; +import com.hiero.sdk.proto.AccountAmount; +import com.hiero.sdk.proto.AccountID; +import com.hiero.sdk.proto.CryptoTransferTransactionBody; +import com.hiero.sdk.proto.Duration; +import com.hiero.sdk.proto.SignatureMap; +import com.hiero.sdk.proto.SignaturePair; +import com.hiero.sdk.proto.SignedTransaction; +import com.hiero.sdk.proto.Timestamp; +import com.hiero.sdk.proto.TransactionBody; +import com.hiero.sdk.proto.TransactionID; +import com.hiero.sdk.proto.TransactionList; +import com.hiero.sdk.proto.TransferList; import java.util.Objects; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.DisplayName; @@ -876,7 +876,7 @@ void transactionFromToBytes2() { var byts = signedBuilder.build().toByteString(); byts = TransactionList.newBuilder() - .addTransactionList(com.hedera.hashgraph.sdk.proto.Transaction.newBuilder() + .addTransactionList(com.hiero.sdk.proto.Transaction.newBuilder() .setSignedTransactionBytes(byts) .build()) .build().toByteString(); diff --git a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TransactionResponseTest.java b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TransactionResponseTest.java similarity index 91% rename from sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TransactionResponseTest.java rename to sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TransactionResponseTest.java index ab85d144d5..aaf3917c14 100644 --- a/sdk/src/testIntegration/java/com/hedera/hashgraph/sdk/test/integration/TransactionResponseTest.java +++ b/sdk/src/testIntegration/java/com/hiero/sdk/test/integration/TransactionResponseTest.java @@ -17,10 +17,10 @@ * limitations under the License. * */ -package com.hedera.hashgraph.sdk.test.integration; +package com.hiero.sdk.test.integration; -import com.hedera.hashgraph.sdk.AccountCreateTransaction; -import com.hedera.hashgraph.sdk.PrivateKey; +import com.hiero.sdk.AccountCreateTransaction; +import com.hiero.sdk.PrivateKey; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/sdk/src/testIntegration/java/module-info.java b/sdk/src/testIntegration/java/module-info.java index 90228b96c1..b20d1f30e9 100644 --- a/sdk/src/testIntegration/java/module-info.java +++ b/sdk/src/testIntegration/java/module-info.java @@ -18,8 +18,8 @@ * */ -open module com.hedera.hashgraph.sdk.test.integration { - requires com.hedera.hashgraph.sdk; +open module com.hiero.sdk.test.integration { + requires com.hiero.sdk; requires headlong; requires org.assertj.core; requires org.bouncycastle.provider;