diff --git a/CMakeLists.txt b/CMakeLists.txt index 39652988b..77b858103 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.15...3.24) -project(hedera-sdk-cpp VERSION 0.1.0 DESCRIPTION "Hedera SDK C++" LANGUAGES CXX) +project(hiero-sdk-cpp VERSION 0.1.0 DESCRIPTION "Hiero SDK C++" LANGUAGES CXX) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index aacb77c52..6d139a87f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ -# Contributing to the Hedera SDK for C++ +# Contributing to the Hiero SDK for C++ -Thank you for your interest in contributing the Hedera SDK for C++! +Thank you for your interest in contributing the Hiero SDK for C++! We appreciate your interest in helping us and the rest of our community. We welcome bug reports, feature requests, and code contributions. @@ -129,7 +129,7 @@ It will populate the newly added tag in `origin`. ### Step 2 - Draft Release in GitHub -Open [Hedera C++ SDK](https://github.com/hashgraph/hedera-sdk-cpp) and search for `Create a new release` link. +Open [Hiero C++ SDK](https://github.com/hashgraph/hiero-sdk-cpp) and search for `Create a new release` link. Select tag `v0.3.0` from the dropdown list. Enter the Release title to be same as the release number which is been prepared (for example: `v0.3.0`). @@ -146,7 +146,7 @@ emoji ➡️ followed by a description in plain English for each over-arching ne #### Examples This section should list all of the newly added examples. Each of them should represent a link to the implementation ( -for example: [TransferTokensExample.cc](<(https://github.com/hashgraph/hedera-sdk-cpp/blob/main/src/sdk/examples/TransferTokensExample.cc)>). It's a good idea also to add prefix with ➡️ before +for example: [TransferTokensExample.cc](<(https://github.com/hashgraph/hiero-sdk-cpp/blob/main/src/sdk/examples/TransferTokensExample.cc)>). It's a good idea also to add prefix with ➡️ before each line. #### Notes @@ -160,12 +160,12 @@ Here should be listed all of the Pull Requests (PRs) which are part of the relea > (pull-request-title) by (@author) in (#link) -[issues]: https://github.com/hashgraph/hedera-sdk-cpp/issues -[label-bug]: https://github.com/hashgraph/hedera-sdk-cpp/labels/bug +[issues]: https://github.com/hashgraph/hiero-sdk-cpp/issues +[label-bug]: https://github.com/hashgraph/hiero-sdk-cpp/labels/bug [mwe]: https://en.wikipedia.org/wiki/Minimal_Working_Example [markdown]: https://guides.github.com/features/mastering-markdown/ -[label-feature-enhancement]: https://github.com/hashgraph/hedera-sdk-cpp/labels/Feature%20Enhancement -[label-new-feature]: https://github.com/hashgraph/hedera-sdk-cpp/labels/New%20Feature -[pull-requests]: https://github.com/hashgraph/hedera-sdk-cpp/pulls -[license]: https://github.com/hashgraph/hedera-sdk-cpp/blob/main/LICENSE +[label-feature-enhancement]: https://github.com/hashgraph/hiero-sdk-cpp/labels/Feature%20Enhancement +[label-new-feature]: https://github.com/hashgraph/hiero-sdk-cpp/labels/New%20Feature +[pull-requests]: https://github.com/hashgraph/hiero-sdk-cpp/pulls +[license]: https://github.com/hashgraph/hiero-sdk-cpp/blob/main/LICENSE [discord]: https://hedera.com/discord diff --git a/HederaApi.cmake b/HederaApi.cmake index 590d89adc..9f2929044 100644 --- a/HederaApi.cmake +++ b/HederaApi.cmake @@ -1,4 +1,4 @@ -set(HAPI_VERSION_TAG "v0.55.0" CACHE STRING "Use the configured version tag for the Hedera API protobufs") +set(HAPI_VERSION_TAG "v0.55.0" CACHE STRING "Use the configured version tag for the Hiero API protobufs") if (HAPI_VERSION_TAG STREQUAL "") set(HAPI_VERSION_TAG "v0.55.0") diff --git a/LICENSE b/LICENSE index 6496aee95..eaa919ba8 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. -Copyright 2022 Hedera Hashgraph LLC +Copyright 2022 Hiero Hashgraph LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/README.md b/README.md index ac223ad5a..5123d607c 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ![](https://img.shields.io/badge/c++-17-blue) ![](https://img.shields.io/badge/cmake-3.24-blue) -[![](https://github.com/hashgraph/hedera-sdk-cpp/actions/workflows/flow-pull-request-checks.yaml/badge.svg)](https://github.com/hashgraph/hedera-sdk-cpp/actions/workflows/flow-pull-request-checks.yaml) +[![](https://github.com/hashgraph/hiero-sdk-cpp/actions/workflows/flow-pull-request-checks.yaml/badge.svg)](https://github.com/hashgraph/hiero-sdk-cpp/actions/workflows/flow-pull-request-checks.yaml) The C++ SDK for interacting with a Hiero network. @@ -128,8 +128,8 @@ located in the `addressbook/` and `config/` directories. Make sure your `.env` f - `OPERATOR_ID`: The ID of the operator account. - `OPERATOR_KEY`: The DER-encoded hex private key of the operator account. -- `HEDERA_NETWORK`: The Hedera network name. Must be one of `mainnet`, `testnet`, or `previewnet`. -- `PASSPHRASE`: Optional variable used by `hedera-sdk-cpp-generate-private-key-from-mnemonic-example` to generate a +- `HEDERA_NETWORK`: The Hiero network name. Must be one of `mainnet`, `testnet`, or `previewnet`. +- `PASSPHRASE`: Optional variable used by `hiero-sdk-cpp-generate-private-key-from-mnemonic-example` to generate a private key from a mnemonic with a passphrase. The command to run an example looks like: @@ -177,7 +177,7 @@ More instructions for contribution can be found in the ## Code of Conduct -Hiero uses the Linux Foundation Decentralised Trust [Code of Conduct]([https://github.com/hashgraph/.github/blob/main/CODE_OF_CONDUCT.md](https://www.lfdecentralizedtrust.org/code-of-conduct)). +Hiero uses the Linux Foundation Decentralised Trust [Code of Conduct](<[https://github.com/hashgraph/.github/blob/main/CODE_OF_CONDUCT.md](https://www.lfdecentralizedtrust.org/code-of-conduct)>). ## License diff --git a/src/sdk/examples/AccountAliasExample.cc b/src/sdk/examples/AccountAliasExample.cc index e09b1a1ca..bc12d542f 100644 --- a/src/sdk/examples/AccountAliasExample.cc +++ b/src/sdk/examples/AccountAliasExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -32,7 +32,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -40,17 +40,17 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); /* - * Hedera supports a form of auto account creation. + * Hiero supports a form of auto account creation. * * You can "create" an account by generating a private key, and then deriving the public key, without any need to - * interact with the Hedera network. The public key more or less acts as the user's account ID. This public key is an - * account's mAliasKey: a public key that aliases (or will eventually alias) to a Hedera account. + * interact with the Hiero network. The public key more or less acts as the user's account ID. This public key is an + * account's mAliasKey: a public key that aliases (or will eventually alias) to a Hiero account. * * An AccountId takes one of two forms: a normal AccountId with a null mAliasKey member takes the form 0.0.123, while * an AccountId with a non-null mAliasKey member takes the form @@ -62,9 +62,9 @@ int main(int argc, char** argv) * transactions, however most queries and transactions involving such an AccountId won't work until Hbar has been * transferred to the mAliasKey account. * - * There is no record in the Hedera network of an account associated with a given mAliasKey until an amount of Hbar is + * There is no record in the Hiero network of an account associated with a given mAliasKey until an amount of Hbar is * transferred to the account. The moment that Hbar is transferred to that mAliasKey AccountId is the moment that that - * account actually begins to exist in the Hedera ledger. + * account actually begins to exist in the Hiero ledger. */ // Generate a ED25519 private, public key pair diff --git a/src/sdk/examples/AccountAllowanceExample.cc b/src/sdk/examples/AccountAllowanceExample.cc index a197fc777..a254ff51d 100644 --- a/src/sdk/examples/AccountAllowanceExample.cc +++ b/src/sdk/examples/AccountAllowanceExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -34,7 +34,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -42,7 +42,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/AccountAllowanceSerializedExample.cc b/src/sdk/examples/AccountAllowanceSerializedExample.cc index 74b8e2858..10acd4c37 100644 --- a/src/sdk/examples/AccountAllowanceSerializedExample.cc +++ b/src/sdk/examples/AccountAllowanceSerializedExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -36,7 +36,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -44,7 +44,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/AccountCreateWithHtsExample.cc b/src/sdk/examples/AccountCreateWithHtsExample.cc index 66d734c7e..4e14867ca 100644 --- a/src/sdk/examples/AccountCreateWithHtsExample.cc +++ b/src/sdk/examples/AccountCreateWithHtsExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -36,7 +36,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -44,7 +44,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); @@ -62,7 +62,7 @@ int main(int argc, char** argv) std::cout << "---------" << std::endl; /** - * Step 1: Create an NFT using the Hedera token service. + * Step 1: Create an NFT using the Hiero token service. */ TokenId tokenId = TokenCreateTransaction() .setTokenName("HIP-542 Example Collection") @@ -131,7 +131,7 @@ int main(int argc, char** argv) std::cout << "---------" << std::endl; /** - * Step 1: Create a fungible token using the Hedera token service. + * Step 1: Create a fungible token using the Hiero token service. */ tokenId = TokenCreateTransaction() .setTokenName("HIP-542 Token") diff --git a/src/sdk/examples/AccountCreationWaysExample.cc b/src/sdk/examples/AccountCreationWaysExample.cc index 6b15c2cd4..8b0fe86c2 100644 --- a/src/sdk/examples/AccountCreationWaysExample.cc +++ b/src/sdk/examples/AccountCreationWaysExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,14 +22,14 @@ #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { /** * Reference: [HIP-583 Expand alias support in CryptoCreate & CryptoTransfer * Transactions](https://hips.hedera.com/hip/hip-583) - * In Hedera we have the concept of 4 different account representations: + * In Hiero we have the concept of 4 different account representations: * - An account can have an account ID in shard.realm.accountNumber format (0.0.10). * - An account can have a public key alias in * 0.0.302D300706052B8104000A032200036847776633520568B5B4B1D074C647BE63579B3D7DC9E4B638042CB4E041C8B8 format. @@ -45,15 +45,15 @@ int main(int argc, char** argv) std::cout << "Account " + hederaFormat.toString() + " corresponding Long-Zero address: " << hederaFormat.toSolidityAddress() << std::endl; - // The Hedera Long-Form Account ID: 0.0.aliasPublicKey, i.e. + // The Hiero Long-Form Account ID: 0.0.aliasPublicKey, i.e. // `0.0.302D300706052B8104000A032200036847776633520568B5B4B1D074C647BE63579B3D7DC9E4B638042CB4E041C8B8` const std::unique_ptr privateKey = ECDSAsecp256k1PrivateKey::generatePrivateKey(); const AccountId aliasAccountId = privateKey->getPublicKey()->toAccountId(); - std::cout << "Hedera Long-Form Account ID: " + aliasAccountId.toString() << std::endl; + std::cout << "Hiero Long-Form Account ID: " + aliasAccountId.toString() << std::endl; - // The Hedera Account Long-Zero address `0x000000000000000000000000000000000000000a` (for accountId 0.0.10) + // The Hiero Account Long-Zero address `0x000000000000000000000000000000000000000a` (for accountId 0.0.10) const AccountId longZeroAddress = AccountId::fromString("0x000000000000000000000000000000000000000a"); - std::cout << "Hedera Account Long-Zero address: " << longZeroAddress.toString() << std::endl; + std::cout << "Hiero Account Long-Zero address: " << longZeroAddress.toString() << std::endl; // The Ethereum Account Address / public-address `0xb794f5ea0ba39494ce839613fffba74279579268`. const AccountId evmAddress = AccountId::fromString("0xb794f5ea0ba39494ce839613fffba74279579268"); diff --git a/src/sdk/examples/AutoCreateAccountTransferTransactionExample.cc b/src/sdk/examples/AutoCreateAccountTransferTransactionExample.cc index 4d1156b9e..b89b87a91 100644 --- a/src/sdk/examples/AutoCreateAccountTransferTransactionExample.cc +++ b/src/sdk/examples/AutoCreateAccountTransferTransactionExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -35,7 +35,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -43,7 +43,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); @@ -56,15 +56,15 @@ int main(int argc, char** argv) * - Extract the ECDSA public key. * - Extract the Ethereum public address. * - Use the `TransferTransaction`. - * - Populate the `FromAddress` with the sender Hedera account ID. + * - Populate the `FromAddress` with the sender Hiero account ID. * - Populate the `ToAddress` with Ethereum public address. * - Note: Can transfer from public address to public address in the `TransferTransaction` for complete accounts. * Transfers from hollow accounts will not work because the hollow account does not have a public key * assigned to authorize transfers out of the account. - * - Sign the `TransferTransaction` transaction using an existing Hedera account and key paying for the transaction + * - Sign the `TransferTransaction` transaction using an existing Hiero account and key paying for the transaction * fee. * - The `AccountCreateTransaction` is executed as a child transaction triggered by the `TransferTransaction`. - * - The Hedera account that was created has a public address the user specified in the TransferTransaction ToAddress. + * - The Hiero account that was created has a public address the user specified in the TransferTransaction ToAddress. * - Will not have a public key at this stage. * - Cannot do anything besides receive tokens or hbars. * - The alias property of the account does not have the public address. @@ -105,7 +105,7 @@ int main(int argc, char** argv) .freezeWith(&client); /** - * Step 5: Sign the `TransferTransaction` transaction using an existing Hedera account and key paying for the + * Step 5: Sign the `TransferTransaction` transaction using an existing Hiero account and key paying for the * transaction fee. */ const TransactionResponse response = transferTransaction.execute(client); @@ -126,7 +126,7 @@ int main(int argc, char** argv) // Populate the account public EVM Address from Mirror Node newAccountId.populateAccountEvmAddress(client); - // If Mirror Node contained the account public EVM Address. It should be printed instead of the Hedera AccountID + // If Mirror Node contained the account public EVM Address. It should be printed instead of the Hiero AccountID std::cout << newAccountId.toString() << std::endl; return 0; diff --git a/src/sdk/examples/ConsensusPubSubChunkedExample.cc b/src/sdk/examples/ConsensusPubSubChunkedExample.cc index 68ef2d6dd..d10fbe29c 100644 --- a/src/sdk/examples/ConsensusPubSubChunkedExample.cc +++ b/src/sdk/examples/ConsensusPubSubChunkedExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -36,7 +36,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -44,7 +44,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); @@ -54,7 +54,7 @@ int main(int argc, char** argv) // Generate a topic. const TopicId topicId = TopicCreateTransaction() - .setMemo("hedera-sdk-cpp/ConsensusPubSubChunkedExample") + .setMemo("hiero-sdk-cpp/ConsensusPubSubChunkedExample") .setSubmitKey(submitKey) .execute(client) .getReceipt(client) diff --git a/src/sdk/examples/ConsensusPubSubExample.cc b/src/sdk/examples/ConsensusPubSubExample.cc index 41f648844..df039ff2c 100644 --- a/src/sdk/examples/ConsensusPubSubExample.cc +++ b/src/sdk/examples/ConsensusPubSubExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -34,7 +34,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -42,7 +42,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/ConsensusPubSubWithSubmitKeyExample.cc b/src/sdk/examples/ConsensusPubSubWithSubmitKeyExample.cc index 9b4c573ca..db6a4d243 100644 --- a/src/sdk/examples/ConsensusPubSubWithSubmitKeyExample.cc +++ b/src/sdk/examples/ConsensusPubSubWithSubmitKeyExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -34,7 +34,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -42,7 +42,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/ConstructClientExample.cc b/src/sdk/examples/ConstructClientExample.cc index ece672549..2bbf9b861 100644 --- a/src/sdk/examples/ConstructClientExample.cc +++ b/src/sdk/examples/ConstructClientExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -37,7 +37,7 @@ int main(int argc, char** argv) /* * Here are some ways you can construct and configure a client. A client has a network and an operator. * - * A Hedera network is made up of nodes -- individual servers who participate in the process of reaching consensus + * A Hiero network is made up of nodes -- individual servers who participate in the process of reaching consensus * on the order and validity of transactions on the network. Three networks you likely know of are previewnet, * testnet, and mainnet. * @@ -72,12 +72,12 @@ int main(int argc, char** argv) // Create a Client with a custom network. const std::unordered_map network = { - {"2.testnet.hedera.com:50211", AccountId(5ULL)}, - { "3.testnet.hedera.com:50211", AccountId(6ULL)} + { "2.testnet.hedera.com:50211", AccountId(5ULL) }, + { "3.testnet.hedera.com:50211", AccountId(6ULL) } }; Client customClient = Client::forNetwork(network); - // Since the customClient's network is in this case a subset of the Hedera Testnet, we should set the LedgerId of the + // Since the customClient's network is in this case a subset of the Hiero Testnet, we should set the LedgerId of the // Client to testnet's LedgerId. If we don't do this, checksum validation won't work (See ValidateChecksumExample.cc). // You can use customClient.getLedgerId() to check the ledger ID. If you attempt to validate a checksum against a // client whose ledger ID is not set, an IllegalStateException will be thrown. diff --git a/src/sdk/examples/ContractHelper.h b/src/sdk/examples/ContractHelper.h index 439eca8b7..5576149fb 100644 --- a/src/sdk/examples/ContractHelper.h +++ b/src/sdk/examples/ContractHelper.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_EXAMPLES_CONTRACT_HELPER_H_ -#define HEDERA_SDK_CPP_EXAMPLES_CONTRACT_HELPER_H_ +#ifndef HIERO_SDK_CPP_EXAMPLES_CONTRACT_HELPER_H_ +#define HIERO_SDK_CPP_EXAMPLES_CONTRACT_HELPER_H_ #include "AccountId.h" #include "Client.h" @@ -46,7 +46,7 @@ #include #include -namespace Hedera +namespace Hiero { /** * ContractHelper de-clutters SolidityPrecompileExample. @@ -54,7 +54,7 @@ namespace Hedera * When we instantiate a ContractHelper, we provide it with the JSON of a compiled solidity contract which is assumed to * have functions named "step0()" through "stepN()". * - * Each of these step functions is assumed to take no function parameters, and to return a Hedera ResponseCode which + * Each of these step functions is assumed to take no function parameters, and to return a Hiero ResponseCode which * ought to be SUCCESS -- in other words, an int32 with value 22. See * examples/precompile-example/HederaResponseCodes.sol. * @@ -62,7 +62,7 @@ namespace Hedera * the user can specify a supplier for a particular step with setParameterSupplier(stepIndex, parametersSupplier), and * can specify an alternative validation method with setResultValidator(stepIndex, validateFunction) * - * The contract is created on the Hedera network in the ContractHelper constructor, and when the user is ready to + * The contract is created on the Hiero network in the ContractHelper constructor, and when the user is ready to * execute the step functions in the contract, they should call executeSteps(firstStepToExecute, lastStepToExecute). */ class ContractHelper @@ -203,8 +203,7 @@ class ContractHelper const ContractFunctionResult result = txRecord.mContractFunctionResult.value(); const std::function validatorFunc = - hasResultValidator ? mStepResultValidators.at(step) - : [](const ContractFunctionResult& stepResult) + hasResultValidator ? mStepResultValidators.at(step) : [](const ContractFunctionResult& stepResult) { // Assume no custom validator means the function should return a success. const Status status = @@ -280,6 +279,6 @@ class ContractHelper std::unordered_map mStepFeePayers; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_EXAMPLES_CONTRACT_HELPER_H_ +#endif // HIERO_SDK_CPP_EXAMPLES_CONTRACT_HELPER_H_ diff --git a/src/sdk/examples/ContractNoncesExample.cc b/src/sdk/examples/ContractNoncesExample.cc index f4b720ae4..99097aa91 100644 --- a/src/sdk/examples/ContractNoncesExample.cc +++ b/src/sdk/examples/ContractNoncesExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -44,7 +44,7 @@ #include using json = nlohmann::json; -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -53,7 +53,7 @@ int main(int argc, char** argv) const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); const std::shared_ptr operatorPublicKey = operatorPrivateKey->getPublicKey(); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/CreateAccountExample.cc b/src/sdk/examples/CreateAccountExample.cc index 7d65777d8..ba4ec2690 100644 --- a/src/sdk/examples/CreateAccountExample.cc +++ b/src/sdk/examples/CreateAccountExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -35,7 +35,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/CreateAccountThresholdKeyExample.cc b/src/sdk/examples/CreateAccountThresholdKeyExample.cc index 4e1a3b35b..d94e1c7fc 100644 --- a/src/sdk/examples/CreateAccountThresholdKeyExample.cc +++ b/src/sdk/examples/CreateAccountThresholdKeyExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -33,7 +33,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -41,7 +41,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/CreateFileExample.cc b/src/sdk/examples/CreateFileExample.cc index 231d82572..991d5e340 100644 --- a/src/sdk/examples/CreateFileExample.cc +++ b/src/sdk/examples/CreateFileExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -34,7 +34,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -42,13 +42,13 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); // The file is required to be a byte array, you can easily use the bytes of a file instead. - std::string fileStringContents = "Hedera hashgraph is great!"; + std::string fileStringContents = "Hiero hashgraph is great!"; const FileId fileId = FileCreateTransaction() .setKeys({ client.getOperatorPublicKey() }) @@ -73,7 +73,7 @@ int main(int argc, char** argv) std::cout << std::endl; // Update file contents - std::string fileStringContentsUpdated = "Hedera hashgraph is great! Updated contents."; + std::string fileStringContentsUpdated = "Hiero hashgraph is great! Updated contents."; std::cout << "Updating file contents! " << std::endl; TransactionReceipt txReceipt = FileUpdateTransaction() .setFileId(fileId) diff --git a/src/sdk/examples/CreateSimpleContractExample.cc b/src/sdk/examples/CreateSimpleContractExample.cc index cd894951c..14608729e 100644 --- a/src/sdk/examples/CreateSimpleContractExample.cc +++ b/src/sdk/examples/CreateSimpleContractExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ #include using json = nlohmann::json; -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -47,7 +47,7 @@ int main(int argc, char** argv) const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); const std::shared_ptr operatorPublicKey = operatorPrivateKey->getPublicKey(); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/CreateStatefulContractExample.cc b/src/sdk/examples/CreateStatefulContractExample.cc index 809c21637..2f631eb9f 100644 --- a/src/sdk/examples/CreateStatefulContractExample.cc +++ b/src/sdk/examples/CreateStatefulContractExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -39,7 +39,7 @@ #include using json = nlohmann::json; -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -48,7 +48,7 @@ int main(int argc, char** argv) const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); const std::shared_ptr operatorPublicKey = operatorPrivateKey->getPublicKey(); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/CreateTopicExample.cc b/src/sdk/examples/CreateTopicExample.cc index 65536fdc4..d45479d0e 100644 --- a/src/sdk/examples/CreateTopicExample.cc +++ b/src/sdk/examples/CreateTopicExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -37,7 +37,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/CustomFeesExample.cc b/src/sdk/examples/CustomFeesExample.cc index e2c2e4605..9c2d82481 100644 --- a/src/sdk/examples/CustomFeesExample.cc +++ b/src/sdk/examples/CustomFeesExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -41,7 +41,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -49,7 +49,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/DeleteAccountExample.cc b/src/sdk/examples/DeleteAccountExample.cc index 717f832a4..8dc77ab8a 100644 --- a/src/sdk/examples/DeleteAccountExample.cc +++ b/src/sdk/examples/DeleteAccountExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -37,7 +37,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/DeleteFileExample.cc b/src/sdk/examples/DeleteFileExample.cc index 2652be047..fe48e0c89 100644 --- a/src/sdk/examples/DeleteFileExample.cc +++ b/src/sdk/examples/DeleteFileExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -38,7 +38,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); @@ -46,7 +46,7 @@ int main(int argc, char** argv) // Create a new file. const FileId fileId = FileCreateTransaction() .setKeys({ client.getOperatorPublicKey() }) - .setContents(internal::Utilities::stringToByteVector("Hedera Hashgraph is great!")) + .setContents(internal::Utilities::stringToByteVector("Hiero Hashgraph is great!")) .execute(client) .getReceipt(client) .mFileId.value(); diff --git a/src/sdk/examples/ExemptCustomFeesExample.cc b/src/sdk/examples/ExemptCustomFeesExample.cc index 9c2070580..f82a4bc9d 100644 --- a/src/sdk/examples/ExemptCustomFeesExample.cc +++ b/src/sdk/examples/ExemptCustomFeesExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -35,7 +35,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; /* * Example for HIP-573: Blanket exemptions for custom fee collectors: @@ -54,7 +54,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/FileAppendChunkedExample.cc b/src/sdk/examples/FileAppendChunkedExample.cc index 56f0eda7f..ed3b82e2f 100644 --- a/src/sdk/examples/FileAppendChunkedExample.cc +++ b/src/sdk/examples/FileAppendChunkedExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -34,7 +34,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -42,7 +42,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); @@ -50,7 +50,7 @@ int main(int argc, char** argv) // Create a new file. const FileId fileId = FileCreateTransaction() .setKeys({ client.getOperatorPublicKey() }) - .setContents(internal::Utilities::stringToByteVector("Hedera Hashgraph is great!")) + .setContents(internal::Utilities::stringToByteVector("Hiero Hashgraph is great!")) .execute(client) .getReceipt(client) .mFileId.value(); diff --git a/src/sdk/examples/GenerateKeyExample.cc b/src/sdk/examples/GenerateKeyExample.cc index 8798e4d71..db01d300c 100644 --- a/src/sdk/examples/GenerateKeyExample.cc +++ b/src/sdk/examples/GenerateKeyExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { diff --git a/src/sdk/examples/GeneratePrivateKeyFromMnemonicExample.cc b/src/sdk/examples/GeneratePrivateKeyFromMnemonicExample.cc index efc177df5..8934d266b 100644 --- a/src/sdk/examples/GeneratePrivateKeyFromMnemonicExample.cc +++ b/src/sdk/examples/GeneratePrivateKeyFromMnemonicExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { diff --git a/src/sdk/examples/GeneratePrivateKeyFromSpecificMnemonicExample.cc b/src/sdk/examples/GeneratePrivateKeyFromSpecificMnemonicExample.cc index a8793920a..9b9f32364 100644 --- a/src/sdk/examples/GeneratePrivateKeyFromSpecificMnemonicExample.cc +++ b/src/sdk/examples/GeneratePrivateKeyFromSpecificMnemonicExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { diff --git a/src/sdk/examples/GetAccountBalanceExample.cc b/src/sdk/examples/GetAccountBalanceExample.cc index 6da95ad1e..e49c2edbb 100644 --- a/src/sdk/examples/GetAccountBalanceExample.cc +++ b/src/sdk/examples/GetAccountBalanceExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,14 +25,14 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { dotenv::init(); const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); - // Get a client for the Hedera testnet + // Get a client for the Hiero testnet Client client = Client::forTestnet(); // Because AccountBalanceQuery is a free query, we can make it without setting an operator on the client. diff --git a/src/sdk/examples/GetAccountInfoExample.cc b/src/sdk/examples/GetAccountInfoExample.cc index b9e10e178..78a759933 100644 --- a/src/sdk/examples/GetAccountInfoExample.cc +++ b/src/sdk/examples/GetAccountInfoExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -34,7 +34,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/GetAddressBookExample.cc b/src/sdk/examples/GetAddressBookExample.cc index 896f3ba87..e8359e9bc 100644 --- a/src/sdk/examples/GetAddressBookExample.cc +++ b/src/sdk/examples/GetAddressBookExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,11 +24,11 @@ #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { - // Create a client for the Hedera network of which to get the address book. + // Create a client for the Hiero network of which to get the address book. Client client = Client::forTestnet(); // Query for the address book using the client. diff --git a/src/sdk/examples/GetExchangeRatesExample.cc b/src/sdk/examples/GetExchangeRatesExample.cc index 5af0daf71..be506a9cb 100644 --- a/src/sdk/examples/GetExchangeRatesExample.cc +++ b/src/sdk/examples/GetExchangeRatesExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -35,7 +35,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/GetFileContentsExample.cc b/src/sdk/examples/GetFileContentsExample.cc index 90f031cd1..420f5cb74 100644 --- a/src/sdk/examples/GetFileContentsExample.cc +++ b/src/sdk/examples/GetFileContentsExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -37,13 +37,13 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); // Content to be stored in the file - const std::vector contents = internal::Utilities::stringToByteVector("Hedera is great!"); + const std::vector contents = internal::Utilities::stringToByteVector("Hiero is great!"); // Create a new file with the contents FileId fileId = FileCreateTransaction() diff --git a/src/sdk/examples/InitializeClientWithMirrorNodeAddressBookExample.cc b/src/sdk/examples/InitializeClientWithMirrorNodeAddressBookExample.cc index 4896b9a56..99ecce818 100644 --- a/src/sdk/examples/InitializeClientWithMirrorNodeAddressBookExample.cc +++ b/src/sdk/examples/InitializeClientWithMirrorNodeAddressBookExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { diff --git a/src/sdk/examples/MultiAppTransferExample.cc b/src/sdk/examples/MultiAppTransferExample.cc index 9ed13d550..081564097 100644 --- a/src/sdk/examples/MultiAppTransferExample.cc +++ b/src/sdk/examples/MultiAppTransferExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -33,7 +33,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -41,7 +41,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); @@ -104,7 +104,7 @@ int main(int argc, char** argv) transferTransaction = *Transaction::fromBytes(transferTransactionBytes).getTransaction(); - // Send the transfer to the Hedera network. + // Send the transfer to the Hiero network. std::cout << "Sending 2 Hbar to exchange from user: " << gStatusToString.at(transferTransaction.execute(client).getReceipt(client).mStatus) << std::endl; diff --git a/src/sdk/examples/MultiSigOfflineExample.cc b/src/sdk/examples/MultiSigOfflineExample.cc index 23cc8e3a6..804a19e61 100644 --- a/src/sdk/examples/MultiSigOfflineExample.cc +++ b/src/sdk/examples/MultiSigOfflineExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -36,7 +36,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -44,7 +44,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/NftAddRemoveAllowancesExample.cc b/src/sdk/examples/NftAddRemoveAllowancesExample.cc index d0c27cd59..4340b92aa 100644 --- a/src/sdk/examples/NftAddRemoveAllowancesExample.cc +++ b/src/sdk/examples/NftAddRemoveAllowancesExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -42,7 +42,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; /** * Example for HIP-336. Show functionalities around approve/delete an allowance for: @@ -50,7 +50,7 @@ using namespace Hedera; * 2. All serial numbers at once * 3. Delegating spender obligations * - * Note that the concept around the ERC standard that Hedera implements in regard to the allowances for NFTs does not + * Note that the concept around the ERC standard that Hiero implements in regard to the allowances for NFTs does not * allow users to: * 1. Approve allowance for all serials in a NFT collection, then remove allowance for individual serial of the NFT * 2. Approve allowance for individual serial of the NFT, then remove allowance for all serials in the NFT collection @@ -61,7 +61,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/PrngExample.cc b/src/sdk/examples/PrngExample.cc index 05ff70f9b..077f8aeca 100644 --- a/src/sdk/examples/PrngExample.cc +++ b/src/sdk/examples/PrngExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -34,7 +34,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/ScheduleExample.cc b/src/sdk/examples/ScheduleExample.cc index cc78a9d82..050031020 100644 --- a/src/sdk/examples/ScheduleExample.cc +++ b/src/sdk/examples/ScheduleExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -46,7 +46,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/ScheduleIdenticalTransactionExample.cc b/src/sdk/examples/ScheduleIdenticalTransactionExample.cc index 048ca2a3a..89223c864 100644 --- a/src/sdk/examples/ScheduleIdenticalTransactionExample.cc +++ b/src/sdk/examples/ScheduleIdenticalTransactionExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -35,7 +35,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -43,7 +43,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/ScheduleMultiSigTransactionExample.cc b/src/sdk/examples/ScheduleMultiSigTransactionExample.cc index 9c3dfcccc..77bf52f44 100644 --- a/src/sdk/examples/ScheduleMultiSigTransactionExample.cc +++ b/src/sdk/examples/ScheduleMultiSigTransactionExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -34,7 +34,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -42,7 +42,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/ScheduleTransactionMultiSigThresholdExample.cc b/src/sdk/examples/ScheduleTransactionMultiSigThresholdExample.cc index 4ff766986..ca16805ba 100644 --- a/src/sdk/examples/ScheduleTransactionMultiSigThresholdExample.cc +++ b/src/sdk/examples/ScheduleTransactionMultiSigThresholdExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -34,7 +34,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -42,7 +42,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/ScheduleTransferExample.cc b/src/sdk/examples/ScheduleTransferExample.cc index a9314196a..f13dbc4a6 100644 --- a/src/sdk/examples/ScheduleTransferExample.cc +++ b/src/sdk/examples/ScheduleTransferExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -46,18 +46,18 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); // A scheduled transaction is a transaction that has been proposed by an account, but which requires more signatures - // before it will actually execute on the Hedera network. + // before it will actually execute on the Hiero network. // // For example, if Alice wants to transfer an amount of Hbar to Bob, and Bob has receiverSignatureRequired set to // true, then that transaction must be signed by both Alice and Bob before the transaction will be executed. // - // To solve this problem, Alice can propose the transaction by creating a scheduled transaction on the Hedera network + // To solve this problem, Alice can propose the transaction by creating a scheduled transaction on the Hiero network // which, if executed, would transfer Hbar from Alice to Bob. That scheduled transaction will have a ScheduleId by // which we can refer to that scheduled transaction. Alice can communicate the ScheduleId to Bob, and then Bob can // use a ScheduleSignTransaction to sign that scheduled transaction. @@ -66,8 +66,8 @@ int main(int argc, char** argv) // the scheduled transaction. If a scheduled transaction is not signed by all of the necessary signatories within the // 30 minute window, that scheduled transaction will expire, and will not be executed. // - // Once a scheduled transaction has all of the signatures necessary to execute, it will be executed on the Hedera - // network automatically. If you create a scheduled transaction on the Hedera network, but that transaction only + // Once a scheduled transaction has all of the signatures necessary to execute, it will be executed on the Hiero + // network automatically. If you create a scheduled transaction on the Hiero network, but that transaction only // requires your signature in order to execute and no one else's, that scheduled transaction will be automatically // executed immediately. std::cout << "Generate account.. " << std::endl; @@ -91,7 +91,7 @@ int main(int argc, char** argv) // is executed. That fee is separate from the fee that will pay to execute the ScheduleCreateTransaction itself. // // To clarify: Alice pays a fee to execute the ScheduleCreateTransaction, which creates the scheduled transaction on - // the Hedera network. She specifies when creating the scheduled transaction that Bob will pay the fee for the + // the Hiero network. She specifies when creating the scheduled transaction that Bob will pay the fee for the // scheduled transaction when it is executed. // // If payerAccountId is not specified, the account who creates the scheduled transaction will be charged for diff --git a/src/sdk/examples/SignTransactionExample.cc b/src/sdk/examples/SignTransactionExample.cc index a50031df5..41514b3ed 100644 --- a/src/sdk/examples/SignTransactionExample.cc +++ b/src/sdk/examples/SignTransactionExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -36,7 +36,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -44,7 +44,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/SolidityPrecompileExample.cc b/src/sdk/examples/SolidityPrecompileExample.cc index 58da31f4d..5472d2a3b 100644 --- a/src/sdk/examples/SolidityPrecompileExample.cc +++ b/src/sdk/examples/SolidityPrecompileExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -37,7 +37,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/StakingExample.cc b/src/sdk/examples/StakingExample.cc index 6acce1c01..bb597a2d6 100644 --- a/src/sdk/examples/StakingExample.cc +++ b/src/sdk/examples/StakingExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -37,7 +37,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/StakingWithUpdateExample.cc b/src/sdk/examples/StakingWithUpdateExample.cc index b477afb33..c9671ae9d 100644 --- a/src/sdk/examples/StakingWithUpdateExample.cc +++ b/src/sdk/examples/StakingWithUpdateExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -31,7 +31,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -39,7 +39,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/TokenAirdropExample.cc b/src/sdk/examples/TokenAirdropExample.cc index 8b9cb3fe0..5cffb0a18 100644 --- a/src/sdk/examples/TokenAirdropExample.cc +++ b/src/sdk/examples/TokenAirdropExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -50,7 +50,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -58,7 +58,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/TokenCreateFreezeDeleteExample.cc b/src/sdk/examples/TokenCreateFreezeDeleteExample.cc index 0de766591..a8e97f9e1 100644 --- a/src/sdk/examples/TokenCreateFreezeDeleteExample.cc +++ b/src/sdk/examples/TokenCreateFreezeDeleteExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -45,7 +45,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/TokenMetadataExample.cc b/src/sdk/examples/TokenMetadataExample.cc index 93310962e..cb9f8fb35 100644 --- a/src/sdk/examples/TokenMetadataExample.cc +++ b/src/sdk/examples/TokenMetadataExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -66,7 +66,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/TopicWithAdminKeyExample.cc b/src/sdk/examples/TopicWithAdminKeyExample.cc index aac1dd71e..0ce488581 100644 --- a/src/sdk/examples/TopicWithAdminKeyExample.cc +++ b/src/sdk/examples/TopicWithAdminKeyExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -32,7 +32,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -40,7 +40,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/TransferCryptoExample.cc b/src/sdk/examples/TransferCryptoExample.cc index 3fcb05473..d831e9a39 100644 --- a/src/sdk/examples/TransferCryptoExample.cc +++ b/src/sdk/examples/TransferCryptoExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -38,7 +38,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/TransferTokensExample.cc b/src/sdk/examples/TransferTokensExample.cc index 6ce0b56e0..f1a237b97 100644 --- a/src/sdk/examples/TransferTokensExample.cc +++ b/src/sdk/examples/TransferTokensExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -36,7 +36,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -44,7 +44,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/TransferUsingEvmAddressExample.cc b/src/sdk/examples/TransferUsingEvmAddressExample.cc index ce9faba95..05cce0b54 100644 --- a/src/sdk/examples/TransferUsingEvmAddressExample.cc +++ b/src/sdk/examples/TransferUsingEvmAddressExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -36,7 +36,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -44,13 +44,13 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); /* - * Transfer HBAR or tokens to a Hedera account using their public-address. Reference: [HIP-583 Expand alias support in + * Transfer HBAR or tokens to a Hiero account using their public-address. Reference: [HIP-583 Expand alias support in * CryptoCreate & CryptoTransfer Transactions](https://hips.hedera.com/hip/hip-583) * * - Create an ECSDA private key @@ -62,7 +62,7 @@ int main(int argc, char** argv) * - Transfer tokens using the `TransferTransaction` to the Etherum Account Address * - The From field should be a complete account that has a public address * - The To field should be to a public address (to create a new account) - * - Get the child receipt or child record to return the Hedera Account ID for the new account that was created + * - Get the child receipt or child record to return the Hiero Account ID for the new account that was created * - Get the `AccountInfo` on the new account and show it is a hollow account by not having a public key * - This is a hollow account in this state * - Use the hollow account as a transaction fee payer in a HAPI transaction diff --git a/src/sdk/examples/UpdateAccountPublicKeyExample.cc b/src/sdk/examples/UpdateAccountPublicKeyExample.cc index f597002f1..43ad35217 100644 --- a/src/sdk/examples/UpdateAccountPublicKeyExample.cc +++ b/src/sdk/examples/UpdateAccountPublicKeyExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -32,7 +32,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -40,7 +40,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/ValidateChecksumExample.cc b/src/sdk/examples/ValidateChecksumExample.cc index 6a58c270b..2a2cb686c 100644 --- a/src/sdk/examples/ValidateChecksumExample.cc +++ b/src/sdk/examples/ValidateChecksumExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -37,7 +37,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); @@ -58,7 +58,7 @@ int main(int argc, char** argv) * You can use accountId.getChecksum() to get the checksum of an AccountId object that was constructed using * fromString(). This will be the checksum from the input string. fromString() will merely parse the string and * create an AccountId object with the expected shard, realm, num, and checksum values. fromString() will NOT verify - * that the AccountId maps to a valid account on the Hedera network, and it will not verify the checksum. + * that the AccountId maps to a valid account on the Hiero network, and it will not verify the checksum. * * To verify a checksum, call accountId.validateChecksum(client). If the checksum is invalid, validateChecksum() will * throw a BadEntityIdException, otherwise it will return normally. diff --git a/src/sdk/examples/ZeroTokenOperationsExample.cc b/src/sdk/examples/ZeroTokenOperationsExample.cc index 363840ade..82acfe733 100644 --- a/src/sdk/examples/ZeroTokenOperationsExample.cc +++ b/src/sdk/examples/ZeroTokenOperationsExample.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -34,7 +34,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; int main(int argc, char** argv) { @@ -42,7 +42,7 @@ int main(int argc, char** argv) const AccountId operatorAccountId = AccountId::fromString(std::getenv("OPERATOR_ID")); const std::shared_ptr operatorPrivateKey = ED25519PrivateKey::fromString(std::getenv("OPERATOR_KEY")); - // Get a client for the Hedera testnet, and set the operator account ID and key such that all generated transactions + // Get a client for the Hiero testnet, and set the operator account ID and key such that all generated transactions // will be paid for by this account and be signed by this key. Client client = Client::forTestnet(); client.setOperator(operatorAccountId, operatorPrivateKey); diff --git a/src/sdk/examples/precompile-example/HederaResponseCodes.sol b/src/sdk/examples/precompile-example/HederaResponseCodes.sol index d2484a915..b35684e43 100644 --- a/src/sdk/examples/precompile-example/HederaResponseCodes.sol +++ b/src/sdk/examples/precompile-example/HederaResponseCodes.sol @@ -4,7 +4,6 @@ pragma solidity >=0.4.9 <0.9.0; // This file was copied from github.com/hashgraph/hedera-smart-contracts on Aug 31 2022 abstract contract HederaResponseCodes { - // response codes int32 internal constant OK = 0; // The transaction passed the precheck validations. int32 internal constant INVALID_TRANSACTION = 1; // For any error not handled by specific error codes listed below. @@ -144,7 +143,7 @@ abstract contract HederaResponseCodes { // by HAPI. int32 internal constant TOPIC_EXPIRED = 162; int32 internal constant INVALID_CHUNK_NUMBER = 163; // chunk number must be from 1 to total (chunks) inclusive. - int32 internal constant INVALID_CHUNK_TRANSACTION_ID = 164; // For every chunk, the payer account that is part of initialTransactionID must match the Payer Account of this transaction. The entire initialTransactionID should match the transactionID of the first chunk, but this is not checked or enforced by Hedera except when the chunk number is 1. + int32 internal constant INVALID_CHUNK_TRANSACTION_ID = 164; // For every chunk, the payer account that is part of initialTransactionID must match the Payer Account of this transaction. The entire initialTransactionID should match the transactionID of the first chunk, but this is not checked or enforced by Hiero except when the chunk number is 1. int32 internal constant ACCOUNT_FROZEN_FOR_TOKEN = 165; // Account is frozen and cannot transact with the token int32 internal constant TOKENS_PER_ACCOUNT_LIMIT_EXCEEDED = 166; // An involved account already has more than tokens.maxPerAccount associations with non-deleted tokens. int32 internal constant INVALID_TOKEN_ID = 167; // The token is invalid or does not exist diff --git a/src/sdk/examples/precompile-example/HederaTokenService.sol b/src/sdk/examples/precompile-example/HederaTokenService.sol index a04437f17..fdfe80fa0 100644 --- a/src/sdk/examples/precompile-example/HederaTokenService.sol +++ b/src/sdk/examples/precompile-example/HederaTokenService.sol @@ -8,7 +8,6 @@ import "./HederaResponseCodes.sol"; import "./IHederaTokenService.sol"; abstract contract HederaTokenService is HederaResponseCodes { - address constant precompileAddress = address(0x167); // 90 days in seconds uint32 constant defaultAutoRenewPeriod = 7776000; @@ -21,8 +20,7 @@ abstract contract HederaTokenService is HederaResponseCodes { uint constant FEE_SCHEDULE_KEY_TYPE = 32; uint constant PAUSE_KEY_TYPE = 64; - modifier nonEmptyExpiry(IHederaTokenService.HederaToken memory token) - { + modifier nonEmptyExpiry(IHederaTokenService.HederaToken memory token) { if (token.expiry.second == 0 && token.expiry.autoRenewPeriod == 0) { token.expiry.autoRenewPeriod = defaultAutoRenewPeriod; } @@ -32,12 +30,18 @@ abstract contract HederaTokenService is HederaResponseCodes { /// Initiates a Token Transfer /// @param tokenTransfers the list of transfers to do /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function cryptoTransfer(IHederaTokenService.TokenTransferList[] memory tokenTransfers) internal - returns (int responseCode) - { + function cryptoTransfer( + IHederaTokenService.TokenTransferList[] memory tokenTransfers + ) internal returns (int responseCode) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.cryptoTransfer.selector, tokenTransfers)); - responseCode = success ? abi.decode(result, (int32)) : HederaResponseCodes.UNKNOWN; + abi.encodeWithSelector( + IHederaTokenService.cryptoTransfer.selector, + tokenTransfers + ) + ); + responseCode = success + ? abi.decode(result, (int32)) + : HederaResponseCodes.UNKNOWN; } /// Mints an amount of the token to the defined treasury account @@ -51,16 +55,29 @@ abstract contract HederaTokenService is HederaResponseCodes { /// @return responseCode The response code for the status of the request. SUCCESS is 22. /// @return newTotalSupply The new supply of tokens. For NFTs it is the total count of NFTs /// @return serialNumbers If the token is an NFT the newly generate serial numbers, otherwise empty. - function mintToken(address token, uint64 amount, bytes[] memory metadata) internal - returns (int responseCode, uint64 newTotalSupply, int64[] memory serialNumbers) + function mintToken( + address token, + uint64 amount, + bytes[] memory metadata + ) + internal + returns ( + int responseCode, + uint64 newTotalSupply, + int64[] memory serialNumbers + ) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.mintToken.selector, - token, amount, metadata)); - (responseCode, newTotalSupply, serialNumbers) = - success - ? abi.decode(result, (int32, uint64, int64[])) - : (HederaResponseCodes.UNKNOWN, 0, new int64[](0)); + abi.encodeWithSelector( + IHederaTokenService.mintToken.selector, + token, + amount, + metadata + ) + ); + (responseCode, newTotalSupply, serialNumbers) = success + ? abi.decode(result, (int32, uint64, int64[])) + : (HederaResponseCodes.UNKNOWN, 0, new int64[](0)); } /// Burns an amount of the token from the defined treasury account @@ -72,16 +89,22 @@ abstract contract HederaTokenService is HederaResponseCodes { /// @param serialNumbers Applicable to tokens of type NON_FUNGIBLE_UNIQUE. The list of serial numbers to be burned. /// @return responseCode The response code for the status of the request. SUCCESS is 22. /// @return newTotalSupply The new supply of tokens. For NFTs it is the total count of NFTs - function burnToken(address token, uint64 amount, int64[] memory serialNumbers) internal - returns (int responseCode, uint64 newTotalSupply) - { + function burnToken( + address token, + uint64 amount, + int64[] memory serialNumbers + ) internal returns (int responseCode, uint64 newTotalSupply) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.burnToken.selector, - token, amount, serialNumbers)); - (responseCode, newTotalSupply) = - success - ? abi.decode(result, (int32, uint64)) - : (HederaResponseCodes.UNKNOWN, 0); + abi.encodeWithSelector( + IHederaTokenService.burnToken.selector, + token, + amount, + serialNumbers + ) + ); + (responseCode, newTotalSupply) = success + ? abi.decode(result, (int32, uint64)) + : (HederaResponseCodes.UNKNOWN, 0); } /// Associates the provided account with the provided tokens. Must be signed by the provided @@ -101,18 +124,36 @@ abstract contract HederaTokenService is HederaResponseCodes { /// Type, once an account is associated, it can hold any number of NFTs (serial numbers) of that /// token type /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function associateTokens(address account, address[] memory tokens) internal returns (int responseCode) { + function associateTokens( + address account, + address[] memory tokens + ) internal returns (int responseCode) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.associateTokens.selector, - account, tokens)); - responseCode = success ? abi.decode(result, (int32)) : HederaResponseCodes.UNKNOWN; + abi.encodeWithSelector( + IHederaTokenService.associateTokens.selector, + account, + tokens + ) + ); + responseCode = success + ? abi.decode(result, (int32)) + : HederaResponseCodes.UNKNOWN; } - function associateToken(address account, address token) internal returns (int responseCode) { + function associateToken( + address account, + address token + ) internal returns (int responseCode) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.associateToken.selector, - account, token)); - responseCode = success ? abi.decode(result, (int32)) : HederaResponseCodes.UNKNOWN; + abi.encodeWithSelector( + IHederaTokenService.associateToken.selector, + account, + token + ) + ); + responseCode = success + ? abi.decode(result, (int32)) + : HederaResponseCodes.UNKNOWN; } /// Dissociates the provided account with the provided tokens. Must be signed by the provided @@ -133,18 +174,36 @@ abstract contract HederaTokenService is HederaResponseCodes { /// @param account The account to be dissociated from the provided tokens /// @param tokens The tokens to be dissociated from the provided account. /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function dissociateTokens(address account, address[] memory tokens) internal returns (int responseCode) { + function dissociateTokens( + address account, + address[] memory tokens + ) internal returns (int responseCode) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.dissociateTokens.selector, - account, tokens)); - responseCode = success ? abi.decode(result, (int32)) : HederaResponseCodes.UNKNOWN; + abi.encodeWithSelector( + IHederaTokenService.dissociateTokens.selector, + account, + tokens + ) + ); + responseCode = success + ? abi.decode(result, (int32)) + : HederaResponseCodes.UNKNOWN; } - function dissociateToken(address account, address token) internal returns (int responseCode) { + function dissociateToken( + address account, + address token + ) internal returns (int responseCode) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.dissociateToken.selector, - account, token)); - responseCode = success ? abi.decode(result, (int32)) : HederaResponseCodes.UNKNOWN; + abi.encodeWithSelector( + IHederaTokenService.dissociateToken.selector, + account, + token + ) + ); + responseCode = success + ? abi.decode(result, (int32)) + : HederaResponseCodes.UNKNOWN; } /// Creates a Fungible Token with the specified properties @@ -157,15 +216,26 @@ abstract contract HederaTokenService is HederaResponseCodes { function createFungibleToken( IHederaTokenService.HederaToken memory token, uint initialTotalSupply, - uint decimals) nonEmptyExpiry(token) - internal returns (int responseCode, address tokenAddress) { - - (bool success, bytes memory result) = precompileAddress.call{value: msg.value}( - abi.encodeWithSelector(IHederaTokenService.createFungibleToken.selector, - token, initialTotalSupply, decimals)); - + uint decimals + ) + internal + nonEmptyExpiry(token) + returns (int responseCode, address tokenAddress) + { + (bool success, bytes memory result) = precompileAddress.call{ + value: msg.value + }( + abi.encodeWithSelector( + IHederaTokenService.createFungibleToken.selector, + token, + initialTotalSupply, + decimals + ) + ); - (responseCode, tokenAddress) = success ? abi.decode(result, (int32, address)) : (HederaResponseCodes.UNKNOWN, address(0)); + (responseCode, tokenAddress) = success + ? abi.decode(result, (int32, address)) + : (HederaResponseCodes.UNKNOWN, address(0)); } /// Creates a Fungible Token with the specified properties @@ -182,25 +252,51 @@ abstract contract HederaTokenService is HederaResponseCodes { uint initialTotalSupply, uint decimals, IHederaTokenService.FixedFee[] memory fixedFees, - IHederaTokenService.FractionalFee[] memory fractionalFees) nonEmptyExpiry(token) - internal returns (int responseCode, address tokenAddress) { - - (bool success, bytes memory result) = precompileAddress.call{value: msg.value}( - abi.encodeWithSelector(IHederaTokenService.createFungibleTokenWithCustomFees.selector, - token, initialTotalSupply, decimals, fixedFees, fractionalFees)); - (responseCode, tokenAddress) = success ? abi.decode(result, (int32, address)) : (HederaResponseCodes.UNKNOWN, address(0)); + IHederaTokenService.FractionalFee[] memory fractionalFees + ) + internal + nonEmptyExpiry(token) + returns (int responseCode, address tokenAddress) + { + (bool success, bytes memory result) = precompileAddress.call{ + value: msg.value + }( + abi.encodeWithSelector( + IHederaTokenService.createFungibleTokenWithCustomFees.selector, + token, + initialTotalSupply, + decimals, + fixedFees, + fractionalFees + ) + ); + (responseCode, tokenAddress) = success + ? abi.decode(result, (int32, address)) + : (HederaResponseCodes.UNKNOWN, address(0)); } /// Creates an Non Fungible Unique Token with the specified properties /// @param token the basic properties of the token being created /// @return responseCode The response code for the status of the request. SUCCESS is 22. /// @return tokenAddress the created token's address - function createNonFungibleToken(IHederaTokenService.HederaToken memory token) nonEmptyExpiry(token) - internal returns (int responseCode, address tokenAddress) { - - (bool success, bytes memory result) = precompileAddress.call{value: msg.value}( - abi.encodeWithSelector(IHederaTokenService.createNonFungibleToken.selector, token)); - (responseCode, tokenAddress) = success ? abi.decode(result, (int32, address)) : (HederaResponseCodes.UNKNOWN, address(0)); + function createNonFungibleToken( + IHederaTokenService.HederaToken memory token + ) + internal + nonEmptyExpiry(token) + returns (int responseCode, address tokenAddress) + { + (bool success, bytes memory result) = precompileAddress.call{ + value: msg.value + }( + abi.encodeWithSelector( + IHederaTokenService.createNonFungibleToken.selector, + token + ) + ); + (responseCode, tokenAddress) = success + ? abi.decode(result, (int32, address)) + : (HederaResponseCodes.UNKNOWN, address(0)); } /// Creates an Non Fungible Unique Token with the specified properties @@ -212,31 +308,73 @@ abstract contract HederaTokenService is HederaResponseCodes { function createNonFungibleTokenWithCustomFees( IHederaTokenService.HederaToken memory token, IHederaTokenService.FixedFee[] memory fixedFees, - IHederaTokenService.RoyaltyFee[] memory royaltyFees) nonEmptyExpiry(token) - internal returns (int responseCode, address tokenAddress) { - - (bool success, bytes memory result) = precompileAddress.call{value: msg.value}( - abi.encodeWithSelector(IHederaTokenService.createNonFungibleTokenWithCustomFees.selector, - token, fixedFees, royaltyFees)); - (responseCode, tokenAddress) = success ? abi.decode(result, (int32, address)) : (HederaResponseCodes.UNKNOWN, address(0)); + IHederaTokenService.RoyaltyFee[] memory royaltyFees + ) + internal + nonEmptyExpiry(token) + returns (int responseCode, address tokenAddress) + { + (bool success, bytes memory result) = precompileAddress.call{ + value: msg.value + }( + abi.encodeWithSelector( + IHederaTokenService + .createNonFungibleTokenWithCustomFees + .selector, + token, + fixedFees, + royaltyFees + ) + ); + (responseCode, tokenAddress) = success + ? abi.decode(result, (int32, address)) + : (HederaResponseCodes.UNKNOWN, address(0)); } /// Retrieves fungible specific token info for a fungible token /// @param token The ID of the token as a solidity address - function getFungibleTokenInfo(address token) internal returns (int responseCode, IHederaTokenService.FungibleTokenInfo memory tokenInfo) { + function getFungibleTokenInfo( + address token + ) + internal + returns ( + int responseCode, + IHederaTokenService.FungibleTokenInfo memory tokenInfo + ) + { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.getFungibleTokenInfo.selector, token)); + abi.encodeWithSelector( + IHederaTokenService.getFungibleTokenInfo.selector, + token + ) + ); IHederaTokenService.FungibleTokenInfo memory defaultTokenInfo; - (responseCode, tokenInfo) = success ? abi.decode(result, (int32, IHederaTokenService.FungibleTokenInfo)) : (HederaResponseCodes.UNKNOWN, defaultTokenInfo); + (responseCode, tokenInfo) = success + ? abi.decode(result, (int32, IHederaTokenService.FungibleTokenInfo)) + : (HederaResponseCodes.UNKNOWN, defaultTokenInfo); } /// Retrieves general token info for a given token /// @param token The ID of the token as a solidity address - function getTokenInfo(address token) internal returns (int responseCode, IHederaTokenService.TokenInfo memory tokenInfo) { + function getTokenInfo( + address token + ) + internal + returns ( + int responseCode, + IHederaTokenService.TokenInfo memory tokenInfo + ) + { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.getTokenInfo.selector, token)); + abi.encodeWithSelector( + IHederaTokenService.getTokenInfo.selector, + token + ) + ); IHederaTokenService.TokenInfo memory defaultTokenInfo; - (responseCode, tokenInfo) = success ? abi.decode(result, (int32, IHederaTokenService.TokenInfo)) : (HederaResponseCodes.UNKNOWN, defaultTokenInfo); + (responseCode, tokenInfo) = success + ? abi.decode(result, (int32, IHederaTokenService.TokenInfo)) + : (HederaResponseCodes.UNKNOWN, defaultTokenInfo); } /// Query token KeyValue @@ -244,20 +382,52 @@ abstract contract HederaTokenService is HederaResponseCodes { /// @param keyType The keyType of the desired KeyValue /// @return responseCode The response code for the status of the request. SUCCESS is 22. /// @return key KeyValue info for key of type `keyType` - function getTokenKey(address token, uint keyType) external returns (int64 responseCode, IHederaTokenService.KeyValue memory key){ + function getTokenKey( + address token, + uint keyType + ) + external + returns (int64 responseCode, IHederaTokenService.KeyValue memory key) + { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.getTokenKey.selector, token, keyType)); + abi.encodeWithSelector( + IHederaTokenService.getTokenKey.selector, + token, + keyType + ) + ); IHederaTokenService.KeyValue memory defaultKeyValue; - (responseCode, key) = success ? abi.decode(result, (int32, IHederaTokenService.KeyValue)) : (HederaResponseCodes.UNKNOWN, defaultKeyValue); + (responseCode, key) = success + ? abi.decode(result, (int32, IHederaTokenService.KeyValue)) + : (HederaResponseCodes.UNKNOWN, defaultKeyValue); } /// Retrieves non-fungible specific token info for a given NFT /// @param token The ID of the token as a solidity address - function getNonFungibleTokenInfo(address token, int64 serialNumber) internal returns (int responseCode, IHederaTokenService.NonFungibleTokenInfo memory tokenInfo) { + function getNonFungibleTokenInfo( + address token, + int64 serialNumber + ) + internal + returns ( + int responseCode, + IHederaTokenService.NonFungibleTokenInfo memory tokenInfo + ) + { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.getNonFungibleTokenInfo.selector, token, serialNumber)); + abi.encodeWithSelector( + IHederaTokenService.getNonFungibleTokenInfo.selector, + token, + serialNumber + ) + ); IHederaTokenService.NonFungibleTokenInfo memory defaultTokenInfo; - (responseCode, tokenInfo) = success ? abi.decode(result, (int32, IHederaTokenService.NonFungibleTokenInfo)) : (HederaResponseCodes.UNKNOWN, defaultTokenInfo); + (responseCode, tokenInfo) = success + ? abi.decode( + result, + (int32, IHederaTokenService.NonFungibleTokenInfo) + ) + : (HederaResponseCodes.UNKNOWN, defaultTokenInfo); } /// Query token custom fees @@ -266,19 +436,42 @@ abstract contract HederaTokenService is HederaResponseCodes { /// @return fixedFees Set of fixed fees for `token` /// @return fractionalFees Set of fractional fees for `token` /// @return royaltyFees Set of royalty fees for `token` - function getTokenCustomFees(address token) internal returns (int64 responseCode, - IHederaTokenService.FixedFee[] memory fixedFees, - IHederaTokenService.FractionalFee[] memory fractionalFees, - IHederaTokenService.RoyaltyFee[] memory royaltyFees) { + function getTokenCustomFees( + address token + ) + internal + returns ( + int64 responseCode, + IHederaTokenService.FixedFee[] memory fixedFees, + IHederaTokenService.FractionalFee[] memory fractionalFees, + IHederaTokenService.RoyaltyFee[] memory royaltyFees + ) + { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.getTokenCustomFees.selector, token)); + abi.encodeWithSelector( + IHederaTokenService.getTokenCustomFees.selector, + token + ) + ); IHederaTokenService.FixedFee[] memory defaultFixedFees; IHederaTokenService.FractionalFee[] memory defaultFractionalFees; IHederaTokenService.RoyaltyFee[] memory defaultRoyaltyFees; - (responseCode, fixedFees, fractionalFees, royaltyFees) = - success ? abi.decode - (result, (int32, IHederaTokenService.FixedFee[], IHederaTokenService.FractionalFee[], IHederaTokenService.RoyaltyFee[])) - : (HederaResponseCodes.UNKNOWN, defaultFixedFees, defaultFractionalFees, defaultRoyaltyFees); + (responseCode, fixedFees, fractionalFees, royaltyFees) = success + ? abi.decode( + result, + ( + int32, + IHederaTokenService.FixedFee[], + IHederaTokenService.FractionalFee[], + IHederaTokenService.RoyaltyFee[] + ) + ) + : ( + HederaResponseCodes.UNKNOWN, + defaultFixedFees, + defaultFractionalFees, + defaultRoyaltyFees + ); } /// Allows spender to withdraw from your account multiple times, up to the value amount. If this function is called @@ -288,57 +481,92 @@ abstract contract HederaTokenService is HederaResponseCodes { /// @param spender the account authorized to spend /// @param amount the amount of tokens authorized to spend. /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function approve(address token, address spender, uint256 amount) internal returns (int responseCode) - { + function approve( + address token, + address spender, + uint256 amount + ) internal returns (int responseCode) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.approve.selector, - token, spender, amount)); - responseCode = success ? abi.decode(result, (int32)) : HederaResponseCodes.UNKNOWN; + abi.encodeWithSelector( + IHederaTokenService.approve.selector, + token, + spender, + amount + ) + ); + responseCode = success + ? abi.decode(result, (int32)) + : HederaResponseCodes.UNKNOWN; } /// Returns the amount which spender is still allowed to withdraw from owner. /// Only Applicable to Fungible Tokens - /// @param token The Hedera token address to check the allowance of + /// @param token The Hiero token address to check the allowance of /// @param owner the owner of the tokens to be spent /// @param spender the spender of the tokens /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function allowance(address token, address owner, address spender) internal returns (int responseCode, uint256 amount) - { + function allowance( + address token, + address owner, + address spender + ) internal returns (int responseCode, uint256 amount) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.allowance.selector, - token, owner, spender)); - (responseCode, amount) = success ? abi.decode(result, (int32, uint256)) : (HederaResponseCodes.UNKNOWN, 0); + abi.encodeWithSelector( + IHederaTokenService.allowance.selector, + token, + owner, + spender + ) + ); + (responseCode, amount) = success + ? abi.decode(result, (int32, uint256)) + : (HederaResponseCodes.UNKNOWN, 0); } /// Allow or reaffirm the approved address to transfer an NFT the approved address does not own. /// Only Applicable to NFT Tokens - /// @param token The Hedera NFT token address to approve + /// @param token The Hiero NFT token address to approve /// @param approved The new approved NFT controller. To revoke approvals pass in the zero address. /// @param serialNumber The NFT serial number to approve /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function approveNFT(address token, address approved, uint256 serialNumber) internal returns (int responseCode) - { + function approveNFT( + address token, + address approved, + uint256 serialNumber + ) internal returns (int responseCode) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.approveNFT.selector, - token, approved, serialNumber)); - responseCode = success ? abi.decode(result, (int32)) : HederaResponseCodes.UNKNOWN; + abi.encodeWithSelector( + IHederaTokenService.approveNFT.selector, + token, + approved, + serialNumber + ) + ); + responseCode = success + ? abi.decode(result, (int32)) + : HederaResponseCodes.UNKNOWN; } /// Get the approved address for a single NFT /// Only Applicable to NFT Tokens - /// @param token The Hedera NFT token address to check approval + /// @param token The Hiero NFT token address to check approval /// @param serialNumber The NFT to find the approved address for /// @return responseCode The response code for the status of the request. SUCCESS is 22. /// @return approved The approved address for this NFT, or the zero address if there is none - function getApproved(address token, uint256 serialNumber) internal returns (int responseCode, address approved) - { + function getApproved( + address token, + uint256 serialNumber + ) internal returns (int responseCode, address approved) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.getApproved.selector, - token, serialNumber)); - (responseCode, approved) = - success - ? abi.decode(result, (int32, address)) - : (HederaResponseCodes.UNKNOWN, address(0)); + abi.encodeWithSelector( + IHederaTokenService.getApproved.selector, + token, + serialNumber + ) + ); + (responseCode, approved) = success + ? abi.decode(result, (int32, address)) + : (HederaResponseCodes.UNKNOWN, address(0)); } /// Query if token account is frozen @@ -346,10 +574,20 @@ abstract contract HederaTokenService is HederaResponseCodes { /// @param account The account address associated with the token /// @return responseCode The response code for the status of the request. SUCCESS is 22. /// @return frozen True if `account` is frozen for `token` - function isFrozen(address token, address account)internal returns (int64 responseCode, bool frozen){ + function isFrozen( + address token, + address account + ) internal returns (int64 responseCode, bool frozen) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.isFrozen.selector, token, account)); - (responseCode, frozen) = success ? abi.decode(result, (int32,bool)) : (HederaResponseCodes.UNKNOWN,false); + abi.encodeWithSelector( + IHederaTokenService.isFrozen.selector, + token, + account + ) + ); + (responseCode, frozen) = success + ? abi.decode(result, (int32, bool)) + : (HederaResponseCodes.UNKNOWN, false); } /// Query if token account has kyc granted @@ -357,123 +595,218 @@ abstract contract HederaTokenService is HederaResponseCodes { /// @param account The account address associated with the token /// @return responseCode The response code for the status of the request. SUCCESS is 22. /// @return kycGranted True if `account` has kyc granted for `token` - function isKyc(address token, address account)external returns (int64 responseCode, bool kycGranted){ + function isKyc( + address token, + address account + ) external returns (int64 responseCode, bool kycGranted) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.isKyc.selector, token, account)); - (responseCode, kycGranted) = success ? abi.decode(result, (int32,bool)) : (HederaResponseCodes.UNKNOWN,false); + abi.encodeWithSelector( + IHederaTokenService.isKyc.selector, + token, + account + ) + ); + (responseCode, kycGranted) = success + ? abi.decode(result, (int32, bool)) + : (HederaResponseCodes.UNKNOWN, false); } /// Query if valid token found for the given address /// @param token The token address /// @return responseCode The response code for the status of the request. SUCCESS is 22. /// @return isTokenFlag True if valid token found for the given address - function isToken(address token) internal returns (int64 responseCode, bool isTokenFlag) { + function isToken( + address token + ) internal returns (int64 responseCode, bool isTokenFlag) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.isToken.selector, token)); - (responseCode, isTokenFlag) = success ? abi.decode(result, (int32, bool)) : (HederaResponseCodes.UNKNOWN, false); + abi.encodeWithSelector(IHederaTokenService.isToken.selector, token) + ); + (responseCode, isTokenFlag) = success + ? abi.decode(result, (int32, bool)) + : (HederaResponseCodes.UNKNOWN, false); } /// Query to return the token type for a given address /// @param token The token address /// @return responseCode The response code for the status of the request. SUCCESS is 22. /// @return tokenType the token type. 0 is FUNGIBLE_COMMON, 1 is NON_FUNGIBLE_UNIQUE, -1 is UNRECOGNIZED - function getTokenType(address token) internal returns (int64 responseCode, int32 tokenType) { + function getTokenType( + address token + ) internal returns (int64 responseCode, int32 tokenType) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.getTokenType.selector, token)); - (responseCode, tokenType) = success ? abi.decode(result, (int32, int32)) : (HederaResponseCodes.UNKNOWN, - 1); + abi.encodeWithSelector( + IHederaTokenService.getTokenType.selector, + token + ) + ); + (responseCode, tokenType) = success + ? abi.decode(result, (int32, int32)) + : (HederaResponseCodes.UNKNOWN, -1); } /// Operation to freeze token account /// @param token The token address /// @param account The account address to be frozen /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function freezeToken(address token, address account) internal returns (int64 responseCode){ + function freezeToken( + address token, + address account + ) internal returns (int64 responseCode) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.freezeToken.selector, token, account)); - (responseCode) = success ? abi.decode(result, (int32)) : HederaResponseCodes.UNKNOWN; + abi.encodeWithSelector( + IHederaTokenService.freezeToken.selector, + token, + account + ) + ); + (responseCode) = success + ? abi.decode(result, (int32)) + : HederaResponseCodes.UNKNOWN; } /// Operation to unfreeze token account /// @param token The token address /// @param account The account address to be unfrozen /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function unfreezeToken(address token, address account)internal returns (int64 responseCode){ + function unfreezeToken( + address token, + address account + ) internal returns (int64 responseCode) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.unfreezeToken.selector, token, account)); - (responseCode) = success ? abi.decode(result, (int32)) : HederaResponseCodes.UNKNOWN; + abi.encodeWithSelector( + IHederaTokenService.unfreezeToken.selector, + token, + account + ) + ); + (responseCode) = success + ? abi.decode(result, (int32)) + : HederaResponseCodes.UNKNOWN; } /// Operation to grant kyc to token account /// @param token The token address /// @param account The account address to grant kyc /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function grantTokenKyc(address token, address account)external returns (int64 responseCode){ + function grantTokenKyc( + address token, + address account + ) external returns (int64 responseCode) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.grantTokenKyc.selector, token, account)); - (responseCode) = success ? abi.decode(result, (int32)) : HederaResponseCodes.UNKNOWN; + abi.encodeWithSelector( + IHederaTokenService.grantTokenKyc.selector, + token, + account + ) + ); + (responseCode) = success + ? abi.decode(result, (int32)) + : HederaResponseCodes.UNKNOWN; } /// Operation to revoke kyc to token account /// @param token The token address /// @param account The account address to revoke kyc /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function revokeTokenKyc(address token, address account)external returns (int64 responseCode){ + function revokeTokenKyc( + address token, + address account + ) external returns (int64 responseCode) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.revokeTokenKyc.selector, token, account)); - (responseCode) = success ? abi.decode(result, (int32)) : HederaResponseCodes.UNKNOWN; + abi.encodeWithSelector( + IHederaTokenService.revokeTokenKyc.selector, + token, + account + ) + ); + (responseCode) = success + ? abi.decode(result, (int32)) + : HederaResponseCodes.UNKNOWN; } /// Enable or disable approval for a third party ("operator") to manage /// all of `msg.sender`'s assets - /// @param token The Hedera NFT token address to approve + /// @param token The Hiero NFT token address to approve /// @param operator Address to add to the set of authorized operators /// @param approved True if the operator is approved, false to revoke approval /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function setApprovalForAll(address token, address operator, bool approved) internal returns (int responseCode) - { + function setApprovalForAll( + address token, + address operator, + bool approved + ) internal returns (int responseCode) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.setApprovalForAll.selector, - token, operator, approved)); - responseCode = success ? abi.decode(result, (int32)) : HederaResponseCodes.UNKNOWN; + abi.encodeWithSelector( + IHederaTokenService.setApprovalForAll.selector, + token, + operator, + approved + ) + ); + responseCode = success + ? abi.decode(result, (int32)) + : HederaResponseCodes.UNKNOWN; } - /// Query if an address is an authorized operator for another address /// Only Applicable to NFT Tokens - /// @param token The Hedera NFT token address to approve + /// @param token The Hiero NFT token address to approve /// @param owner The address that owns the NFTs /// @param operator The address that acts on behalf of the owner /// @return responseCode The response code for the status of the request. SUCCESS is 22. /// @return approved True if `operator` is an approved operator for `owner`, false otherwise - function isApprovedForAll(address token, address owner, address operator) internal returns (int responseCode, bool approved) - { + function isApprovedForAll( + address token, + address owner, + address operator + ) internal returns (int responseCode, bool approved) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.isApprovedForAll.selector, - token, owner, operator)); - (responseCode, approved) = - success - ? abi.decode(result, (int32, bool)) - : (HederaResponseCodes.UNKNOWN, false); + abi.encodeWithSelector( + IHederaTokenService.isApprovedForAll.selector, + token, + owner, + operator + ) + ); + (responseCode, approved) = success + ? abi.decode(result, (int32, bool)) + : (HederaResponseCodes.UNKNOWN, false); } /// Query token default freeze status /// @param token The token address to check /// @return responseCode The response code for the status of the request. SUCCESS is 22. /// @return defaultFreezeStatus True if `token` default freeze status is frozen. - function getTokenDefaultFreezeStatus(address token) internal returns (int responseCode, bool defaultFreezeStatus) { + function getTokenDefaultFreezeStatus( + address token + ) internal returns (int responseCode, bool defaultFreezeStatus) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.getTokenDefaultFreezeStatus.selector, token)); - (responseCode, defaultFreezeStatus) = success ? abi.decode(result, (int32, bool)) : (HederaResponseCodes.UNKNOWN, false); + abi.encodeWithSelector( + IHederaTokenService.getTokenDefaultFreezeStatus.selector, + token + ) + ); + (responseCode, defaultFreezeStatus) = success + ? abi.decode(result, (int32, bool)) + : (HederaResponseCodes.UNKNOWN, false); } /// Query token default kyc status /// @param token The token address to check /// @return responseCode The response code for the status of the request. SUCCESS is 22. /// @return defaultKycStatus True if `token` default kyc status is KycNotApplicable and false if Revoked. - function getTokenDefaultKycStatus(address token) internal returns (int responseCode, bool defaultKycStatus) { + function getTokenDefaultKycStatus( + address token + ) internal returns (int responseCode, bool defaultKycStatus) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.getTokenDefaultKycStatus.selector, token)); - (responseCode, defaultKycStatus) = success ? abi.decode(result, (int32, bool)) : (HederaResponseCodes.UNKNOWN, false); + abi.encodeWithSelector( + IHederaTokenService.getTokenDefaultKycStatus.selector, + token + ) + ); + (responseCode, defaultKycStatus) = success + ? abi.decode(result, (int32, bool)) + : (HederaResponseCodes.UNKNOWN, false); } /********************** @@ -484,13 +817,22 @@ abstract contract HederaTokenService is HederaResponseCodes { /// @param token The ID of the token as a solidity address /// @param accountIds account to do a transfer to/from /// @param amounts The amount from the accountId at the same index - function transferTokens(address token, address[] memory accountIds, int64[] memory amounts) internal - returns (int responseCode) - { + function transferTokens( + address token, + address[] memory accountIds, + int64[] memory amounts + ) internal returns (int responseCode) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.transferTokens.selector, - token, accountIds, amounts)); - responseCode = success ? abi.decode(result, (int32)) : HederaResponseCodes.UNKNOWN; + abi.encodeWithSelector( + IHederaTokenService.transferTokens.selector, + token, + accountIds, + amounts + ) + ); + responseCode = success + ? abi.decode(result, (int32)) + : HederaResponseCodes.UNKNOWN; } /// Initiates a Non-Fungable Token Transfer @@ -498,13 +840,24 @@ abstract contract HederaTokenService is HederaResponseCodes { /// @param sender the sender of an nft /// @param receiver the receiver of the nft sent by the same index at sender /// @param serialNumber the serial number of the nft sent by the same index at sender - function transferNFTs(address token, address[] memory sender, address[] memory receiver, int64[] memory serialNumber) - internal returns (int responseCode) - { + function transferNFTs( + address token, + address[] memory sender, + address[] memory receiver, + int64[] memory serialNumber + ) internal returns (int responseCode) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.transferNFTs.selector, - token, sender, receiver, serialNumber)); - responseCode = success ? abi.decode(result, (int32)) : HederaResponseCodes.UNKNOWN; + abi.encodeWithSelector( + IHederaTokenService.transferNFTs.selector, + token, + sender, + receiver, + serialNumber + ) + ); + responseCode = success + ? abi.decode(result, (int32)) + : HederaResponseCodes.UNKNOWN; } /// Transfers tokens where the calling account/contract is implicitly the first entry in the token transfer list, @@ -514,13 +867,24 @@ abstract contract HederaTokenService is HederaResponseCodes { /// @param sender The sender for the transaction /// @param receiver The receiver of the transaction /// @param amount Non-negative value to send. a negative value will result in a failure. - function transferToken(address token, address sender, address receiver, int64 amount) internal - returns (int responseCode) - { + function transferToken( + address token, + address sender, + address receiver, + int64 amount + ) internal returns (int responseCode) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.transferToken.selector, - token, sender, receiver, amount)); - responseCode = success ? abi.decode(result, (int32)) : HederaResponseCodes.UNKNOWN; + abi.encodeWithSelector( + IHederaTokenService.transferToken.selector, + token, + sender, + receiver, + amount + ) + ); + responseCode = success + ? abi.decode(result, (int32)) + : HederaResponseCodes.UNKNOWN; } /// Transfers tokens where the calling account/contract is implicitly the first entry in the token transfer list, @@ -530,33 +894,54 @@ abstract contract HederaTokenService is HederaResponseCodes { /// @param sender The sender for the transaction /// @param receiver The receiver of the transaction /// @param serialNumber The serial number of the NFT to transfer. - function transferNFT(address token, address sender, address receiver, int64 serialNumber) internal - returns (int responseCode) - { + function transferNFT( + address token, + address sender, + address receiver, + int64 serialNumber + ) internal returns (int responseCode) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.transferNFT.selector, - token, sender, receiver, serialNumber)); - responseCode = success ? abi.decode(result, (int32)) : HederaResponseCodes.UNKNOWN; + abi.encodeWithSelector( + IHederaTokenService.transferNFT.selector, + token, + sender, + receiver, + serialNumber + ) + ); + responseCode = success + ? abi.decode(result, (int32)) + : HederaResponseCodes.UNKNOWN; } /// Operation to pause token /// @param token The token address to be paused /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function pauseToken(address token) external returns (int responseCode) - { + function pauseToken(address token) external returns (int responseCode) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.pauseToken.selector, token)); - (responseCode) = success ? abi.decode(result, (int32)) : HederaResponseCodes.UNKNOWN; + abi.encodeWithSelector( + IHederaTokenService.pauseToken.selector, + token + ) + ); + (responseCode) = success + ? abi.decode(result, (int32)) + : HederaResponseCodes.UNKNOWN; } /// Operation to unpause token /// @param token The token address to be unpaused /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function unpauseToken(address token) external returns (int responseCode) - { + function unpauseToken(address token) external returns (int responseCode) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.unpauseToken.selector, token)); - (responseCode) = success ? abi.decode(result, (int32)) : HederaResponseCodes.UNKNOWN; + abi.encodeWithSelector( + IHederaTokenService.unpauseToken.selector, + token + ) + ); + (responseCode) = success + ? abi.decode(result, (int32)) + : HederaResponseCodes.UNKNOWN; } /// Operation to wipe fungible tokens from account @@ -564,11 +949,22 @@ abstract contract HederaTokenService is HederaResponseCodes { /// @param account The account address to revoke kyc /// @param amount The number of tokens to wipe /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function wipeTokenAccount(address token, address account, uint32 amount) internal returns (int responseCode) - { + function wipeTokenAccount( + address token, + address account, + uint32 amount + ) internal returns (int responseCode) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.wipeTokenAccount.selector, token, account, amount)); - (responseCode) = success ? abi.decode(result, (int32)) : HederaResponseCodes.UNKNOWN; + abi.encodeWithSelector( + IHederaTokenService.wipeTokenAccount.selector, + token, + account, + amount + ) + ); + (responseCode) = success + ? abi.decode(result, (int32)) + : HederaResponseCodes.UNKNOWN; } /// Operation to wipe non fungible tokens from account @@ -576,61 +972,117 @@ abstract contract HederaTokenService is HederaResponseCodes { /// @param account The account address to revoke kyc /// @param serialNumbers The serial numbers of token to wipe /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function wipeTokenAccountNFT(address token, address account, int64[] memory serialNumbers) internal - returns (int responseCode) - { + function wipeTokenAccountNFT( + address token, + address account, + int64[] memory serialNumbers + ) internal returns (int responseCode) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.wipeTokenAccountNFT.selector, token, account, serialNumbers)); - (responseCode) = success ? abi.decode(result, (int32)) : HederaResponseCodes.UNKNOWN; + abi.encodeWithSelector( + IHederaTokenService.wipeTokenAccountNFT.selector, + token, + account, + serialNumbers + ) + ); + (responseCode) = success + ? abi.decode(result, (int32)) + : HederaResponseCodes.UNKNOWN; } /// Operation to delete token /// @param token The token address /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function deleteToken(address token) internal returns (int responseCode) - { + function deleteToken(address token) internal returns (int responseCode) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.deleteToken.selector, token)); - (responseCode) = success ? abi.decode(result, (int32)) : HederaResponseCodes.UNKNOWN; + abi.encodeWithSelector( + IHederaTokenService.deleteToken.selector, + token + ) + ); + (responseCode) = success + ? abi.decode(result, (int32)) + : HederaResponseCodes.UNKNOWN; } /// Operation to update token info /// @param token The token address /// @param tokenInfo The hedera token info to update token with /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function updateTokenInfo(address token, IHederaTokenService.HederaToken memory tokenInfo) internal returns (int responseCode) { + function updateTokenInfo( + address token, + IHederaTokenService.HederaToken memory tokenInfo + ) internal returns (int responseCode) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.updateTokenInfo.selector, token, tokenInfo)); - responseCode = success ? abi.decode(result, (int32)) : HederaResponseCodes.UNKNOWN; + abi.encodeWithSelector( + IHederaTokenService.updateTokenInfo.selector, + token, + tokenInfo + ) + ); + responseCode = success + ? abi.decode(result, (int32)) + : HederaResponseCodes.UNKNOWN; } /// Operation to get token expiry info /// @param token The token address /// @return responseCode The response code for the status of the request. SUCCESS is 22. /// @return expiryInfo The expiry info of the token - function getTokenExpiryInfo(address token) external returns (int responseCode, IHederaTokenService.Expiry memory expiryInfo){ + function getTokenExpiryInfo( + address token + ) + external + returns (int responseCode, IHederaTokenService.Expiry memory expiryInfo) + { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.getTokenExpiryInfo.selector, token)); + abi.encodeWithSelector( + IHederaTokenService.getTokenExpiryInfo.selector, + token + ) + ); IHederaTokenService.Expiry memory defaultExpiryInfo; - (responseCode, expiryInfo) = success ? abi.decode(result, (int32, IHederaTokenService.Expiry)) : (HederaResponseCodes.UNKNOWN, defaultExpiryInfo); + (responseCode, expiryInfo) = success + ? abi.decode(result, (int32, IHederaTokenService.Expiry)) + : (HederaResponseCodes.UNKNOWN, defaultExpiryInfo); } /// Operation to update token expiry info /// @param token The token address /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function updateTokenExpiryInfo(address token, IHederaTokenService.Expiry memory expiryInfo) external returns (int responseCode){ + function updateTokenExpiryInfo( + address token, + IHederaTokenService.Expiry memory expiryInfo + ) external returns (int responseCode) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.updateTokenExpiryInfo.selector, token, expiryInfo)); - (responseCode) = success ? abi.decode(result, (int32)) : HederaResponseCodes.UNKNOWN; + abi.encodeWithSelector( + IHederaTokenService.updateTokenExpiryInfo.selector, + token, + expiryInfo + ) + ); + (responseCode) = success + ? abi.decode(result, (int32)) + : HederaResponseCodes.UNKNOWN; } /// Operation to update token expiry info /// @param token The token address /// @param keys The token keys /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function updateTokenKeys(address token, IHederaTokenService.TokenKey[] memory keys) external returns (int64 responseCode){ + function updateTokenKeys( + address token, + IHederaTokenService.TokenKey[] memory keys + ) external returns (int64 responseCode) { (bool success, bytes memory result) = precompileAddress.call( - abi.encodeWithSelector(IHederaTokenService.updateTokenKeys.selector, token, keys)); - (responseCode) = success ? abi.decode(result, (int32)) : HederaResponseCodes.UNKNOWN; + abi.encodeWithSelector( + IHederaTokenService.updateTokenKeys.selector, + token, + keys + ) + ); + (responseCode) = success + ? abi.decode(result, (int32)) + : HederaResponseCodes.UNKNOWN; } } diff --git a/src/sdk/examples/precompile-example/IHederaTokenService.sol b/src/sdk/examples/precompile-example/IHederaTokenService.sol index 370303356..7c3b57ea2 100644 --- a/src/sdk/examples/precompile-example/IHederaTokenService.sol +++ b/src/sdk/examples/precompile-example/IHederaTokenService.sol @@ -5,7 +5,6 @@ pragma experimental ABIEncoderV2; // This file was copied from github.com/hashgraph/hedera-smart-contracts on Aug 31 2022 interface IHederaTokenService { - /// Transfers cryptocurrency among two or more accounts by making the desired adjustments to their /// balances. Each transfer list can specify up to 10 adjustments. Each negative amount is withdrawn /// from the corresponding account (a sender), and each positive one is added to the corresponding @@ -18,7 +17,6 @@ interface IHederaTokenService { struct AccountAmount { // The Account ID, as a solidity address, that sends/receives cryptocurrency or tokens address accountID; - // The amount of the lowest denomination of the given token that // the account sends(negative) or receives(positive) int64 amount; @@ -30,10 +28,8 @@ interface IHederaTokenService { struct NftTransfer { // The solidity address of the sender address senderAccountID; - // The solidity address of the receiver address receiverAccountID; - // The serial number of the NFT int64 serialNumber; } @@ -41,26 +37,22 @@ interface IHederaTokenService { struct TokenTransferList { // The ID of the token as a solidity address address token; - // Applicable to tokens of type FUNGIBLE_COMMON. Multiple list of AccountAmounts, each of which // has an account and amount. AccountAmount[] transfers; - // Applicable to tokens of type NON_FUNGIBLE_UNIQUE. Multiple list of NftTransfers, each of // which has a sender and receiver account, including the serial number of the NFT NftTransfer[] nftTransfers; } - /// Expiry properties of a Hedera token - second, autoRenewAccount, autoRenewPeriod + /// Expiry properties of a Hiero token - second, autoRenewAccount, autoRenewPeriod struct Expiry { // The epoch second at which the token should expire; if an auto-renew account and period are // specified, this is coerced to the current epoch second plus the autoRenewPeriod uint32 second; - // ID of an account which will be automatically charged to renew the token's expiration, at // autoRenewPeriod interval, expressed as a solidity address address autoRenewAccount; - // The interval at which the auto-renew account will be charged to extend the token's expiry uint32 autoRenewPeriod; } @@ -76,19 +68,14 @@ interface IHederaTokenService { /// controlled by the Key. /// Exactly one of the possible values should be populated in order for the Key to be valid. struct KeyValue { - - // if set to true, the key of the calling Hedera account will be inherited as the token key + // if set to true, the key of the calling Hiero account will be inherited as the token key bool inheritAccountKey; - // smart contract instance that is authorized as if it had signed with a key address contractId; - // Ed25519 public key bytes bytes ed25519; - // Compressed ECDSA(secp256k1) public key bytes bytes ECDSA_secp256k1; - // A smart contract that, if the recipient of the active message frame, should be treated // as having signed. (Note this does not mean the code being executed in the frame // will belong to the given contract, since it could be running another contract's code via @@ -100,7 +87,6 @@ interface IHederaTokenService { /// A list of token key types the key should be applied to and the value of the key struct TokenKey { - // bit field representing the key type. Keys of all types that have corresponding bits set to 1 // will be created for the token. // 0th bit: adminKey @@ -112,105 +98,82 @@ interface IHederaTokenService { // 6th bit: pauseKey // 7th bit: ignored uint keyType; - // the value that will be set to the key type KeyValue key; } - /// Basic properties of a Hedera Token - name, symbol, memo, tokenSupplyType, maxSupply, + /// Basic properties of a Hiero Token - name, symbol, memo, tokenSupplyType, maxSupply, /// treasury, freezeDefault. These properties are related both to Fungible and NFT token types. struct HederaToken { // The publicly visible name of the token. The token name is specified as a Unicode string. // Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL). string name; - // The publicly visible token symbol. The token symbol is specified as a Unicode string. // Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL). string symbol; - // The ID of the account which will act as a treasury for the token as a solidity address. // This account will receive the specified initial supply or the newly minted NFTs in // the case for NON_FUNGIBLE_UNIQUE Type address treasury; - // The memo associated with the token (UTF-8 encoding max 100 bytes) string memo; - // IWA compatibility. Specified the token supply type. Defaults to INFINITE bool tokenSupplyType; - // IWA Compatibility. Depends on TokenSupplyType. For tokens of type FUNGIBLE_COMMON - the // maximum number of tokens that can be in circulation. For tokens of type NON_FUNGIBLE_UNIQUE - // the maximum number of NFTs (serial numbers) that can be minted. This field can never be changed! uint32 maxSupply; - - // The default Freeze status (frozen or unfrozen) of Hedera accounts relative to this token. If + // The default Freeze status (frozen or unfrozen) of Hiero accounts relative to this token. If // true, an account must be unfrozen before it can receive the token bool freezeDefault; - // list of keys to set to the token TokenKey[] tokenKeys; - - // expiry properties of a Hedera token - second, autoRenewAccount, autoRenewPeriod + // expiry properties of a Hiero token - second, autoRenewAccount, autoRenewPeriod Expiry expiry; } - /// Additional post creation fungible and non fungible properties of a Hedera Token. + /// Additional post creation fungible and non fungible properties of a Hiero Token. struct TokenInfo { /// The hedera token; HederaToken hedera; - /// The fixed fees collected when transferring the token FixedFee[] fixedFees; - /// The fractional fees collected when transferring the token FractionalFee[] fractionalFees; - /// The royalty fees collected when transferring the token RoyaltyFee[] royaltyFees; - /// Specifies whether the token kyc was defaulted with KycNotApplicable (true) or Revoked (false) bool defaultKycStatus; - /// Specifies whether the token is deleted or not bool deleted; - /// The ID of the network ledger string ledgerId; - /// Specifies whether the token is currently paused or not bool pauseStatus; - /// The number of tokens (fungible) or serials (non-fungible) of the token uint64 totalSupply; } - /// Additional fungible properties of a Hedera Token. + /// Additional fungible properties of a Hiero Token. struct FungibleTokenInfo { /// The shared hedera token info TokenInfo tokenInfo; - /// The number of decimal places a token is divisible by uint32 decimals; } - /// Additional non fungible properties of a Hedera Token. + /// Additional non fungible properties of a Hiero Token. struct NonFungibleTokenInfo { /// The shared hedera token info TokenInfo tokenInfo; - /// The serial number of the nft int64 serialNumber; - /// The account id specifying the owner of the non fungible token address ownerId; - /// The epoch second at which the token was created. int64 creationTime; - /// The unique metadata of the NFT bytes metadata; - /// The account id specifying an account that has been granted spending permissions on this nft address spenderId; } @@ -220,18 +183,13 @@ interface IHederaTokenService { /// the fee depends on the values of tokenId, useHbarsForPayment and /// useCurrentTokenForPayment. Exactly one of the values should be set. struct FixedFee { - uint32 amount; - // Specifies ID of token that should be used for fixed fee denomination address tokenId; - // Specifies this fixed fee should be denominated in Hbar bool useHbarsForPayment; - // Specifies this fixed fee should be denominated in the Token currently being created bool useCurrentTokenForPayment; - // The ID of the account to receive the custom fee, expressed as a solidity address address feeCollector; } @@ -242,17 +200,13 @@ interface IHederaTokenService { struct FractionalFee { // A rational number's numerator, used to set the amount of a value transfer to collect as a custom fee uint32 numerator; - // A rational number's denominator, used to set the amount of a value transfer to collect as a custom fee uint32 denominator; - // The minimum amount to assess uint32 minimumAmount; - // The maximum amount to assess (zero implies no maximum) uint32 maximumAmount; bool netOfTransfers; - // The ID of the account to receive the custom fee, expressed as a solidity address address feeCollector; } @@ -265,10 +219,8 @@ interface IHederaTokenService { struct RoyaltyFee { // A fraction's numerator of fungible value exchanged for an NFT to collect as royalty uint32 numerator; - // A fraction's denominator of fungible value exchanged for an NFT to collect as royalty uint32 denominator; - // If present, the fee to assess to the NFT receiver when no fungible value // is exchanged with the sender. Consists of: // amount: the amount to charge for the fee @@ -277,7 +229,6 @@ interface IHederaTokenService { uint32 amount; address tokenId; bool useHbarsForPayment; - // The ID of the account to receive the custom fee, expressed as a solidity address address feeCollector; } @@ -289,9 +240,9 @@ interface IHederaTokenService { /// Initiates a Token Transfer /// @param tokenTransfers the list of transfers to do /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function cryptoTransfer(TokenTransferList[] memory tokenTransfers) - external - returns (int64 responseCode); + function cryptoTransfer( + TokenTransferList[] memory tokenTransfers + ) external returns (int64 responseCode); /// Mints an amount of the token to the defined treasury account /// @param token The token for which to mint tokens. If token does not exist, transaction results in @@ -348,16 +299,18 @@ interface IHederaTokenService { /// Type, once an account is associated, it can hold any number of NFTs (serial numbers) of that /// token type /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function associateTokens(address account, address[] memory tokens) - external - returns (int64 responseCode); + function associateTokens( + address account, + address[] memory tokens + ) external returns (int64 responseCode); /// Single-token variant of associateTokens. Will be mapped to a single entry array call of associateTokens /// @param account The account to be associated with the provided token /// @param token The token to be associated with the provided account - function associateToken(address account, address token) - external - returns (int64 responseCode); + function associateToken( + address account, + address token + ) external returns (int64 responseCode); /// Dissociates the provided account with the provided tokens. Must be signed by the provided /// Account's key. @@ -377,16 +330,18 @@ interface IHederaTokenService { /// @param account The account to be dissociated from the provided tokens /// @param tokens The tokens to be dissociated from the provided account. /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function dissociateTokens(address account, address[] memory tokens) - external - returns (int64 responseCode); + function dissociateTokens( + address account, + address[] memory tokens + ) external returns (int64 responseCode); /// Single-token variant of dissociateTokens. Will be mapped to a single entry array call of dissociateTokens /// @param account The account to be associated with the provided token /// @param token The token to be associated with the provided account - function dissociateToken(address account, address token) - external - returns (int64 responseCode); + function dissociateToken( + address account, + address token + ) external returns (int64 responseCode); /// Creates a Fungible Token with the specified properties /// @param token the basic properties of the token being created @@ -422,10 +377,9 @@ interface IHederaTokenService { /// @param token the basic properties of the token being created /// @return responseCode The response code for the status of the request. SUCCESS is 22. /// @return tokenAddress the created token's address - function createNonFungibleToken(HederaToken memory token) - external - payable - returns (int64 responseCode, address tokenAddress); + function createNonFungibleToken( + HederaToken memory token + ) external payable returns (int64 responseCode, address tokenAddress); /// Creates an Non Fungible Unique Token with the specified properties /// @param token the basic properties of the token being created @@ -508,7 +462,7 @@ interface IHederaTokenService { /// Returns the amount which spender is still allowed to withdraw from owner. /// Only Applicable to Fungible Tokens - /// @param token The Hedera token address to check the allowance of + /// @param token The Hiero token address to check the allowance of /// @param owner the owner of the tokens to be spent /// @param spender the spender of the tokens /// @return responseCode The response code for the status of the request. SUCCESS is 22. @@ -521,7 +475,7 @@ interface IHederaTokenService { /// Allow or reaffirm the approved address to transfer an NFT the approved address does not own. /// Only Applicable to NFT Tokens - /// @param token The Hedera NFT token address to approve + /// @param token The Hiero NFT token address to approve /// @param approved The new approved NFT controller. To revoke approvals pass in the zero address. /// @param serialNumber The NFT serial number to approve /// @return responseCode The response code for the status of the request. SUCCESS is 22. @@ -533,17 +487,18 @@ interface IHederaTokenService { /// Get the approved address for a single NFT /// Only Applicable to NFT Tokens - /// @param token The Hedera NFT token address to check approval + /// @param token The Hiero NFT token address to check approval /// @param serialNumber The NFT to find the approved address for /// @return responseCode The response code for the status of the request. SUCCESS is 22. /// @return approved The approved address for this NFT, or the zero address if there is none - function getApproved(address token, int64 serialNumber) - external - returns (int64 responseCode, address approved); + function getApproved( + address token, + int64 serialNumber + ) external returns (int64 responseCode, address approved); /// Enable or disable approval for a third party ("operator") to manage /// all of `msg.sender`'s assets - /// @param token The Hedera NFT token address to approve + /// @param token The Hiero NFT token address to approve /// @param operator Address to add to the set of authorized operators /// @param approved True if the operator is approved, false to revoke approval /// @return responseCode The response code for the status of the request. SUCCESS is 22. @@ -555,7 +510,7 @@ interface IHederaTokenService { /// Query if an address is an authorized operator for another address /// Only Applicable to NFT Tokens - /// @param token The Hedera NFT token address to approve + /// @param token The Hiero NFT token address to approve /// @param owner The address that owns the NFTs /// @param operator The address that acts on behalf of the owner /// @return responseCode The response code for the status of the request. SUCCESS is 22. @@ -571,18 +526,20 @@ interface IHederaTokenService { /// @param account The account address associated with the token /// @return responseCode The response code for the status of the request. SUCCESS is 22. /// @return frozen True if `account` is frozen for `token` - function isFrozen(address token, address account) - external - returns (int64 responseCode, bool frozen); + function isFrozen( + address token, + address account + ) external returns (int64 responseCode, bool frozen); /// Query if token account has kyc granted /// @param token The token address to check /// @param account The account address associated with the token /// @return responseCode The response code for the status of the request. SUCCESS is 22. /// @return kycGranted True if `account` has kyc granted for `token` - function isKyc(address token, address account) - external - returns (int64 responseCode, bool kycGranted); + function isKyc( + address token, + address account + ) external returns (int64 responseCode, bool kycGranted); /// Operation to delete token /// @param token The token address to be deleted @@ -595,99 +552,122 @@ interface IHederaTokenService { /// @return fixedFees Set of fixed fees for `token` /// @return fractionalFees Set of fractional fees for `token` /// @return royaltyFees Set of royalty fees for `token` - function getTokenCustomFees(address token) + function getTokenCustomFees( + address token + ) external - returns (int64 responseCode, FixedFee[] memory fixedFees, FractionalFee[] memory fractionalFees, RoyaltyFee[] memory royaltyFees); + returns ( + int64 responseCode, + FixedFee[] memory fixedFees, + FractionalFee[] memory fractionalFees, + RoyaltyFee[] memory royaltyFees + ); /// Query token default freeze status /// @param token The token address to check /// @return responseCode The response code for the status of the request. SUCCESS is 22. /// @return defaultFreezeStatus True if `token` default freeze status is frozen. - function getTokenDefaultFreezeStatus(address token) - external - returns (int64 responseCode, bool defaultFreezeStatus); + function getTokenDefaultFreezeStatus( + address token + ) external returns (int64 responseCode, bool defaultFreezeStatus); /// Query token default kyc status /// @param token The token address to check /// @return responseCode The response code for the status of the request. SUCCESS is 22. /// @return defaultKycStatus True if `token` default kyc status is KycNotApplicable and false if Revoked. - function getTokenDefaultKycStatus(address token) - external - returns (int64 responseCode, bool defaultKycStatus); + function getTokenDefaultKycStatus( + address token + ) external returns (int64 responseCode, bool defaultKycStatus); /// Query token expiry info /// @param token The token address to check /// @return responseCode The response code for the status of the request. SUCCESS is 22. /// @return expiry Expiry info for `token` - function getTokenExpiryInfo(address token) - external - returns (int64 responseCode, Expiry memory expiry); + function getTokenExpiryInfo( + address token + ) external returns (int64 responseCode, Expiry memory expiry); /// Query fungible token info /// @param token The token address to check /// @return responseCode The response code for the status of the request. SUCCESS is 22. /// @return fungibleTokenInfo FungibleTokenInfo info for `token` - function getFungibleTokenInfo(address token) + function getFungibleTokenInfo( + address token + ) external - returns (int64 responseCode, FungibleTokenInfo memory fungibleTokenInfo); + returns ( + int64 responseCode, + FungibleTokenInfo memory fungibleTokenInfo + ); /// Query token info /// @param token The token address to check /// @return responseCode The response code for the status of the request. SUCCESS is 22. /// @return tokenInfo TokenInfo info for `token` - function getTokenInfo(address token) - external - returns (int64 responseCode, TokenInfo memory tokenInfo); + function getTokenInfo( + address token + ) external returns (int64 responseCode, TokenInfo memory tokenInfo); /// Query token KeyValue /// @param token The token address to check /// @param keyType The keyType of the desired KeyValue /// @return responseCode The response code for the status of the request. SUCCESS is 22. /// @return key KeyValue info for key of type `keyType` - function getTokenKey(address token, uint keyType) - external - returns (int64 responseCode, KeyValue memory key); + function getTokenKey( + address token, + uint keyType + ) external returns (int64 responseCode, KeyValue memory key); /// Query non fungible token info /// @param token The token address to check /// @param serialNumber The NFT serialNumber to check /// @return responseCode The response code for the status of the request. SUCCESS is 22. /// @return nonFungibleTokenInfo NonFungibleTokenInfo info for `token` `serialNumber` - function getNonFungibleTokenInfo(address token, int64 serialNumber) + function getNonFungibleTokenInfo( + address token, + int64 serialNumber + ) external - returns (int64 responseCode, NonFungibleTokenInfo memory nonFungibleTokenInfo); + returns ( + int64 responseCode, + NonFungibleTokenInfo memory nonFungibleTokenInfo + ); /// Operation to freeze token account /// @param token The token address /// @param account The account address to be frozen /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function freezeToken(address token, address account) - external - returns (int64 responseCode); + function freezeToken( + address token, + address account + ) external returns (int64 responseCode); /// Operation to unfreeze token account /// @param token The token address /// @param account The account address to be unfrozen /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function unfreezeToken(address token, address account) - external - returns (int64 responseCode); + function unfreezeToken( + address token, + address account + ) external returns (int64 responseCode); /// Operation to grant kyc to token account /// @param token The token address /// @param account The account address to grant kyc /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function grantTokenKyc(address token, address account) - external - returns (int64 responseCode); + function grantTokenKyc( + address token, + address account + ) external returns (int64 responseCode); /// Operation to revoke kyc to token account /// @param token The token address /// @param account The account address to revoke kyc /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function revokeTokenKyc(address token, address account) - external - returns (int64 responseCode); + function revokeTokenKyc( + address token, + address account + ) external returns (int64 responseCode); /// Operation to pause token /// @param token The token address to be paused @@ -725,39 +705,42 @@ interface IHederaTokenService { /// @param token The token address /// @param tokenInfo The hedera token info to update token with /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function updateTokenInfo(address token, HederaToken memory tokenInfo) - external - returns (int64 responseCode); + function updateTokenInfo( + address token, + HederaToken memory tokenInfo + ) external returns (int64 responseCode); /// Operation to update token expiry info /// @param token The token address /// @param expiryInfo The hedera token expiry info /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function updateTokenExpiryInfo(address token, Expiry memory expiryInfo) - external - returns (int64 responseCode); + function updateTokenExpiryInfo( + address token, + Expiry memory expiryInfo + ) external returns (int64 responseCode); /// Operation to update token expiry info /// @param token The token address /// @param keys The token keys /// @return responseCode The response code for the status of the request. SUCCESS is 22. - function updateTokenKeys(address token, TokenKey[] memory keys) - external - returns (int64 responseCode); + function updateTokenKeys( + address token, + TokenKey[] memory keys + ) external returns (int64 responseCode); /// Query if valid token found for the given address /// @param token The token address /// @return responseCode The response code for the status of the request. SUCCESS is 22. /// @return isToken True if valid token found for the given address - function isToken(address token) - external returns - (int64 responseCode, bool isToken); + function isToken( + address token + ) external returns (int64 responseCode, bool isToken); /// Query to return the token type for a given address /// @param token The token address /// @return responseCode The response code for the status of the request. SUCCESS is 22. /// @return tokenType the token type. 0 is FUNGIBLE_COMMON, 1 is NON_FUNGIBLE_UNIQUE, -1 is UNRECOGNIZED - function getTokenType(address token) - external returns - (int64 responseCode, int32 tokenType); + function getTokenType( + address token + ) external returns (int64 responseCode, int32 tokenType); } diff --git a/src/sdk/main/include/AccountAllowanceApproveTransaction.h b/src/sdk/main/include/AccountAllowanceApproveTransaction.h index 9e0354752..89d55620a 100644 --- a/src/sdk/main/include/AccountAllowanceApproveTransaction.h +++ b/src/sdk/main/include/AccountAllowanceApproveTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_ACCOUNT_ALLOWANCE_APPROVE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_ACCOUNT_ALLOWANCE_APPROVE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_ACCOUNT_ALLOWANCE_APPROVE_TRANSACTION_H_ +#define HIERO_SDK_CPP_ACCOUNT_ALLOWANCE_APPROVE_TRANSACTION_H_ #include "HbarAllowance.h" #include "TokenAllowance.h" @@ -33,7 +33,7 @@ class CryptoApproveAllowanceTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { class AccountId; class Hbar; @@ -41,7 +41,7 @@ class NftId; class TokenId; } -namespace Hedera +namespace Hiero { /** * A transaction that allows a token owner to delegate a token spender to spend the specified token amount on behalf of @@ -250,6 +250,6 @@ class AccountAllowanceApproveTransaction : public Transaction mNftAllowances; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_ACCOUNT_ALLOWANCE_APPROVE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_ACCOUNT_ALLOWANCE_APPROVE_TRANSACTION_H_ diff --git a/src/sdk/main/include/AccountAllowanceDeleteTransaction.h b/src/sdk/main/include/AccountAllowanceDeleteTransaction.h index d62b321df..a20bdda48 100644 --- a/src/sdk/main/include/AccountAllowanceDeleteTransaction.h +++ b/src/sdk/main/include/AccountAllowanceDeleteTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_ACCOUNT_ALLOWANCE_DELETE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_ACCOUNT_ALLOWANCE_DELETE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_ACCOUNT_ALLOWANCE_DELETE_TRANSACTION_H_ +#define HIERO_SDK_CPP_ACCOUNT_ALLOWANCE_DELETE_TRANSACTION_H_ #include "TokenNftAllowance.h" #include "Transaction.h" @@ -31,13 +31,13 @@ class CryptoDeleteAllowanceTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { class AccountId; class NftId; } -namespace Hedera +namespace Hiero { /** * A transaction called by the token owner to delete allowances for NFTs only. In order to delete an existing Hbar or @@ -141,6 +141,6 @@ class AccountAllowanceDeleteTransaction : public Transaction mNftAllowanceDeletions; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_ACCOUNT_ALLOWANCE_DELETE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_ACCOUNT_ALLOWANCE_DELETE_TRANSACTION_H_ diff --git a/src/sdk/main/include/AccountBalance.h b/src/sdk/main/include/AccountBalance.h index 3e9f690f9..18da69e80 100644 --- a/src/sdk/main/include/AccountBalance.h +++ b/src/sdk/main/include/AccountBalance.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_ACCOUNT_BALANCE_H_ -#define HEDERA_SDK_CPP_ACCOUNT_BALANCE_H_ +#ifndef HIERO_SDK_CPP_ACCOUNT_BALANCE_H_ +#define HIERO_SDK_CPP_ACCOUNT_BALANCE_H_ #include "Hbar.h" #include "TokenId.h" @@ -35,10 +35,10 @@ namespace proto class CryptoGetAccountBalanceResponse; } -namespace Hedera +namespace Hiero { /** - * Response from a Hedera network when the client sends an AccountBalanceQuery. + * Response from a Hiero network when the client sends an AccountBalanceQuery. */ class AccountBalance { @@ -100,6 +100,6 @@ class AccountBalance std::unordered_map mTokens; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_ACCOUNT_BALANCE_H_ +#endif // HIERO_SDK_CPP_ACCOUNT_BALANCE_H_ diff --git a/src/sdk/main/include/AccountBalanceQuery.h b/src/sdk/main/include/AccountBalanceQuery.h index 6da920004..19412cb04 100644 --- a/src/sdk/main/include/AccountBalanceQuery.h +++ b/src/sdk/main/include/AccountBalanceQuery.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_ACCOUNT_BALANCE_QUERY_H_ -#define HEDERA_SDK_CPP_ACCOUNT_BALANCE_QUERY_H_ +#ifndef HIERO_SDK_CPP_ACCOUNT_BALANCE_QUERY_H_ +#define HIERO_SDK_CPP_ACCOUNT_BALANCE_QUERY_H_ #include "AccountId.h" #include "ContractId.h" @@ -26,15 +26,15 @@ #include -namespace Hedera +namespace Hiero { class AccountBalance; } -namespace Hedera +namespace Hiero { /** - * Get the balance of a Hedera crypto-currency account. This returns only the balance, so it is a smaller and faster + * Get the balance of a Hiero crypto-currency account. This returns only the balance, so it is a smaller and faster * reply than an AccountInfoQuery. * * This query is free. @@ -143,6 +143,6 @@ class AccountBalanceQuery : public Query std::optional mContractId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_ACCOUNT_BALANCE_QUERY_H_ +#endif // HIERO_SDK_CPP_ACCOUNT_BALANCE_QUERY_H_ diff --git a/src/sdk/main/include/AccountCreateTransaction.h b/src/sdk/main/include/AccountCreateTransaction.h index 918570439..9920cfc9f 100644 --- a/src/sdk/main/include/AccountCreateTransaction.h +++ b/src/sdk/main/include/AccountCreateTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_ACCOUNT_CREATE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_ACCOUNT_CREATE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_ACCOUNT_CREATE_TRANSACTION_H_ +#define HIERO_SDK_CPP_ACCOUNT_CREATE_TRANSACTION_H_ #include "AccountId.h" #include "Defaults.h" @@ -39,7 +39,7 @@ class CryptoCreateTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** * The transaction used to create a new account. After the account is created, the AccountID for it is in the receipt. @@ -121,7 +121,7 @@ class AccountCreateTransaction : public Transaction AccountCreateTransaction& setReceiverSignatureRequired(bool receiveSignatureRequired); /** - * Set the auto renew period for the new account. A Hedera account is charged to extend its expiration date every + * Set the auto renew period for the new account. A Hiero account is charged to extend its expiration date every * renew period. If it doesn't have enough balance, it extends as long as possible. If the balance is zero when it * expires, then the account is deleted. * @@ -328,7 +328,7 @@ class AccountCreateTransaction : public Transaction bool mReceiverSignatureRequired = false; /** - * A Hedera account is charged to extend its expiration date every renew period. If it doesn't have enough balance, it + * A Hiero account is charged to extend its expiration date every renew period. If it doesn't have enough balance, it * extends as long as possible. If the balance is zero when it expires, then the account is deleted. Defaults to 90 * days (2160 hours). */ @@ -366,6 +366,6 @@ class AccountCreateTransaction : public Transaction std::optional mAlias; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_ACCOUNT_CREATE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_ACCOUNT_CREATE_TRANSACTION_H_ diff --git a/src/sdk/main/include/AccountDeleteTransaction.h b/src/sdk/main/include/AccountDeleteTransaction.h index 55076da45..a0b618c15 100644 --- a/src/sdk/main/include/AccountDeleteTransaction.h +++ b/src/sdk/main/include/AccountDeleteTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_ACCOUNT_DELETE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_ACCOUNT_DELETE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_ACCOUNT_DELETE_TRANSACTION_H_ +#define HIERO_SDK_CPP_ACCOUNT_DELETE_TRANSACTION_H_ #include "AccountId.h" #include "Transaction.h" @@ -31,7 +31,7 @@ class CryptoDeleteTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** * Mark an account as deleted, moving all its current hbars to another account. It will remain in the ledger, marked as @@ -154,6 +154,6 @@ class AccountDeleteTransaction : public Transaction std::optional mTransferAccountId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_ACCOUNT_DELETE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_ACCOUNT_DELETE_TRANSACTION_H_ diff --git a/src/sdk/main/include/AccountId.h b/src/sdk/main/include/AccountId.h index 2339b103a..2b2a0a7ef 100644 --- a/src/sdk/main/include/AccountId.h +++ b/src/sdk/main/include/AccountId.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_ACCOUNT_ID_H_ -#define HEDERA_SDK_CPP_ACCOUNT_ID_H_ +#ifndef HIERO_SDK_CPP_ACCOUNT_ID_H_ +#define HIERO_SDK_CPP_ACCOUNT_ID_H_ #include "EvmAddress.h" #include "PublicKey.h" @@ -35,12 +35,12 @@ namespace proto class AccountID; } -namespace Hedera +namespace Hiero { class Client; } -namespace Hedera +namespace Hiero { /** * The ID for a crypto-currency account on Hedera. @@ -281,26 +281,26 @@ class AccountId mutable std::string mChecksum; }; -} // namespace Hedera +} // namespace Hiero namespace std { template<> -struct hash +struct hash { /** * Operator override to enable use of AccountId as map key. */ - size_t operator()(const Hedera::AccountId& id) const { return hash()(id.toString()); } + size_t operator()(const Hiero::AccountId& id) const { return hash()(id.toString()); } }; template<> -struct less +struct less { /** * Operator override to enable use of AccountId in a std::map, which requires fair ordering. */ - bool operator()(const Hedera::AccountId& lhs, const Hedera::AccountId& rhs) const + bool operator()(const Hiero::AccountId& lhs, const Hiero::AccountId& rhs) const { return lhs.toString() < rhs.toString(); } @@ -308,4 +308,4 @@ struct less } // namespace std -#endif // HEDERA_SDK_CPP_ACCOUNT_ID_H_ +#endif // HIERO_SDK_CPP_ACCOUNT_ID_H_ diff --git a/src/sdk/main/include/AccountInfo.h b/src/sdk/main/include/AccountInfo.h index 799f23f65..36b4b88ab 100644 --- a/src/sdk/main/include/AccountInfo.h +++ b/src/sdk/main/include/AccountInfo.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_ACCOUNT_INFO_H_ -#define HEDERA_SDK_CPP_ACCOUNT_INFO_H_ +#ifndef HIERO_SDK_CPP_ACCOUNT_INFO_H_ +#define HIERO_SDK_CPP_ACCOUNT_INFO_H_ #include "AccountId.h" #include "EvmAddress.h" @@ -42,10 +42,10 @@ namespace proto class CryptoGetInfoResponse_AccountInfo; } -namespace Hedera +namespace Hiero { /** - * Response from a Hedera network when the client sends an AccountInfoQuery. + * Response from a Hiero network when the client sends an AccountInfoQuery. */ class AccountInfo { @@ -187,6 +187,6 @@ class AccountInfo std::unordered_map mTokenRelationships; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_ACCOUNT_INFO_H_ +#endif // HIERO_SDK_CPP_ACCOUNT_INFO_H_ diff --git a/src/sdk/main/include/AccountInfoQuery.h b/src/sdk/main/include/AccountInfoQuery.h index 4a276e02d..9c146eccd 100644 --- a/src/sdk/main/include/AccountInfoQuery.h +++ b/src/sdk/main/include/AccountInfoQuery.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,19 +17,19 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_ACCOUNT_INFO_QUERY_H_ -#define HEDERA_SDK_CPP_ACCOUNT_INFO_QUERY_H_ +#ifndef HIERO_SDK_CPP_ACCOUNT_INFO_QUERY_H_ +#define HIERO_SDK_CPP_ACCOUNT_INFO_QUERY_H_ #include "AccountId.h" #include "Query.h" -namespace Hedera +namespace Hiero { class AccountInfo; class TransactionRecord; } -namespace Hedera +namespace Hiero { /** * A query that returns the current state of the account. This query does not include the list of records associated @@ -109,6 +109,6 @@ class AccountInfoQuery : public Query AccountId mAccountId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_ACCOUNT_INFO_QUERY_H_ +#endif // HIERO_SDK_CPP_ACCOUNT_INFO_QUERY_H_ diff --git a/src/sdk/main/include/AccountRecords.h b/src/sdk/main/include/AccountRecords.h index 7d02635e2..9091eeb26 100644 --- a/src/sdk/main/include/AccountRecords.h +++ b/src/sdk/main/include/AccountRecords.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_ACCOUNT_RECORDS_H_ -#define HEDERA_SDK_CPP_ACCOUNT_RECORDS_H_ +#ifndef HIERO_SDK_CPP_ACCOUNT_RECORDS_H_ +#define HIERO_SDK_CPP_ACCOUNT_RECORDS_H_ #include "AccountId.h" #include "TransactionRecord.h" @@ -34,10 +34,10 @@ namespace proto class CryptoGetAccountRecordsResponse; } -namespace Hedera +namespace Hiero { /** - * Response from a Hedera network when the client sends an AccountRecordsQuery. + * Response from a Hiero network when the client sends an AccountRecordsQuery. */ class AccountRecords { @@ -99,6 +99,6 @@ class AccountRecords std::vector mRecords; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_ACCOUNT_RECORDS_H_ +#endif // HIERO_SDK_CPP_ACCOUNT_RECORDS_H_ diff --git a/src/sdk/main/include/AccountRecordsQuery.h b/src/sdk/main/include/AccountRecordsQuery.h index 8e46c4256..1b171d590 100644 --- a/src/sdk/main/include/AccountRecordsQuery.h +++ b/src/sdk/main/include/AccountRecordsQuery.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,21 +17,21 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_ACCOUNT_RECORDS_QUERY_H_ -#define HEDERA_SDK_CPP_ACCOUNT_RECORDS_QUERY_H_ +#ifndef HIERO_SDK_CPP_ACCOUNT_RECORDS_QUERY_H_ +#define HIERO_SDK_CPP_ACCOUNT_RECORDS_QUERY_H_ #include "AccountId.h" #include "Query.h" #include -namespace Hedera +namespace Hiero { class AccountRecords; class TransactionRecord; } -namespace Hedera +namespace Hiero { /** * Get all the records for an account for any transfers into it and out of it, that were above the threshold, during the @@ -110,6 +110,6 @@ class AccountRecordsQuery : public Query AccountId mAccountId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_ACCOUNT_RECORDS_QUERY_H_ +#endif // HIERO_SDK_CPP_ACCOUNT_RECORDS_QUERY_H_ diff --git a/src/sdk/main/include/AccountStakersQuery.h b/src/sdk/main/include/AccountStakersQuery.h index 9977636a2..c31f2400a 100644 --- a/src/sdk/main/include/AccountStakersQuery.h +++ b/src/sdk/main/include/AccountStakersQuery.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_ACCOUNT_STAKERS_QUERY_H_ -#define HEDERA_SDK_CPP_ACCOUNT_STAKERS_QUERY_H_ +#ifndef HIERO_SDK_CPP_ACCOUNT_STAKERS_QUERY_H_ +#define HIERO_SDK_CPP_ACCOUNT_STAKERS_QUERY_H_ #include "AccountId.h" #include "ProxyStaker.h" @@ -26,7 +26,7 @@ #include -namespace Hedera +namespace Hiero { /** * Get all the accounts that are proxy staking to this account. For each of them, give the amount currently staked. This @@ -106,6 +106,6 @@ class AccountStakersQuery : public Query AccountId mAccountId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_ACCOUNT_STAKERS_QUERY_H_ +#endif // HIERO_SDK_CPP_ACCOUNT_STAKERS_QUERY_H_ diff --git a/src/sdk/main/include/AccountUpdateTransaction.h b/src/sdk/main/include/AccountUpdateTransaction.h index d92a3eceb..9001d29b2 100644 --- a/src/sdk/main/include/AccountUpdateTransaction.h +++ b/src/sdk/main/include/AccountUpdateTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_ACCOUNT_UPDATE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_ACCOUNT_UPDATE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_ACCOUNT_UPDATE_TRANSACTION_H_ +#define HIERO_SDK_CPP_ACCOUNT_UPDATE_TRANSACTION_H_ #include "AccountId.h" #include "PublicKey.h" @@ -34,7 +34,7 @@ class CryptoUpdateTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** * Change properties for the given account. Any null field is ignored (left unchanged). This transaction must be signed @@ -96,7 +96,7 @@ class AccountUpdateTransaction : public Transaction AccountUpdateTransaction& setReceiverSignatureRequired(bool receiveSignatureRequired); /** - * Set a new auto renew period for the account. A Hedera account is charged to extend its expiration date every + * Set a new auto renew period for the account. A Hiero account is charged to extend its expiration date every * renew period. If it doesn't have enough balance, it extends as long as possible. If the balance is zero when it * expires, then the account is deleted. * @@ -370,6 +370,6 @@ class AccountUpdateTransaction : public Transaction std::optional mDeclineStakingReward; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_ACCOUNT_UPDATE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_ACCOUNT_UPDATE_TRANSACTION_H_ diff --git a/src/sdk/main/include/AddressBookQuery.h b/src/sdk/main/include/AddressBookQuery.h index 131d0af93..e3178d495 100644 --- a/src/sdk/main/include/AddressBookQuery.h +++ b/src/sdk/main/include/AddressBookQuery.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,15 +17,15 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_ADDRESS_BOOK_QUERY_H_ -#define HEDERA_SDK_CPP_ADDRESS_BOOK_QUERY_H_ +#ifndef HIERO_SDK_CPP_ADDRESS_BOOK_QUERY_H_ +#define HIERO_SDK_CPP_ADDRESS_BOOK_QUERY_H_ #include "Defaults.h" #include "FileId.h" #include -namespace Hedera +namespace Hiero { class Client; class NodeAddressBook; @@ -36,7 +36,7 @@ namespace com::hedera::mirror::api::proto class AddressBookQuery; } -namespace Hedera +namespace Hiero { /** * A query that returns the current address book being used by the network's consensus nodes. @@ -45,10 +45,10 @@ class AddressBookQuery { public: /** - * Submit this AddressBookQuery to a Hedera network. + * Submit this AddressBookQuery to a Hiero network. * * @param client The Client to use to submit this AddressBookQuery. - * @return The NodeAddressBook object sent from the Hedera network that contains the result of this AddressBookQuery. + * @return The NodeAddressBook object sent from the Hiero network that contains the result of this AddressBookQuery. * @throws MaxAttemptsExceededException If this AddressBookQuery attempts to execute past the number of allowable * attempts. * @throws PrecheckStatusException If this AddressBookQuery fails its pre-check. @@ -57,11 +57,11 @@ class AddressBookQuery NodeAddressBook execute(const Client& client); /** - * Submit this AddressBookQuery to a Hedera network with a specific timeout. + * Submit this AddressBookQuery to a Hiero network with a specific timeout. * * @param client The Client to use to submit this AddressBookQuery. * @param timeout The desired timeout for the execution of this AddressBookQuery. - * @return The NodeAddressBook object sent from the Hedera network that contains the result of this AddressBookQuery. + * @return The NodeAddressBook object sent from the Hiero network that contains the result of this AddressBookQuery. * @throws MaxAttemptsExceededException If this AddressBookQuery attempts to execute past the number of allowable * attempts. * @throws PrecheckStatusException If this AddressBookQuery fails its pre-check. @@ -159,6 +159,6 @@ class AddressBookQuery std::chrono::system_clock::duration mMaxBackoff = DEFAULT_MAX_BACKOFF; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_ADDRESS_BOOK_QUERY_H_ +#endif // HIERO_SDK_CPP_ADDRESS_BOOK_QUERY_H_ diff --git a/src/sdk/main/include/AssessedCustomFee.h b/src/sdk/main/include/AssessedCustomFee.h index 67deb9171..153031552 100644 --- a/src/sdk/main/include/AssessedCustomFee.h +++ b/src/sdk/main/include/AssessedCustomFee.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_ASSESSED_CUSTOM_FEE_H_ -#define HEDERA_SDK_CPP_ASSESSED_CUSTOM_FEE_H_ +#ifndef HIERO_SDK_CPP_ASSESSED_CUSTOM_FEE_H_ +#define HIERO_SDK_CPP_ASSESSED_CUSTOM_FEE_H_ #include "AccountId.h" #include "TokenId.h" @@ -36,7 +36,7 @@ namespace proto class AssessedCustomFee; } -namespace Hedera +namespace Hiero { /** * A custom transfer fee that was assessed during the handling of a CryptoTransfer. @@ -111,6 +111,6 @@ class AssessedCustomFee std::vector mPayerAccountIdList; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_ASSESSED_CUSTOM_FEE_H_ +#endif // HIERO_SDK_CPP_ASSESSED_CUSTOM_FEE_H_ diff --git a/src/sdk/main/include/ChunkedTransaction.h b/src/sdk/main/include/ChunkedTransaction.h index 85c976b7a..16302cbc5 100644 --- a/src/sdk/main/include/ChunkedTransaction.h +++ b/src/sdk/main/include/ChunkedTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_CHUNKED_TRANSACTION_H_ -#define HEDERA_SDK_CPP_CHUNKED_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_CHUNKED_TRANSACTION_H_ +#define HIERO_SDK_CPP_CHUNKED_TRANSACTION_H_ #include "Defaults.h" #include "Transaction.h" @@ -34,13 +34,13 @@ #include #include -namespace Hedera +namespace Hiero { class Client; class TransactionResponse; } -namespace Hedera +namespace Hiero { /** * Base class for all transactions that require being divided into chunks. @@ -56,7 +56,7 @@ class ChunkedTransaction : public Transaction * (i.e. data.size() > mMaxChunkSize); opt to use `executeAll()` instead. * * @param client The Client to use to submit this ChunkedTransaction. - * @return The TransactionResponse object sent from the Hedera network that contains the result of the first chunked + * @return The TransactionResponse object sent from the Hiero network that contains the result of the first chunked * request. * @throws MaxAttemptsExceededException If this Executable attempts to execute past the number of allowable attempts. * @throws PrecheckStatusException If this Executable fails its pre-check. @@ -70,7 +70,7 @@ class ChunkedTransaction : public Transaction * * @param client The Client to use to submit this ChunkedTransaction. * @param timeout The desired timeout for the execution of this ChunkedTransaction. - * @return The TransactionResponse object sent from the Hedera network that contains the result of the first chunked + * @return The TransactionResponse object sent from the Hiero network that contains the result of the first chunked * request. * @throws MaxAttemptsExceededException If this Executable attempts to execute past the number of allowable attempts. * @throws PrecheckStatusException If this Executable fails its pre-check. @@ -83,7 +83,7 @@ class ChunkedTransaction : public Transaction * * @param client The Client to use to submit this ChunkedTransaction. * @param timeout The desired timeout for the execution of this ChunkedTransaction. - * @return The future TransactionResponse object sent from the Hedera network that contains the result of the request. + * @return The future TransactionResponse object sent from the Hiero network that contains the result of the request. * @throws MaxAttemptsExceededException If this ChunkedTransaction attempts to execute past the number of allowable * attempts. * @throws PrecheckStatusException If this ChunkedTransaction fails its pre-check. @@ -96,7 +96,7 @@ class ChunkedTransaction : public Transaction * Execute all chunks of this ChunkedTransaction. * * @param client The Client to use to submit this ChunkedTransaction. - * @return The list of TransactionResponse objects sent from the Hedera network that contains the result of the + * @return The list of TransactionResponse objects sent from the Hiero network that contains the result of the * requests. * @throws MaxAttemptsExceededException If this Executable attempts to execute past the number of allowable attempts. * @throws PrecheckStatusException If this Executable fails its pre-check. @@ -109,7 +109,7 @@ class ChunkedTransaction : public Transaction * * @param client The Client to use to submit this ChunkedTransaction. * @param timeout The desired timeout for the execution of this ChunkedTransaction. - * @return The list of TransactionResponse objects sent from the Hedera network that contains the result of the + * @return The list of TransactionResponse objects sent from the Hiero network that contains the result of the * requests. * @throws MaxAttemptsExceededException If this Executable attempts to execute past the number of allowable attempts. * @throws PrecheckStatusException If this Executable fails its pre-check. @@ -121,7 +121,7 @@ class ChunkedTransaction : public Transaction * Execute all chunks of this ChunkedTransaction asynchronously. * * @param client The Client to use to submit this ChunkedTransaction. - * @return The future list of TransactionResponse objects sent from the Hedera network that contains the result of the + * @return The future list of TransactionResponse objects sent from the Hiero network that contains the result of the * requests. * @throws MaxAttemptsExceededException If this Executable attempts to execute past the number of allowable attempts. * @throws PrecheckStatusException If this Executable fails its pre-check. @@ -134,7 +134,7 @@ class ChunkedTransaction : public Transaction * * @param client The Client to use to submit this ChunkedTransaction. * @param timeout The desired timeout for the execution of this ChunkedTransaction. - * @return The future list of TransactionResponse objects sent from the Hedera network that contains the result of the + * @return The future list of TransactionResponse objects sent from the Hiero network that contains the result of the * requests. * @throws MaxAttemptsExceededException If this Executable attempts to execute past the number of allowable attempts. * @throws PrecheckStatusException If this Executable fails its pre-check. @@ -402,6 +402,6 @@ class ChunkedTransaction : public Transaction std::unique_ptr mImpl; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_CHUNKED_TRANSACTION_H_ \ No newline at end of file +#endif // HIERO_SDK_CPP_CHUNKED_TRANSACTION_H_ \ No newline at end of file diff --git a/src/sdk/main/include/Client.h b/src/sdk/main/include/Client.h index de7ce7ea0..9fcb1bb05 100644 --- a/src/sdk/main/include/Client.h +++ b/src/sdk/main/include/Client.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_CLIENT_H_ -#define HEDERA_SDK_CPP_CLIENT_H_ +#ifndef HIERO_SDK_CPP_CLIENT_H_ +#define HIERO_SDK_CPP_CLIENT_H_ #include #include @@ -31,7 +31,7 @@ #include #include -namespace Hedera +namespace Hiero { namespace internal { @@ -48,10 +48,10 @@ class PublicKey; class SubscriptionHandle; } -namespace Hedera +namespace Hiero { /** - * Managed client for use on the Hedera Hashgraph network. + * Managed client for use on the Hiero Hashgraph network. */ class Client { @@ -75,7 +75,7 @@ class Client Client& operator=(Client&&) noexcept; /** - * Construct a Client pre-configured for a specific Hedera network. + * Construct a Client pre-configured for a specific Hiero network. * * @param networkMap The map with string representation of node addresses with their corresponding accountId. * @return A reference to this Client object with the newly-set operator account ID from the map. @@ -102,23 +102,23 @@ class Client [[nodiscard]] static Client forName(std::string_view name); /** - * Construct a Client pre-configured for Hedera Mainnet access. + * Construct a Client pre-configured for Hiero Mainnet access. * - * @return A Client object that is set-up to communicate with the Hedera Mainnet. + * @return A Client object that is set-up to communicate with the Hiero Mainnet. */ [[nodiscard]] static Client forMainnet(); /** - * Construct a Client pre-configured for Hedera Testnet access. + * Construct a Client pre-configured for Hiero Testnet access. * - * @return A Client object that is set-up to communicate with the Hedera Testnet. + * @return A Client object that is set-up to communicate with the Hiero Testnet. */ [[nodiscard]] static Client forTestnet(); /** - * Construct a Client pre-configured for Hedera Previewnet access. + * Construct a Client pre-configured for Hiero Previewnet access. * - * @return A Client object that is set-up to communicate with the Hedera Previewnet. + * @return A Client object that is set-up to communicate with the Hiero Previewnet. */ [[nodiscard]] static Client forPreviewnet(); @@ -745,6 +745,6 @@ class Client std::unique_ptr mImpl; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_CLIENT_H_ +#endif // HIERO_SDK_CPP_CLIENT_H_ diff --git a/src/sdk/main/include/ContractByteCodeQuery.h b/src/sdk/main/include/ContractByteCodeQuery.h index 8ed68ef03..d704690e8 100644 --- a/src/sdk/main/include/ContractByteCodeQuery.h +++ b/src/sdk/main/include/ContractByteCodeQuery.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_CONTRACT_BYTE_CODE_QUERY_H_ -#define HEDERA_SDK_CPP_CONTRACT_BYTE_CODE_QUERY_H_ +#ifndef HIERO_SDK_CPP_CONTRACT_BYTE_CODE_QUERY_H_ +#define HIERO_SDK_CPP_CONTRACT_BYTE_CODE_QUERY_H_ #include "ContractId.h" #include "Query.h" @@ -26,7 +26,7 @@ #include #include -namespace Hedera +namespace Hiero { /** * A query that returns the bytecode for a smart contract instance. Anyone can request the byte code of a smart contract @@ -107,6 +107,6 @@ class ContractByteCodeQuery : public Query #include -namespace Hedera +namespace Hiero { class ContractFunctionResult; } -namespace Hedera +namespace Hiero { /** * A query that calls a function of the given smart contract instance, giving it function parameters as its inputs. This @@ -193,6 +193,6 @@ class ContractCallQuery : public Query mSenderAccountId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_CONTRACT_CALL_QUERY_H_ +#endif // HIERO_SDK_CPP_CONTRACT_CALL_QUERY_H_ diff --git a/src/sdk/main/include/ContractCreateFlow.h b/src/sdk/main/include/ContractCreateFlow.h index 74970ea27..9d04b12bd 100644 --- a/src/sdk/main/include/ContractCreateFlow.h +++ b/src/sdk/main/include/ContractCreateFlow.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_CONTRACT_CREATE_FLOW_H_ -#define HEDERA_SDK_CPP_CONTRACT_CREATE_FLOW_H_ +#ifndef HIERO_SDK_CPP_CONTRACT_CREATE_FLOW_H_ +#define HIERO_SDK_CPP_CONTRACT_CREATE_FLOW_H_ #include "AccountId.h" #include "Defaults.h" @@ -35,14 +35,14 @@ #include #include -namespace Hedera +namespace Hiero { class Client; class ContractFunctionParameters; class PrivateKey; } -namespace Hedera +namespace Hiero { /** * A helper class to create a contract file bytecode directly. This will use FileCreateTransaction and @@ -381,7 +381,7 @@ class ContractCreateFlow Hbar mInitialBalance = Hbar(0LL); /** - * A Hedera smart contract instance is charged to extend its expiration date every renew period. If it doesn't have + * A Hiero smart contract instance is charged to extend its expiration date every renew period. If it doesn't have * enough balance, it extends as long as possible. If the balance is zero when it expires, then the smart contract * instance is deleted. */ @@ -450,6 +450,6 @@ class ContractCreateFlow std::vector mNodeAccountIds; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_CONTRACT_CREATE_FLOW_H_ +#endif // HIERO_SDK_CPP_CONTRACT_CREATE_FLOW_H_ diff --git a/src/sdk/main/include/ContractCreateTransaction.h b/src/sdk/main/include/ContractCreateTransaction.h index 161ea6570..ae0d6b5fd 100644 --- a/src/sdk/main/include/ContractCreateTransaction.h +++ b/src/sdk/main/include/ContractCreateTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_CONTRACT_CREATE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_CONTRACT_CREATE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_CONTRACT_CREATE_TRANSACTION_H_ +#define HIERO_SDK_CPP_CONTRACT_CREATE_TRANSACTION_H_ #include "AccountId.h" #include "FileId.h" @@ -40,7 +40,7 @@ class ContractCreateTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** * Start a new smart contract instance. After the instance is created, the ContractId for it is in the receipt, and can @@ -421,7 +421,7 @@ class ContractCreateTransaction : public Transaction Hbar mInitialBalance = Hbar(0LL); /** - * A Hedera smart contract instance is charged to extend its expiration date every renew period. If it doesn't have + * A Hiero smart contract instance is charged to extend its expiration date every renew period. If it doesn't have * enough balance, it extends as long as possible. If the balance is zero when it expires, then the smart contract * instance is deleted. */ @@ -465,6 +465,6 @@ class ContractCreateTransaction : public Transaction bool mDeclineStakingReward = false; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_CONTRACT_CREATE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_CONTRACT_CREATE_TRANSACTION_H_ diff --git a/src/sdk/main/include/ContractDeleteTransaction.h b/src/sdk/main/include/ContractDeleteTransaction.h index fc1c60373..e10ac023f 100644 --- a/src/sdk/main/include/ContractDeleteTransaction.h +++ b/src/sdk/main/include/ContractDeleteTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_CONTRACT_DELETE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_CONTRACT_DELETE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_CONTRACT_DELETE_TRANSACTION_H_ +#define HIERO_SDK_CPP_CONTRACT_DELETE_TRANSACTION_H_ #include "AccountId.h" #include "ContractId.h" @@ -32,15 +32,15 @@ class ContractDeleteTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** - * A transaction that deletes a smart contract from a Hedera network. Once a smart contract is marked deleted, you will + * A transaction that deletes a smart contract from a Hiero network. Once a smart contract is marked deleted, you will * not be able to modify any of the contract's properties. * * If a smart contract did not have an admin key defined, you cannot delete the smart contract. You can verify the smart * contract was deleted by submitting a smart contract info query to the network. If a smart contract has an associated - * Hbar balance, you will need to transfer the balance to another Hedera account. + * Hbar balance, you will need to transfer the balance to another Hiero account. * * Transaction Signing Requirements: * - If the admin key was defined for the smart contract it is required to sign the transaction. @@ -184,6 +184,6 @@ class ContractDeleteTransaction : public Transaction std::optional mTransferContractId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_CONTRACT_DELETE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_CONTRACT_DELETE_TRANSACTION_H_ diff --git a/src/sdk/main/include/ContractExecuteTransaction.h b/src/sdk/main/include/ContractExecuteTransaction.h index 4522b1786..11858ef5a 100644 --- a/src/sdk/main/include/ContractExecuteTransaction.h +++ b/src/sdk/main/include/ContractExecuteTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_CONTRACT_EXECUTE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_CONTRACT_EXECUTE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_CONTRACT_EXECUTE_TRANSACTION_H_ +#define HIERO_SDK_CPP_CONTRACT_EXECUTE_TRANSACTION_H_ #include "ContractFunctionParameters.h" #include "ContractId.h" @@ -35,7 +35,7 @@ class ContractCallTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** * The transaction calls a function of the given smart contract instance, giving it functionParameters as its input. The @@ -213,6 +213,6 @@ class ContractExecuteTransaction : public Transaction mFunctionParameters; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_CONTRACT_EXECUTE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_CONTRACT_EXECUTE_TRANSACTION_H_ diff --git a/src/sdk/main/include/ContractFunctionParameters.h b/src/sdk/main/include/ContractFunctionParameters.h index ea6bc6af6..1c22d16e9 100644 --- a/src/sdk/main/include/ContractFunctionParameters.h +++ b/src/sdk/main/include/ContractFunctionParameters.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_CONTRACT_FUNCTION_PARAMETERS_H_ -#define HEDERA_SDK_CPP_CONTRACT_FUNCTION_PARAMETERS_H_ +#ifndef HIERO_SDK_CPP_CONTRACT_FUNCTION_PARAMETERS_H_ +#define HIERO_SDK_CPP_CONTRACT_FUNCTION_PARAMETERS_H_ #include "ContractFunctionSelector.h" @@ -26,7 +26,7 @@ #include #include -namespace Hedera +namespace Hiero { class ContractFunctionParameters { @@ -290,6 +290,6 @@ class ContractFunctionParameters ContractFunctionSelector mFunction; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_CONTRACT_FUNCTION_PARAMETERS_H_ +#endif // HIERO_SDK_CPP_CONTRACT_FUNCTION_PARAMETERS_H_ diff --git a/src/sdk/main/include/ContractFunctionResult.h b/src/sdk/main/include/ContractFunctionResult.h index 6b4007ccb..3d20e032d 100644 --- a/src/sdk/main/include/ContractFunctionResult.h +++ b/src/sdk/main/include/ContractFunctionResult.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_CONTRACT_FUNCTION_RESULT_H_ -#define HEDERA_SDK_CPP_CONTRACT_FUNCTION_RESULT_H_ +#ifndef HIERO_SDK_CPP_CONTRACT_FUNCTION_RESULT_H_ +#define HIERO_SDK_CPP_CONTRACT_FUNCTION_RESULT_H_ #include "AccountId.h" #include "ContractId.h" @@ -39,7 +39,7 @@ namespace proto class ContractFunctionResult; } -namespace Hedera +namespace Hiero { /** * Class to represent the result of invoking a contract via ContractCallQuery, ContractExecuteTransaction, or the result @@ -311,6 +311,6 @@ class ContractFunctionResult [[nodiscard]] std::vector getByteString(int start, int end) const; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_CONTRACT_FUNCTION_RESULT_H_ +#endif // HIERO_SDK_CPP_CONTRACT_FUNCTION_RESULT_H_ diff --git a/src/sdk/main/include/ContractFunctionSelector.h b/src/sdk/main/include/ContractFunctionSelector.h index ea078cdb5..0dff170a6 100644 --- a/src/sdk/main/include/ContractFunctionSelector.h +++ b/src/sdk/main/include/ContractFunctionSelector.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,15 +17,15 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_CONTRACT_FUNCTION_SELECTOR_H_ -#define HEDERA_SDK_CPP_CONTRACT_FUNCTION_SELECTOR_H_ +#ifndef HIERO_SDK_CPP_CONTRACT_FUNCTION_SELECTOR_H_ +#define HIERO_SDK_CPP_CONTRACT_FUNCTION_SELECTOR_H_ #include #include #include #include -namespace Hedera +namespace Hiero { class ContractFunctionSelector { @@ -240,6 +240,6 @@ class ContractFunctionSelector bool addComma = false; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_CONTRACT_FUNCTION_SELECTOR_H_ +#endif // HIERO_SDK_CPP_CONTRACT_FUNCTION_SELECTOR_H_ diff --git a/src/sdk/main/include/ContractId.h b/src/sdk/main/include/ContractId.h index 6244f809d..04868de4c 100644 --- a/src/sdk/main/include/ContractId.h +++ b/src/sdk/main/include/ContractId.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_CONTRACT_ID_H_ -#define HEDERA_SDK_CPP_CONTRACT_ID_H_ +#ifndef HIERO_SDK_CPP_CONTRACT_ID_H_ +#define HIERO_SDK_CPP_CONTRACT_ID_H_ #include "EvmAddress.h" #include "Key.h" @@ -35,12 +35,12 @@ namespace proto class ContractID; } -namespace Hedera +namespace Hiero { class Client; } -namespace Hedera +namespace Hiero { /** * The ID for a smart contract instance. @@ -257,6 +257,6 @@ class ContractId : public Key mutable std::string mChecksum; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_CONTRACT_ID_H_ +#endif // HIERO_SDK_CPP_CONTRACT_ID_H_ diff --git a/src/sdk/main/include/ContractInfo.h b/src/sdk/main/include/ContractInfo.h index 49f83ceef..bb8ad823c 100644 --- a/src/sdk/main/include/ContractInfo.h +++ b/src/sdk/main/include/ContractInfo.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_CONTRACT_INFO_H_ -#define HEDERA_SDK_CPP_CONTRACT_INFO_H_ +#ifndef HIERO_SDK_CPP_CONTRACT_INFO_H_ +#define HIERO_SDK_CPP_CONTRACT_INFO_H_ #include "AccountId.h" #include "ContractId.h" @@ -41,7 +41,7 @@ namespace proto class ContractGetInfoResponse_ContractInfo; } -namespace Hedera +namespace Hiero { /** * Contains information about a smart contract instance. This includes the account that it uses, the file containing its @@ -175,6 +175,6 @@ class ContractInfo std::unordered_map mTokenRelationships; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_CONTRACT_INFO_H_ +#endif // HIERO_SDK_CPP_CONTRACT_INFO_H_ diff --git a/src/sdk/main/include/ContractInfoQuery.h b/src/sdk/main/include/ContractInfoQuery.h index 5aea148b3..466ec333a 100644 --- a/src/sdk/main/include/ContractInfoQuery.h +++ b/src/sdk/main/include/ContractInfoQuery.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,18 +17,18 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_CONTRACT_INFO_QUERY_H_ -#define HEDERA_SDK_CPP_CONTRACT_INFO_QUERY_H_ +#ifndef HIERO_SDK_CPP_CONTRACT_INFO_QUERY_H_ +#define HIERO_SDK_CPP_CONTRACT_INFO_QUERY_H_ #include "ContractId.h" #include "Query.h" -namespace Hedera +namespace Hiero { class ContractInfo; } -namespace Hedera +namespace Hiero { /** * A query that returns the current state of a smart contract instance, including its balance. Queries do not change the @@ -111,6 +111,6 @@ class ContractInfoQuery : public Query ContractId mContractId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_CONTRACT_INFO_QUERY_H_ +#endif // HIERO_SDK_CPP_CONTRACT_INFO_QUERY_H_ diff --git a/src/sdk/main/include/ContractLogInfo.h b/src/sdk/main/include/ContractLogInfo.h index e517d849c..b15d0d8c4 100644 --- a/src/sdk/main/include/ContractLogInfo.h +++ b/src/sdk/main/include/ContractLogInfo.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_CONTRACT_LOG_INFO_H_ -#define HEDERA_SDK_CPP_CONTRACT_LOG_INFO_H_ +#ifndef HIERO_SDK_CPP_CONTRACT_LOG_INFO_H_ +#define HIERO_SDK_CPP_CONTRACT_LOG_INFO_H_ #include "ContractId.h" @@ -33,7 +33,7 @@ namespace proto class ContractLoginfo; } -namespace Hedera +namespace Hiero { /** * The log information for an event returned by a smart contract function call. One function call may return several @@ -109,6 +109,6 @@ class ContractLogInfo std::vector mData; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_CONTRACT_LOG_INFO_H_ +#endif // HIERO_SDK_CPP_CONTRACT_LOG_INFO_H_ diff --git a/src/sdk/main/include/ContractNonceInfo.h b/src/sdk/main/include/ContractNonceInfo.h index 227ed366c..eb1aee990 100644 --- a/src/sdk/main/include/ContractNonceInfo.h +++ b/src/sdk/main/include/ContractNonceInfo.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_CONTRACT_NONCE_INFO_H_ -#define HEDERA_SDK_CPP_CONTRACT_NONCE_INFO_H_ +#ifndef HIERO_SDK_CPP_CONTRACT_NONCE_INFO_H_ +#define HIERO_SDK_CPP_CONTRACT_NONCE_INFO_H_ #include "ContractId.h" @@ -33,7 +33,7 @@ namespace proto class ContractNonceInfo; } -namespace Hedera +namespace Hiero { /** * Info about a contract account's nonce value. @@ -118,6 +118,6 @@ class ContractNonceInfo int64_t mNonce = 0LL; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_CONTRACT_NONCE_INFO_H_ +#endif // HIERO_SDK_CPP_CONTRACT_NONCE_INFO_H_ diff --git a/src/sdk/main/include/ContractUpdateTransaction.h b/src/sdk/main/include/ContractUpdateTransaction.h index 0f6363a95..2663a627f 100644 --- a/src/sdk/main/include/ContractUpdateTransaction.h +++ b/src/sdk/main/include/ContractUpdateTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_CONTRACT_UPDATE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_CONTRACT_UPDATE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_CONTRACT_UPDATE_TRANSACTION_H_ +#define HIERO_SDK_CPP_CONTRACT_UPDATE_TRANSACTION_H_ #include "AccountId.h" #include "ContractId.h" @@ -37,13 +37,13 @@ class ContractUpdateTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** * A transaction that allows you to modify the smart contract entity state like admin keys, proxy account, auto-renew * period, and memo. This transaction does not update the contract that is tied to the smart contract entity. The * contract tied to the entity is immutable. The contract entity is immutable if an admin key is not specified. Once the - * transaction has been successfully executed on a Hedera network the previous field values will be updated with the new + * transaction has been successfully executed on a Hiero network the previous field values will be updated with the new * ones. To get a previous state of a smart contract instance, you can query a mirror node for that data. Any null field * is ignored (left unchanged). * @@ -355,6 +355,6 @@ class ContractUpdateTransaction : public Transaction std::optional mDeclineStakingReward; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_CONTRACT_UPDATE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_CONTRACT_UPDATE_TRANSACTION_H_ diff --git a/src/sdk/main/include/CustomFee.h b/src/sdk/main/include/CustomFee.h index edf6955c7..f39bff441 100644 --- a/src/sdk/main/include/CustomFee.h +++ b/src/sdk/main/include/CustomFee.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_CUSTOM_FEE_H_ -#define HEDERA_SDK_CPP_CUSTOM_FEE_H_ +#ifndef HIERO_SDK_CPP_CUSTOM_FEE_H_ +#define HIERO_SDK_CPP_CUSTOM_FEE_H_ #include "AccountId.h" @@ -33,12 +33,12 @@ namespace proto class CustomFee; } -namespace Hedera +namespace Hiero { class Client; } -namespace Hedera +namespace Hiero { /** * Base class for custom fees. This is assessed during a CryptoTransfer that transfers units of the token to which the @@ -154,6 +154,6 @@ class CustomFee bool mAllCollectorsAreExempt = false; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_CUSTOM_FEE_H_ +#endif // HIERO_SDK_CPP_CUSTOM_FEE_H_ diff --git a/src/sdk/main/include/CustomFeeBase.h b/src/sdk/main/include/CustomFeeBase.h index 8e8995039..5aac6706d 100644 --- a/src/sdk/main/include/CustomFeeBase.h +++ b/src/sdk/main/include/CustomFeeBase.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,13 +17,13 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_CUSTOM_FEE_BASE_H_ -#define HEDERA_SDK_CPP_CUSTOM_FEE_BASE_H_ +#ifndef HIERO_SDK_CPP_CUSTOM_FEE_BASE_H_ +#define HIERO_SDK_CPP_CUSTOM_FEE_BASE_H_ #include "AccountId.h" #include "CustomFee.h" -namespace Hedera +namespace Hiero { /** * Helper class to sit between CustomFee and its derived implementations. This is done so that CustomFee isn't required @@ -60,6 +60,6 @@ class CustomFeeBase : public CustomFee CustomFeeBase& operator=(CustomFeeBase&&) noexcept = default; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_CUSTOM_FEE_BASE_H_ +#endif // HIERO_SDK_CPP_CUSTOM_FEE_BASE_H_ diff --git a/src/sdk/main/include/CustomFixedFee.h b/src/sdk/main/include/CustomFixedFee.h index 2812bf0a0..71be4ad63 100644 --- a/src/sdk/main/include/CustomFixedFee.h +++ b/src/sdk/main/include/CustomFixedFee.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_CUSTOM_FIXED_FEE_H_ -#define HEDERA_SDK_CPP_CUSTOM_FIXED_FEE_H_ +#ifndef HIERO_SDK_CPP_CUSTOM_FIXED_FEE_H_ +#define HIERO_SDK_CPP_CUSTOM_FIXED_FEE_H_ #include "CustomFeeBase.h" #include "Hbar.h" @@ -32,7 +32,7 @@ namespace proto class FixedFee; } -namespace Hedera +namespace Hiero { /** * A fixed number of units (Hbar or token) to assess as a fee during a CryptoTransfer that transfers units of the token @@ -137,6 +137,6 @@ class CustomFixedFee : public CustomFeeBase std::optional mDenominatingTokenId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_CUSTOM_FIXED_FEE_H_ +#endif // HIERO_SDK_CPP_CUSTOM_FIXED_FEE_H_ diff --git a/src/sdk/main/include/CustomFractionalFee.h b/src/sdk/main/include/CustomFractionalFee.h index aaf9db46f..c5f9da66d 100644 --- a/src/sdk/main/include/CustomFractionalFee.h +++ b/src/sdk/main/include/CustomFractionalFee.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_CUSTOM_FRACTIONAL_FEE_H_ -#define HEDERA_SDK_CPP_CUSTOM_FRACTIONAL_FEE_H_ +#ifndef HIERO_SDK_CPP_CUSTOM_FRACTIONAL_FEE_H_ +#define HIERO_SDK_CPP_CUSTOM_FRACTIONAL_FEE_H_ #include "CustomFeeBase.h" #include "FeeAssessmentMethod.h" @@ -31,7 +31,7 @@ namespace proto class FractionalFee; } -namespace Hedera +namespace Hiero { /** * A fraction of the transferred units of a token to assess as a fee. The amount assessed will never be less than the @@ -180,6 +180,6 @@ class CustomFractionalFee : public CustomFeeBase FeeAssessmentMethod mAssessmentMethod = FeeAssessmentMethod::INCLUSIVE; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_CUSTOM_FRACTIONAL_FEE_H_ +#endif // HIERO_SDK_CPP_CUSTOM_FRACTIONAL_FEE_H_ diff --git a/src/sdk/main/include/CustomRoyaltyFee.h b/src/sdk/main/include/CustomRoyaltyFee.h index dd8c3d1e4..81e6f25d7 100644 --- a/src/sdk/main/include/CustomRoyaltyFee.h +++ b/src/sdk/main/include/CustomRoyaltyFee.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_CUSTOM_ROYALTY_FEE_H_ -#define HEDERA_SDK_CPP_CUSTOM_ROYALTY_FEE_H_ +#ifndef HIERO_SDK_CPP_CUSTOM_ROYALTY_FEE_H_ +#define HIERO_SDK_CPP_CUSTOM_ROYALTY_FEE_H_ #include "CustomFeeBase.h" #include "CustomFixedFee.h" @@ -30,7 +30,7 @@ namespace proto class RoyaltyFee; } -namespace Hedera +namespace Hiero { /** * A fee to assess during a CryptoTransfer that changes ownership of an NFT. Defines the fraction of the fungible value @@ -145,6 +145,6 @@ class CustomRoyaltyFee : public CustomFeeBase std::optional mFallbackFee; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_CUSTOM_ROYALTY_FEE_H_ +#endif // HIERO_SDK_CPP_CUSTOM_ROYALTY_FEE_H_ diff --git a/src/sdk/main/include/Defaults.h b/src/sdk/main/include/Defaults.h index 52def9f45..00b0249f3 100644 --- a/src/sdk/main/include/Defaults.h +++ b/src/sdk/main/include/Defaults.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,14 +17,14 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_DEFAULTS_H_ -#define HEDERA_SDK_CPP_DEFAULTS_H_ +#ifndef HIERO_SDK_CPP_DEFAULTS_H_ +#define HIERO_SDK_CPP_DEFAULTS_H_ #include "Hbar.h" #include -namespace Hedera +namespace Hiero { /** * The default duration of time to try and submit a request. @@ -105,4 +105,4 @@ constexpr auto DEFAULT_NETWORK_UPDATE_INITIAL_DELAY = std::chrono::seconds(10); constexpr auto DEFAULT_LOGGER_NAME = "HEDERA_CPP_SDK_LOGGER"; } -#endif // HEDERA_SDK_CPP_DEFAULTS_H_ \ No newline at end of file +#endif // HIERO_SDK_CPP_DEFAULTS_H_ \ No newline at end of file diff --git a/src/sdk/main/include/DelegateContractId.h b/src/sdk/main/include/DelegateContractId.h index 0c127acfc..bafaf5dc7 100644 --- a/src/sdk/main/include/DelegateContractId.h +++ b/src/sdk/main/include/DelegateContractId.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_DELEGATE_CONTRACT_ID_H_ -#define HEDERA_SDK_CPP_DELEGATE_CONTRACT_ID_H_ +#ifndef HIERO_SDK_CPP_DELEGATE_CONTRACT_ID_H_ +#define HIERO_SDK_CPP_DELEGATE_CONTRACT_ID_H_ #include "ContractId.h" @@ -29,7 +29,7 @@ namespace proto class ContractID; } -namespace Hedera +namespace Hiero { /** * A smart contract that, if the recipient of the active message frame, should be treated as having signed. (Note this @@ -115,6 +115,6 @@ class DelegateContractId : public ContractId [[nodiscard]] std::unique_ptr toProtobufKey() const override; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_DELEGATE_CONTRACT_ID_H_ +#endif // HIERO_SDK_CPP_DELEGATE_CONTRACT_ID_H_ diff --git a/src/sdk/main/include/ECDSAsecp256k1PrivateKey.h b/src/sdk/main/include/ECDSAsecp256k1PrivateKey.h index 029fd5367..c50c3ce01 100644 --- a/src/sdk/main/include/ECDSAsecp256k1PrivateKey.h +++ b/src/sdk/main/include/ECDSAsecp256k1PrivateKey.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_ECDSA_SECP256K1_PRIVATE_KEY_H_ -#define HEDERA_SDK_CPP_ECDSA_SECP256K1_PRIVATE_KEY_H_ +#ifndef HIERO_SDK_CPP_ECDSA_SECP256K1_PRIVATE_KEY_H_ +#define HIERO_SDK_CPP_ECDSA_SECP256K1_PRIVATE_KEY_H_ #include "PrivateKey.h" @@ -27,12 +27,12 @@ #include #include -namespace Hedera::internal::OpenSSLUtils +namespace Hiero::internal::OpenSSLUtils { class EVP_PKEY; } -namespace Hedera +namespace Hiero { /** * A class representing an ECDSA secp256k1 private key. @@ -208,6 +208,6 @@ class ECDSAsecp256k1PrivateKey : public PrivateKey std::vector chainCode = std::vector()); }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_ECDSA_SECP256K1_PRIVATE_KEY_H_ +#endif // HIERO_SDK_CPP_ECDSA_SECP256K1_PRIVATE_KEY_H_ diff --git a/src/sdk/main/include/ECDSAsecp256k1PublicKey.h b/src/sdk/main/include/ECDSAsecp256k1PublicKey.h index 8544ebb80..4f49793d0 100644 --- a/src/sdk/main/include/ECDSAsecp256k1PublicKey.h +++ b/src/sdk/main/include/ECDSAsecp256k1PublicKey.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_ECDSA_SECP256K1_PUBLIC_KEY_H_ -#define HEDERA_SDK_CPP_ECDSA_SECP256K1_PUBLIC_KEY_H_ +#ifndef HIERO_SDK_CPP_ECDSA_SECP256K1_PUBLIC_KEY_H_ +#define HIERO_SDK_CPP_ECDSA_SECP256K1_PUBLIC_KEY_H_ #include "PublicKey.h" @@ -27,12 +27,12 @@ #include #include -namespace Hedera +namespace Hiero { class EvmAddress; } -namespace Hedera +namespace Hiero { /** * A class representing an ECDSA secp256k1 public key. @@ -221,6 +221,6 @@ class ECDSAsecp256k1PublicKey : public PublicKey [[nodiscard]] std::shared_ptr getShared() const override; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_ECDSA_SECP256K1_PUBLIC_KEY_H_ +#endif // HIERO_SDK_CPP_ECDSA_SECP256K1_PUBLIC_KEY_H_ diff --git a/src/sdk/main/include/ED25519PrivateKey.h b/src/sdk/main/include/ED25519PrivateKey.h index a5ee10173..131156eed 100644 --- a/src/sdk/main/include/ED25519PrivateKey.h +++ b/src/sdk/main/include/ED25519PrivateKey.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_ED25519_PRIVATE_KEY_H_ -#define HEDERA_SDK_CPP_ED25519_PRIVATE_KEY_H_ +#ifndef HIERO_SDK_CPP_ED25519_PRIVATE_KEY_H_ +#define HIERO_SDK_CPP_ED25519_PRIVATE_KEY_H_ #include "PrivateKey.h" @@ -27,12 +27,12 @@ #include #include -namespace Hedera::internal::OpenSSLUtils +namespace Hiero::internal::OpenSSLUtils { class EVP_PKEY; } -namespace Hedera +namespace Hiero { /** * A class representing an ED25519 private key. @@ -200,6 +200,6 @@ class ED25519PrivateKey : public PrivateKey std::vector chainCode = std::vector()); }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_ED25519_PRIVATE_KEY_H_ +#endif // HIERO_SDK_CPP_ED25519_PRIVATE_KEY_H_ diff --git a/src/sdk/main/include/ED25519PublicKey.h b/src/sdk/main/include/ED25519PublicKey.h index 4c3dcf150..b99181c2f 100644 --- a/src/sdk/main/include/ED25519PublicKey.h +++ b/src/sdk/main/include/ED25519PublicKey.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_ED25519_PUBLIC_KEY_H_ -#define HEDERA_SDK_CPP_ED25519_PUBLIC_KEY_H_ +#ifndef HIERO_SDK_CPP_ED25519_PUBLIC_KEY_H_ +#define HIERO_SDK_CPP_ED25519_PUBLIC_KEY_H_ #include "PublicKey.h" @@ -27,7 +27,7 @@ #include #include -namespace Hedera +namespace Hiero { /** * A class representing an ED25519 public key. @@ -164,6 +164,6 @@ class ED25519PublicKey : public PublicKey [[nodiscard]] std::shared_ptr getShared() const override; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_ED25519_PUBLIC_KEY_H_ +#endif // HIERO_SDK_CPP_ED25519_PUBLIC_KEY_H_ diff --git a/src/sdk/main/include/Endpoint.h b/src/sdk/main/include/Endpoint.h index 7e08cb005..ede96c7ab 100644 --- a/src/sdk/main/include/Endpoint.h +++ b/src/sdk/main/include/Endpoint.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_ENDPOINT_H_ -#define HEDERA_SDK_CPP_ENDPOINT_H_ +#ifndef HIERO_SDK_CPP_ENDPOINT_H_ +#define HIERO_SDK_CPP_ENDPOINT_H_ #include "IPv4Address.h" @@ -30,7 +30,7 @@ namespace proto class ServiceEndpoint; } -namespace Hedera +namespace Hiero { /** * A network endpoint, which contains an IPv4 address or domain name and a port. @@ -127,6 +127,6 @@ class Endpoint std::string mDomainName; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_ENDPOINT_H_ +#endif // HIERO_SDK_CPP_ENDPOINT_H_ diff --git a/src/sdk/main/include/EthereumFlow.h b/src/sdk/main/include/EthereumFlow.h index 67fe00187..a6e1bce33 100644 --- a/src/sdk/main/include/EthereumFlow.h +++ b/src/sdk/main/include/EthereumFlow.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_ETHEREUM_FLOW_H_ -#define HEDERA_SDK_CPP_ETHEREUM_FLOW_H_ +#ifndef HIERO_SDK_CPP_ETHEREUM_FLOW_H_ +#define HIERO_SDK_CPP_ETHEREUM_FLOW_H_ #include "EthereumTransactionData.h" #include "Hbar.h" @@ -27,13 +27,13 @@ #include #include -namespace Hedera +namespace Hiero { class Client; class TransactionResponse; } -namespace Hedera +namespace Hiero { /** * A helper class to execute an EthereumTransaction. This will use FileCreateTransaction and FileAppendTransaction as @@ -78,10 +78,10 @@ class EthereumFlow EthereumFlow& setEthereumData(const std::vector& data); /** - * Set the maximum amount that the payer of the Hedera transaction is willing to pay to complete the + * Set the maximum amount that the payer of the Hiero transaction is willing to pay to complete the * EthereumTransaction. * - * @param maxGasAllowance The maximum amount that the payer of the Hedera transaction is willing to pay to complete + * @param maxGasAllowance The maximum amount that the payer of the Hiero transaction is willing to pay to complete * the EthereumTransaction. * @return A reference to this EthereumFlow object with the newly-set maximum gas allowance. */ @@ -95,10 +95,10 @@ class EthereumFlow [[nodiscard]] inline std::shared_ptr getEthereumData() const { return mEthereumData; } /** - * Get the maximum amount that the payer of the Hedera transaction is willing to pay to complete the + * Get the maximum amount that the payer of the Hiero transaction is willing to pay to complete the * EthereumTransaction. * - * @return The maximum amount that the payer of the Hedera transaction is willing to pay to complete the + * @return The maximum amount that the payer of the Hiero transaction is willing to pay to complete the * EthereumTransaction. Returns uninitialized in no max gas allowance has been set. */ [[nodiscard]] inline std::optional getMaxGasAllowance() const { return mMaxGasAllowance; } @@ -115,7 +115,7 @@ class EthereumFlow std::shared_ptr mEthereumData = nullptr; /** - * The maximum amount that the payer of the Hedera transaction is willing to pay to complete the transaction. + * The maximum amount that the payer of the Hiero transaction is willing to pay to complete the transaction. * * Ordinarily the account with the ECDSA alias corresponding to the public key that is extracted from the * ethereum data signature is responsible for fees that result from the execution of the transaction. If that amount @@ -127,6 +127,6 @@ class EthereumFlow std::optional mMaxGasAllowance; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_ETHEREUM_FLOW_H_ +#endif // HIERO_SDK_CPP_ETHEREUM_FLOW_H_ diff --git a/src/sdk/main/include/EthereumTransaction.h b/src/sdk/main/include/EthereumTransaction.h index 5a22e88dd..bff63dd88 100644 --- a/src/sdk/main/include/EthereumTransaction.h +++ b/src/sdk/main/include/EthereumTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_ETHEREUM_TRANSACTION_H_ -#define HEDERA_SDK_CPP_ETHEREUM_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_ETHEREUM_TRANSACTION_H_ +#define HIERO_SDK_CPP_ETHEREUM_TRANSACTION_H_ #include "FileId.h" #include "Hbar.h" @@ -34,11 +34,11 @@ class EthereumTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** * The raw Ethereum transaction (RLP encoded type 0, 1, and 2) will hold signed Ethereum transactions and execute them - * as Hedera transactions in a prescribed manner. + * as Hiero transactions in a prescribed manner. * * Transaction Signing Requirements: * - The key of the transaction fee-paying account. @@ -83,10 +83,10 @@ class EthereumTransaction : public Transaction EthereumTransaction& setCallDataFileId(const FileId& fileId); /** - * Set the maximum amount that the payer of the Hedera transaction is willing to pay to complete this + * Set the maximum amount that the payer of the Hiero transaction is willing to pay to complete this * EthereumTransaction. * - * @param maxGasAllowance The maximum amount that the payer of the Hedera transaction is willing to pay to complete + * @param maxGasAllowance The maximum amount that the payer of the Hiero transaction is willing to pay to complete * this EthereumTransaction. * @return A reference to this EthereumTransaction object with the newly-set transfer maximum gas allowance. * @throws IllegalStateException If this EthereumTransaction is frozen. @@ -108,10 +108,10 @@ class EthereumTransaction : public Transaction [[nodiscard]] inline std::optional getCallDataFileId() const { return mCallDataFileId; } /** - * Get the maximum amount that the payer of the Hedera transaction is willing to pay to complete this + * Get the maximum amount that the payer of the Hiero transaction is willing to pay to complete this * EthereumTransaction. * - * @return The maximum amount that the payer of the Hedera transaction is willing to pay to complete this + * @return The maximum amount that the payer of the Hiero transaction is willing to pay to complete this * EthereumTransaction. */ [[nodiscard]] inline Hbar getMaxGasAllowance() const { return mMaxGasAllowance; } @@ -179,7 +179,7 @@ class EthereumTransaction : public Transaction std::optional mCallDataFileId; /** - * The maximum amount that the payer of the Hedera transaction is willing to pay to complete the transaction. + * The maximum amount that the payer of the Hiero transaction is willing to pay to complete the transaction. * * Ordinarily the account with the ECDSA alias corresponding to the public key that is extracted from the * ethereum data signature is responsible for fees that result from the execution of the transaction. If that amount @@ -191,6 +191,6 @@ class EthereumTransaction : public Transaction Hbar mMaxGasAllowance = Hbar(0LL); }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_ETHEREUM_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_ETHEREUM_TRANSACTION_H_ diff --git a/src/sdk/main/include/EthereumTransactionData.h b/src/sdk/main/include/EthereumTransactionData.h index 2eb53b986..9b0f38d8f 100644 --- a/src/sdk/main/include/EthereumTransactionData.h +++ b/src/sdk/main/include/EthereumTransactionData.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,15 +17,15 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_ETHEREUM_TRANSACTION_DATA_H_ -#define HEDERA_SDK_CPP_ETHEREUM_TRANSACTION_DATA_H_ +#ifndef HIERO_SDK_CPP_ETHEREUM_TRANSACTION_DATA_H_ +#define HIERO_SDK_CPP_ETHEREUM_TRANSACTION_DATA_H_ #include #include #include #include -namespace Hedera +namespace Hiero { /** * Wrapper class for Ethereum data. @@ -71,6 +71,6 @@ class EthereumTransactionData std::vector mCallData; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_ETHEREUM_TRANSACTION_DATA_H_ +#endif // HIERO_SDK_CPP_ETHEREUM_TRANSACTION_DATA_H_ diff --git a/src/sdk/main/include/EthereumTransactionDataEip1559.h b/src/sdk/main/include/EthereumTransactionDataEip1559.h index 8e3750d39..dbb8a3afd 100644 --- a/src/sdk/main/include/EthereumTransactionDataEip1559.h +++ b/src/sdk/main/include/EthereumTransactionDataEip1559.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_ETHEREUM_TRANSACTION_DATA_EIP1559_H_ -#define HEDERA_SDK_CPP_ETHEREUM_TRANSACTION_DATA_EIP1559_H_ +#ifndef HIERO_SDK_CPP_ETHEREUM_TRANSACTION_DATA_EIP1559_H_ +#define HIERO_SDK_CPP_ETHEREUM_TRANSACTION_DATA_EIP1559_H_ #include "EthereumTransactionData.h" @@ -27,7 +27,7 @@ #include #include -namespace Hedera +namespace Hiero { /** * Wrapper class for EIP1559 Ethereum data. @@ -100,12 +100,12 @@ class EthereumTransactionDataEip1559 : public EthereumTransactionData /** * An 'optional' additional fee in Ethereum that is paid directly to miners in order to incentivize them to include - * your transaction in a block. Not used in Hedera + * your transaction in a block. Not used in Hiero */ std::vector mMaxPriorityGas; /** - * The maximum amount, in tinybars, that the payer of the Hedera transaction is willing to pay to complete the + * The maximum amount, in tinybars, that the payer of the Hiero transaction is willing to pay to complete the * transaction. */ std::vector mMaxGas; @@ -146,6 +146,6 @@ class EthereumTransactionDataEip1559 : public EthereumTransactionData std::vector mS; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_ETHEREUM_TRANSACTION_DATA_EIP1559_H_ +#endif // HIERO_SDK_CPP_ETHEREUM_TRANSACTION_DATA_EIP1559_H_ diff --git a/src/sdk/main/include/EthereumTransactionDataLegacy.h b/src/sdk/main/include/EthereumTransactionDataLegacy.h index b66aa4fdd..4b45b1138 100644 --- a/src/sdk/main/include/EthereumTransactionDataLegacy.h +++ b/src/sdk/main/include/EthereumTransactionDataLegacy.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_ETHEREUM_TRANSACTION_DATA_LEGACY_H_ -#define HEDERA_SDK_CPP_ETHEREUM_TRANSACTION_DATA_LEGACY_H_ +#ifndef HIERO_SDK_CPP_ETHEREUM_TRANSACTION_DATA_LEGACY_H_ +#define HIERO_SDK_CPP_ETHEREUM_TRANSACTION_DATA_LEGACY_H_ #include "EthereumTransactionData.h" @@ -27,7 +27,7 @@ #include #include -namespace Hedera +namespace Hiero { /** * Wrapper class for legacy Ethereum data. @@ -126,6 +126,6 @@ class EthereumTransactionDataLegacy : public EthereumTransactionData std::vector mS; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_ETHEREUM_TRANSACTION_DATA_LEGACY_H_ +#endif // HIERO_SDK_CPP_ETHEREUM_TRANSACTION_DATA_LEGACY_H_ diff --git a/src/sdk/main/include/EvmAddress.h b/src/sdk/main/include/EvmAddress.h index 0a910a2f0..bb32c7053 100644 --- a/src/sdk/main/include/EvmAddress.h +++ b/src/sdk/main/include/EvmAddress.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,14 +17,14 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_EVM_ADDRESS_H_ -#define HEDERA_SDK_CPP_EVM_ADDRESS_H_ +#ifndef HIERO_SDK_CPP_EVM_ADDRESS_H_ +#define HIERO_SDK_CPP_EVM_ADDRESS_H_ #include #include #include -namespace Hedera +namespace Hiero { /** * A wrapper class for a 20-byte ethereum account address. @@ -84,6 +84,6 @@ class EvmAddress std::vector mEvmAddress; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_EVM_ADDRESS_H_ +#endif // HIERO_SDK_CPP_EVM_ADDRESS_H_ diff --git a/src/sdk/main/include/ExchangeRate.h b/src/sdk/main/include/ExchangeRate.h index a748e0c68..180c33de1 100644 --- a/src/sdk/main/include/ExchangeRate.h +++ b/src/sdk/main/include/ExchangeRate.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_EXCHANGE_RATE_H_ -#define HEDERA_SDK_CPP_EXCHANGE_RATE_H_ +#ifndef HIERO_SDK_CPP_EXCHANGE_RATE_H_ +#define HIERO_SDK_CPP_EXCHANGE_RATE_H_ #include #include @@ -32,7 +32,7 @@ namespace proto class ExchangeRate; } -namespace Hedera +namespace Hiero { /** * An exchange rate between hbar and cents (USD) and the time at which the exchange rate will expire, and be superseded @@ -119,6 +119,6 @@ class ExchangeRate double mExchangeRateInCents = 0.0; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_EXCHANGE_RATE_H_ +#endif // HIERO_SDK_CPP_EXCHANGE_RATE_H_ diff --git a/src/sdk/main/include/ExchangeRates.h b/src/sdk/main/include/ExchangeRates.h index 00997e5da..e46b54782 100644 --- a/src/sdk/main/include/ExchangeRates.h +++ b/src/sdk/main/include/ExchangeRates.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_EXCHANGE_RATE_SET_H_ -#define HEDERA_SDK_CPP_EXCHANGE_RATE_SET_H_ +#ifndef HIERO_SDK_CPP_EXCHANGE_RATE_SET_H_ +#define HIERO_SDK_CPP_EXCHANGE_RATE_SET_H_ #include "ExchangeRate.h" @@ -33,7 +33,7 @@ namespace proto class ExchangeRateSet; } -namespace Hedera +namespace Hiero { /** * Two sets of exchange rates, one being the current exchange rate and its expiration, and the other being the exchange @@ -109,6 +109,6 @@ class ExchangeRates ExchangeRate mNextRate; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_EXCHANGE_RATE_SET_H_ +#endif // HIERO_SDK_CPP_EXCHANGE_RATE_SET_H_ diff --git a/src/sdk/main/include/Executable.h b/src/sdk/main/include/Executable.h index 2c4e0c759..f0c17632a 100644 --- a/src/sdk/main/include/Executable.h +++ b/src/sdk/main/include/Executable.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_EXECUTABLE_H_ -#define HEDERA_SDK_CPP_EXECUTABLE_H_ +#ifndef HIERO_SDK_CPP_EXECUTABLE_H_ +#define HIERO_SDK_CPP_EXECUTABLE_H_ #include "AccountId.h" #include "Defaults.h" @@ -33,7 +33,7 @@ #include #include -namespace Hedera +namespace Hiero { namespace internal { @@ -49,7 +49,7 @@ namespace grpc class Status; } -namespace Hedera +namespace Hiero { /** * Base class for queries and transactions that contains the behavior for executing and submitting requests. @@ -64,10 +64,10 @@ class Executable { public: /** - * Submit this Executable to a Hedera network. + * Submit this Executable to a Hiero network. * * @param client The Client to use to submit this Executable. - * @return The SdkResponseType object sent from the Hedera network that contains the result of the request. + * @return The SdkResponseType object sent from the Hiero network that contains the result of the request. * @throws MaxAttemptsExceededException If this Executable attempts to execute past the number of allowable attempts. * @throws PrecheckStatusException If this Executable fails its pre-check. * @throws UninitializedException If the input Client has not yet been initialized. @@ -75,11 +75,11 @@ class Executable virtual SdkResponseType execute(const Client& client); /** - * Submit this Executable to a Hedera network with a specific timeout. + * Submit this Executable to a Hiero network with a specific timeout. * * @param client The Client to use to submit this Executable. * @param timeout The desired timeout for the execution of this Executable. - * @return The SdkResponseType object sent from the Hedera network that contains the result of the request. + * @return The SdkResponseType object sent from the Hiero network that contains the result of the request. * @throws MaxAttemptsExceededException If this Executable attempts to execute past the number of allowable attempts. * @throws PrecheckStatusException If this Executable fails its pre-check. * @throws UninitializedException If the input Client has not yet been initialized. @@ -87,10 +87,10 @@ class Executable virtual SdkResponseType execute(const Client& client, const std::chrono::system_clock::duration& timeout); /** - * Submit this Executable to a Hedera network asynchronously. + * Submit this Executable to a Hiero network asynchronously. * * @param client The Client to use to submit this Executable. - * @return The future SdkResponseType object sent from the Hedera network that contains the result of the request. + * @return The future SdkResponseType object sent from the Hiero network that contains the result of the request. * @throws MaxAttemptsExceededException If this Executable attempts to execute past the number of allowable attempts. * @throws PrecheckStatusException If this Executable fails its pre-check. * @throws UninitializedException If the input Client has not yet been initialized. @@ -98,11 +98,11 @@ class Executable std::future executeAsync(const Client& client); /** - * Submit this Executable to a Hedera network asynchronously with a specific timeout. + * Submit this Executable to a Hiero network asynchronously with a specific timeout. * * @param client The Client to use to submit this Executable. * @param timeout The desired timeout for the execution of this Executable. - * @return The future SdkResponseType object sent from the Hedera network that contains the result of the request. + * @return The future SdkResponseType object sent from the Hiero network that contains the result of the request. * @throws MaxAttemptsExceededException If this Executable attempts to execute past the number of allowable attempts. * @throws PrecheckStatusException If this Executable fails its pre-check. * @throws UninitializedException If the input Client has not yet been initialized. @@ -111,7 +111,7 @@ class Executable const std::chrono::system_clock::duration& timeout); /** - * Submit this Executable to a Hedera network asynchronously and consume the response and/or exception with a + * Submit this Executable to a Hiero network asynchronously and consume the response and/or exception with a * callback. * * @param client The Client to use to submit this Executable. @@ -121,7 +121,7 @@ class Executable const std::function& callback); /** - * Submit this Executable to a Hedera network asynchronously with a specific timeout and consume the response and/or + * Submit this Executable to a Hiero network asynchronously with a specific timeout and consume the response and/or * exception with a callback. * * @param client The Client to use to submit this Executable. @@ -133,7 +133,7 @@ class Executable const std::function& callback); /** - * Submit this Executable to a Hedera network asynchronously and consume the response and/or exception with separate + * Submit this Executable to a Hiero network asynchronously and consume the response and/or exception with separate * callbacks. * * @param client The Client to use to submit this Executable. @@ -145,7 +145,7 @@ class Executable const std::function& exceptionCallback); /** - * Submit this Executable to a Hedera network asynchronously with a specific timeout and consume the response and/or + * Submit this Executable to a Hiero network asynchronously with a specific timeout and consume the response and/or * exception with separate callbacks. * * @param client The Client to use to submit this Executable. @@ -508,6 +508,6 @@ class Executable std::chrono::system_clock::duration mCurrentGrpcDeadline = DEFAULT_GRPC_DEADLINE; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_EXECUTABLE_H_ +#endif // HIERO_SDK_CPP_EXECUTABLE_H_ diff --git a/src/sdk/main/include/FeeAssessmentMethod.h b/src/sdk/main/include/FeeAssessmentMethod.h index 4b47cbe03..583a600a5 100644 --- a/src/sdk/main/include/FeeAssessmentMethod.h +++ b/src/sdk/main/include/FeeAssessmentMethod.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,13 +17,13 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_FEE_ASSESSMENT_METHOD_H_ -#define HEDERA_SDK_CPP_FEE_ASSESSMENT_METHOD_H_ +#ifndef HIERO_SDK_CPP_FEE_ASSESSMENT_METHOD_H_ +#define HIERO_SDK_CPP_FEE_ASSESSMENT_METHOD_H_ #include #include -namespace Hedera +namespace Hiero { /** * An enumeration the describes how a fee should be assessed. @@ -48,18 +48,18 @@ enum class FeeAssessmentMethod * Map of FeeAssessmentMethod to its corresponding string. */ const std::unordered_map gFeeAssessmentMethodToString = { - {FeeAssessmentMethod::INCLUSIVE, "INCLUSIVE"}, - { FeeAssessmentMethod::EXCLUSIVE, "EXCLUSIVE"} + { FeeAssessmentMethod::INCLUSIVE, "INCLUSIVE" }, + { FeeAssessmentMethod::EXCLUSIVE, "EXCLUSIVE" } }; /** * Map of FeeAssessmentMethod string representation to its corresponding enum value. */ [[maybe_unused]] const std::unordered_map gStringToFeeAssessmentMethod = { - {"INCLUSIVE", FeeAssessmentMethod::INCLUSIVE}, - { "EXCLUSIVE", FeeAssessmentMethod::EXCLUSIVE} + { "INCLUSIVE", FeeAssessmentMethod::INCLUSIVE }, + { "EXCLUSIVE", FeeAssessmentMethod::EXCLUSIVE } }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_FEE_ASSESSMENT_METHOD_H_ +#endif // HIERO_SDK_CPP_FEE_ASSESSMENT_METHOD_H_ diff --git a/src/sdk/main/include/FeeComponents.h b/src/sdk/main/include/FeeComponents.h index 159b364d8..303a88e91 100644 --- a/src/sdk/main/include/FeeComponents.h +++ b/src/sdk/main/include/FeeComponents.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_FEE_COMPONENTS_H_ -#define HEDERA_SDK_CPP_FEE_COMPONENTS_H_ +#ifndef HIERO_SDK_CPP_FEE_COMPONENTS_H_ +#define HIERO_SDK_CPP_FEE_COMPONENTS_H_ #include #include @@ -31,7 +31,7 @@ namespace proto class FeeComponents; } -namespace Hedera +namespace Hiero { /** * A set of prices the nodes use in determining transaction and query fees, and constants involved in fee calculations. @@ -344,6 +344,6 @@ class FeeComponents int64_t mResponseDiskByte = 0LL; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_FEE_COMPONENTS_H_ +#endif // HIERO_SDK_CPP_FEE_COMPONENTS_H_ diff --git a/src/sdk/main/include/FeeData.h b/src/sdk/main/include/FeeData.h index 51ec78ce0..f8f9da0a7 100644 --- a/src/sdk/main/include/FeeData.h +++ b/src/sdk/main/include/FeeData.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_FEE_DATA_H_ -#define HEDERA_SDK_CPP_FEE_DATA_H_ +#ifndef HIERO_SDK_CPP_FEE_DATA_H_ +#define HIERO_SDK_CPP_FEE_DATA_H_ #include "FeeComponents.h" #include "FeeDataType.h" @@ -33,7 +33,7 @@ namespace proto class FeeData; } -namespace Hedera +namespace Hiero { /** * The total fee charged for a transaction. It is composed of three components - a node fee that compensates the @@ -174,11 +174,11 @@ class FeeData FeeComponents mServiceData; /** - * The data type distinguishing between different types of FeeData, correlating to the same Hedera functionality. + * The data type distinguishing between different types of FeeData, correlating to the same Hiero functionality. */ FeeDataType mType = FeeDataType::DEFAULT; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_FEE_DATA_H_ +#endif // HIERO_SDK_CPP_FEE_DATA_H_ diff --git a/src/sdk/main/include/FeeDataType.h b/src/sdk/main/include/FeeDataType.h index db532b6ad..d6ac4d4e1 100644 --- a/src/sdk/main/include/FeeDataType.h +++ b/src/sdk/main/include/FeeDataType.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_FEE_DATA_TYPE_H_ -#define HEDERA_SDK_CPP_FEE_DATA_TYPE_H_ +#ifndef HIERO_SDK_CPP_FEE_DATA_TYPE_H_ +#define HIERO_SDK_CPP_FEE_DATA_TYPE_H_ #include #include @@ -28,7 +28,7 @@ namespace proto enum SubType : int; } -namespace Hedera +namespace Hiero { /** * Enumeration of fee data types. @@ -76,6 +76,6 @@ extern const std::unordered_map gFeeDataTypeToProto */ [[maybe_unused]] extern const std::unordered_map gFeeDataTypeToString; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_FEE_DATA_TYPE_H_ +#endif // HIERO_SDK_CPP_FEE_DATA_TYPE_H_ diff --git a/src/sdk/main/include/FeeSchedule.h b/src/sdk/main/include/FeeSchedule.h index c11ff33c0..cbda9070a 100644 --- a/src/sdk/main/include/FeeSchedule.h +++ b/src/sdk/main/include/FeeSchedule.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_FEE_SCHEDULE_H_ -#define HEDERA_SDK_CPP_FEE_SCHEDULE_H_ +#ifndef HIERO_SDK_CPP_FEE_SCHEDULE_H_ +#define HIERO_SDK_CPP_FEE_SCHEDULE_H_ #include "TransactionFeeSchedule.h" @@ -33,7 +33,7 @@ namespace proto class FeeSchedule; } -namespace Hedera +namespace Hiero { /** * A list of resource prices fee for different transactions and queries and the time period at which this fee schedule @@ -133,6 +133,6 @@ class FeeSchedule std::chrono::system_clock::time_point mExpirationTime = std::chrono::system_clock::now(); }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_FEE_SCHEDULE_H_ +#endif // HIERO_SDK_CPP_FEE_SCHEDULE_H_ diff --git a/src/sdk/main/include/FeeSchedules.h b/src/sdk/main/include/FeeSchedules.h index fe8dd55a6..1e93b696a 100644 --- a/src/sdk/main/include/FeeSchedules.h +++ b/src/sdk/main/include/FeeSchedules.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_FEE_SCHEDULES_H_ -#define HEDERA_SDK_CPP_FEE_SCHEDULES_H_ +#ifndef HIERO_SDK_CPP_FEE_SCHEDULES_H_ +#define HIERO_SDK_CPP_FEE_SCHEDULES_H_ #include "FeeSchedule.h" @@ -33,7 +33,7 @@ namespace proto class CurrentAndNextFeeSchedule; } -namespace Hedera +namespace Hiero { /** * Two fee schedules, one being the current fee schedule and its expiration, and the other being the fee schedule to be @@ -129,6 +129,6 @@ class FeeSchedules FeeSchedule mNextFeeSchedule; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_FEE_SCHEDULES_H_ +#endif // HIERO_SDK_CPP_FEE_SCHEDULES_H_ diff --git a/src/sdk/main/include/FileAppendTransaction.h b/src/sdk/main/include/FileAppendTransaction.h index bf2559fc4..0e8093dee 100644 --- a/src/sdk/main/include/FileAppendTransaction.h +++ b/src/sdk/main/include/FileAppendTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_FILE_APPEND_TRANSACTION_H_ -#define HEDERA_SDK_CPP_FILE_APPEND_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_FILE_APPEND_TRANSACTION_H_ +#define HIERO_SDK_CPP_FILE_APPEND_TRANSACTION_H_ #include "ChunkedTransaction.h" #include "FileId.h" @@ -33,7 +33,7 @@ class FileAppendTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** * A transaction that appends new file content to the end of an existing file. The contents of the file can be viewed by @@ -172,6 +172,6 @@ class FileAppendTransaction : public ChunkedTransaction FileId mFileId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_FILE_APPEND_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_FILE_APPEND_TRANSACTION_H_ diff --git a/src/sdk/main/include/FileContentsQuery.h b/src/sdk/main/include/FileContentsQuery.h index b223137b2..db333e59b 100644 --- a/src/sdk/main/include/FileContentsQuery.h +++ b/src/sdk/main/include/FileContentsQuery.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_FILE_CONTENTS_QUERY_H_ -#define HEDERA_SDK_CPP_FILE_CONTENTS_QUERY_H_ +#ifndef HIERO_SDK_CPP_FILE_CONTENTS_QUERY_H_ +#define HIERO_SDK_CPP_FILE_CONTENTS_QUERY_H_ #include "FileId.h" #include "Query.h" @@ -27,7 +27,7 @@ #include #include -namespace Hedera +namespace Hiero { /** * A query to get the contents of a file. Queries do not change the state of the file or require network consensus. The @@ -110,6 +110,6 @@ class FileContentsQuery : public Query FileId mFileId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_FILE_CONTENTS_QUERY_H_ +#endif // HIERO_SDK_CPP_FILE_CONTENTS_QUERY_H_ diff --git a/src/sdk/main/include/FileCreateTransaction.h b/src/sdk/main/include/FileCreateTransaction.h index 517ea7b72..219c5e0ad 100644 --- a/src/sdk/main/include/FileCreateTransaction.h +++ b/src/sdk/main/include/FileCreateTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_FILE_CREATE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_FILE_CREATE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_FILE_CREATE_TRANSACTION_H_ +#define HIERO_SDK_CPP_FILE_CREATE_TRANSACTION_H_ #include "Defaults.h" #include "Key.h" @@ -38,11 +38,11 @@ class FileCreateTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** - * A transaction that creates a new file on a Hedera network. The file is referenced by its file ID which can be - * obtained from the receipt or record once the transaction reaches consensus on a Hedera network. The file does not + * A transaction that creates a new file on a Hiero network. The file is referenced by its file ID which can be + * obtained from the receipt or record once the transaction reaches consensus on a Hiero network. The file does not * have a file name. If the file is too big to create with a single FileCreateTransaction(), the file can be appended * with the remaining content multiple times using the FileAppendTransaction(). * @@ -213,6 +213,6 @@ class FileCreateTransaction : public Transaction std::string mFileMemo; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_FILE_CREATE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_FILE_CREATE_TRANSACTION_H_ diff --git a/src/sdk/main/include/FileDeleteTransaction.h b/src/sdk/main/include/FileDeleteTransaction.h index 45b02d6ee..dccd0ec10 100644 --- a/src/sdk/main/include/FileDeleteTransaction.h +++ b/src/sdk/main/include/FileDeleteTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_FILE_DELETE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_FILE_DELETE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_FILE_DELETE_TRANSACTION_H_ +#define HIERO_SDK_CPP_FILE_DELETE_TRANSACTION_H_ #include "FileId.h" #include "Transaction.h" @@ -29,10 +29,10 @@ class FileDeleteTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** - * A transaction that deletes a file from a Hedera network. When deleted, a file's contents are truncated to zero length + * A transaction that deletes a file from a Hiero network. When deleted, a file's contents are truncated to zero length * and it can no longer be updated or appended to, or its expiration time extended. When you request the contents or * info of a deleted file, the network will return FILE_DELETED. * @@ -131,6 +131,6 @@ class FileDeleteTransaction : public Transaction FileId mFileId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_FILE_DELETE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_FILE_DELETE_TRANSACTION_H_ diff --git a/src/sdk/main/include/FileId.h b/src/sdk/main/include/FileId.h index 5dc7e661e..dd7b59ae6 100644 --- a/src/sdk/main/include/FileId.h +++ b/src/sdk/main/include/FileId.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_FILE_ID_H_ -#define HEDERA_SDK_CPP_FILE_ID_H_ +#ifndef HIERO_SDK_CPP_FILE_ID_H_ +#define HIERO_SDK_CPP_FILE_ID_H_ #include #include @@ -31,15 +31,15 @@ namespace proto class FileID; } -namespace Hedera +namespace Hiero { class Client; } -namespace Hedera +namespace Hiero { /** - * The ID for a file on Hedera. + * The ID for a file on Hiero. */ class FileId { @@ -193,19 +193,19 @@ class FileId mutable std::string mChecksum; }; -} // namespace Hedera +} // namespace Hiero namespace std { template<> -struct hash +struct hash { /** * Operator override to enable use of FileId as map key */ - size_t operator()(const Hedera::FileId& id) const { return hash()(id.toString()); } + size_t operator()(const Hiero::FileId& id) const { return hash()(id.toString()); } }; } // namespace std -#endif // HEDERA_SDK_CPP_FILE_ID_H_ +#endif // HIERO_SDK_CPP_FILE_ID_H_ diff --git a/src/sdk/main/include/FileInfo.h b/src/sdk/main/include/FileInfo.h index d4d6ab788..c6d77c47f 100644 --- a/src/sdk/main/include/FileInfo.h +++ b/src/sdk/main/include/FileInfo.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_FILE_INFO_H_ -#define HEDERA_SDK_CPP_FILE_INFO_H_ +#ifndef HIERO_SDK_CPP_FILE_INFO_H_ +#define HIERO_SDK_CPP_FILE_INFO_H_ #include "FileId.h" #include "KeyList.h" @@ -37,7 +37,7 @@ namespace proto class FileGetInfoResponse_FileInfo; } -namespace Hedera +namespace Hiero { /** * Contains information about a file instance. @@ -127,6 +127,6 @@ class FileInfo LedgerId mLedgerId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_FILE_INFO_H_ +#endif // HIERO_SDK_CPP_FILE_INFO_H_ diff --git a/src/sdk/main/include/FileInfoQuery.h b/src/sdk/main/include/FileInfoQuery.h index a21ff0643..cbb56850d 100644 --- a/src/sdk/main/include/FileInfoQuery.h +++ b/src/sdk/main/include/FileInfoQuery.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,19 +17,19 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_FILE_INFO_QUERY_H_ -#define HEDERA_SDK_CPP_FILE_INFO_QUERY_H_ +#ifndef HIERO_SDK_CPP_FILE_INFO_QUERY_H_ +#define HIERO_SDK_CPP_FILE_INFO_QUERY_H_ #include "FileId.h" #include "Query.h" -namespace Hedera +namespace Hiero { class FileInfo; class TransactionRecord; } -namespace Hedera +namespace Hiero { /** * A query that returns the current state of a file. Queries do not change the state of the file or require network @@ -108,6 +108,6 @@ class FileInfoQuery : public Query FileId mFileId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_FILE_INFO_QUERY_H_ +#endif // HIERO_SDK_CPP_FILE_INFO_QUERY_H_ diff --git a/src/sdk/main/include/FileUpdateTransaction.h b/src/sdk/main/include/FileUpdateTransaction.h index 925a74c2d..6f7cb064d 100644 --- a/src/sdk/main/include/FileUpdateTransaction.h +++ b/src/sdk/main/include/FileUpdateTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_FILE_UPDATE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_FILE_UPDATE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_FILE_UPDATE_TRANSACTION_H_ +#define HIERO_SDK_CPP_FILE_UPDATE_TRANSACTION_H_ #include "FileId.h" #include "Key.h" @@ -38,10 +38,10 @@ class FileUpdateTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** - * A transaction that updates the state of an existing file on a Hedera network. Once the transaction has been + * A transaction that updates the state of an existing file on a Hiero network. Once the transaction has been * processed, the network will be updated with the new field values of the file. If you need to access a previous state * of the file, you can query a mirror node. * @@ -232,6 +232,6 @@ class FileUpdateTransaction : public Transaction std::optional mFileMemo; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_FILE_UPDATE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_FILE_UPDATE_TRANSACTION_H_ diff --git a/src/sdk/main/include/FreezeTransaction.h b/src/sdk/main/include/FreezeTransaction.h index 3d123406f..57db29edf 100644 --- a/src/sdk/main/include/FreezeTransaction.h +++ b/src/sdk/main/include/FreezeTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_FREEZE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_FREEZE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_FREEZE_TRANSACTION_H_ +#define HIERO_SDK_CPP_FREEZE_TRANSACTION_H_ #include "FileId.h" #include "FreezeType.h" @@ -35,7 +35,7 @@ class FreezeTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** * @@ -201,6 +201,6 @@ class FreezeTransaction : public Transaction FreezeType mFreezeType = FreezeType::UNKNOWN_FREEZE_TYPE; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_FREEZE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_FREEZE_TRANSACTION_H_ diff --git a/src/sdk/main/include/FreezeType.h b/src/sdk/main/include/FreezeType.h index 956d6dada..17cb6404d 100644 --- a/src/sdk/main/include/FreezeType.h +++ b/src/sdk/main/include/FreezeType.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_FREEZE_TYPE_H_ -#define HEDERA_SDK_CPP_FREEZE_TYPE_H_ +#ifndef HIERO_SDK_CPP_FREEZE_TYPE_H_ +#define HIERO_SDK_CPP_FREEZE_TYPE_H_ #include #include @@ -28,7 +28,7 @@ namespace proto enum FreezeType : int; } -namespace Hedera +namespace Hiero { /** * The type of network freeze or upgrade operation to be performed. This type dictates which fields are required. @@ -83,6 +83,6 @@ extern const std::unordered_map gFreezeTypeToProt */ [[maybe_unused]] extern const std::unordered_map gFreezeTypeToString; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_FREEZE_TYPE_H_ +#endif // HIERO_SDK_CPP_FREEZE_TYPE_H_ diff --git a/src/sdk/main/include/Hbar.h b/src/sdk/main/include/Hbar.h index b98db3fa1..4ec100028 100644 --- a/src/sdk/main/include/Hbar.h +++ b/src/sdk/main/include/Hbar.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,20 +17,20 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_HBAR_H_ -#define HEDERA_SDK_CPP_HBAR_H_ +#ifndef HIERO_SDK_CPP_HBAR_H_ +#define HIERO_SDK_CPP_HBAR_H_ #include "HbarUnit.h" #include #include -namespace Hedera +namespace Hiero { /** * Represents a quantity of hbar. * - * Implemented as a wrapper class to force handling of units. Direct interfacing with Hedera accepts amounts in tinybars + * Implemented as a wrapper class to force handling of units. Direct interfacing with Hiero accepts amounts in tinybars * however the nominal unit is hbar. */ @@ -153,6 +153,6 @@ class Hbar int64_t mValueInTinybar = 0LL; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_HBAR_H_ +#endif // HIERO_SDK_CPP_HBAR_H_ diff --git a/src/sdk/main/include/HbarAllowance.h b/src/sdk/main/include/HbarAllowance.h index 1287589f7..9c61365a0 100644 --- a/src/sdk/main/include/HbarAllowance.h +++ b/src/sdk/main/include/HbarAllowance.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_HBAR_ALLOWANCE_H_ -#define HEDERA_SDK_CPP_HBAR_ALLOWANCE_H_ +#ifndef HIERO_SDK_CPP_HBAR_ALLOWANCE_H_ +#define HIERO_SDK_CPP_HBAR_ALLOWANCE_H_ #include "AccountId.h" #include "Hbar.h" @@ -30,12 +30,12 @@ namespace proto class CryptoAllowance; } -namespace Hedera +namespace Hiero { class Client; } -namespace Hedera +namespace Hiero { /** * An approved allowance of Hbar transfers for a spender. @@ -93,6 +93,6 @@ class HbarAllowance Hbar mAmount; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_HBAR_ALLOWANCE_H_ +#endif // HIERO_SDK_CPP_HBAR_ALLOWANCE_H_ diff --git a/src/sdk/main/include/HbarTransfer.h b/src/sdk/main/include/HbarTransfer.h index 3f1bc9028..87b46979a 100644 --- a/src/sdk/main/include/HbarTransfer.h +++ b/src/sdk/main/include/HbarTransfer.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_HBAR_TRANSFER_H_ -#define HEDERA_SDK_CPP_HBAR_TRANSFER_H_ +#ifndef HIERO_SDK_CPP_HBAR_TRANSFER_H_ +#define HIERO_SDK_CPP_HBAR_TRANSFER_H_ #include "AccountId.h" #include "Hbar.h" @@ -34,7 +34,7 @@ namespace proto class AccountAmount; } -namespace Hedera +namespace Hiero { class HbarTransfer { @@ -112,6 +112,6 @@ class HbarTransfer bool mIsApproved = false; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_HBAR_TRANSFER_H_ +#endif // HIERO_SDK_CPP_HBAR_TRANSFER_H_ diff --git a/src/sdk/main/include/HbarUnit.h b/src/sdk/main/include/HbarUnit.h index a8492a83f..7f337f744 100644 --- a/src/sdk/main/include/HbarUnit.h +++ b/src/sdk/main/include/HbarUnit.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -namespace Hedera +namespace Hiero { /** * Common units of Hbar; for the most part they follow SI prefix conventions. @@ -32,7 +32,7 @@ class HbarUnit { public: /** - * The atomic (smallest) unit of hbar, used natively by the Hedera network. It is equivalent to 1/100,000,000 hbar. + * The atomic (smallest) unit of hbar, used natively by the Hiero network. It is equivalent to 1/100,000,000 hbar. */ static constexpr HbarUnit TINYBAR() { return { "tℏ", 1ULL }; } @@ -62,7 +62,7 @@ class HbarUnit static constexpr HbarUnit MEGABAR() { return { "Mℏ", 100000000000000ULL }; } /** - * Equivalent to 1 billion hbar or 100 quadrillion tinybar. The maximum hbar amount supported by Hedera in any context + * Equivalent to 1 billion hbar or 100 quadrillion tinybar. The maximum hbar amount supported by Hiero in any context * is ~92 gigabar (2^63 tinybar); use this unit sparingly. */ static constexpr HbarUnit GIGABAR() { return { "Gℏ", 100000000000000000ULL }; } @@ -104,6 +104,6 @@ class HbarUnit const uint64_t mTinybars; }; -} // namespace Hedera +} // namespace Hiero #endif // HBAR_UNIT_H_ \ No newline at end of file diff --git a/src/sdk/main/include/IPv4Address.h b/src/sdk/main/include/IPv4Address.h index a57a1a725..cd5a7d5da 100644 --- a/src/sdk/main/include/IPv4Address.h +++ b/src/sdk/main/include/IPv4Address.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,15 +17,15 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IPV4_ADDRESS_H_ -#define HEDERA_SDK_CPP_IPV4_ADDRESS_H_ +#ifndef HIERO_SDK_CPP_IPV4_ADDRESS_H_ +#define HIERO_SDK_CPP_IPV4_ADDRESS_H_ #include #include #include #include -namespace Hedera +namespace Hiero { /** * An IPv4 address (without port). @@ -70,6 +70,6 @@ class IPv4Address std::vector mAddress; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_IPV4_ADDRESS_H_ +#endif // HIERO_SDK_CPP_IPV4_ADDRESS_H_ diff --git a/src/sdk/main/include/Key.h b/src/sdk/main/include/Key.h index 648b38191..54abcf4a7 100644 --- a/src/sdk/main/include/Key.h +++ b/src/sdk/main/include/Key.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_KEY_H_ -#define HEDERA_SDK_CPP_KEY_H_ +#ifndef HIERO_SDK_CPP_KEY_H_ +#define HIERO_SDK_CPP_KEY_H_ #include #include @@ -29,10 +29,10 @@ namespace proto class Key; } -namespace Hedera +namespace Hiero { /** - * A generic base class for the signing authority or key that entities in Hedera may have. + * A generic base class for the signing authority or key that entities in Hiero may have. */ class Key { @@ -81,6 +81,6 @@ class Key Key& operator=(Key&&) = default; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_KEY_H_ +#endif // HIERO_SDK_CPP_KEY_H_ diff --git a/src/sdk/main/include/KeyList.h b/src/sdk/main/include/KeyList.h index 68dd0eea2..b46261b56 100644 --- a/src/sdk/main/include/KeyList.h +++ b/src/sdk/main/include/KeyList.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_KEYLIST_H_ -#define HEDERA_SDK_CPP_KEYLIST_H_ +#ifndef HIERO_SDK_CPP_KEYLIST_H_ +#define HIERO_SDK_CPP_KEYLIST_H_ #include "Key.h" @@ -33,7 +33,7 @@ class KeyList; class ThresholdKey; } -namespace Hedera +namespace Hiero { /** * A key list key structure where all the keys in the list are required to sign transactions that modify accounts, @@ -189,6 +189,6 @@ class KeyList : public Key uint32_t mThreshold = 0; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_KEYLIST_H_ +#endif // HIERO_SDK_CPP_KEYLIST_H_ diff --git a/src/sdk/main/include/LedgerId.h b/src/sdk/main/include/LedgerId.h index 422a902eb..5f9c938af 100644 --- a/src/sdk/main/include/LedgerId.h +++ b/src/sdk/main/include/LedgerId.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,15 +17,15 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_LEDGER_ID_H_ -#define HEDERA_SDK_CPP_LEDGER_ID_H_ +#ifndef HIERO_SDK_CPP_LEDGER_ID_H_ +#define HIERO_SDK_CPP_LEDGER_ID_H_ #include #include #include #include -namespace Hedera +namespace Hiero { class LedgerId { @@ -33,17 +33,17 @@ class LedgerId LedgerId() = default; /** - * The Hedera Mainnet ledger ID. + * The Hiero Mainnet ledger ID. */ static const LedgerId MAINNET; /** - * The Hedera Testnet ledger ID. + * The Hiero Testnet ledger ID. */ static const LedgerId TESTNET; /** - * The Hedera Previewnet ledger ID. + * The Hiero Previewnet ledger ID. */ static const LedgerId PREVIEWNET; @@ -82,30 +82,30 @@ class LedgerId [[nodiscard]] std::string toString() const; /** - * Does this LedgerId represent the LedgerId of the Hedera Mainnet? + * Does this LedgerId represent the LedgerId of the Hiero Mainnet? * - * @return \c TRUE if this LedgerId represent the LedgerId of the Hedera Mainnet, otherwise \c FALSE. + * @return \c TRUE if this LedgerId represent the LedgerId of the Hiero Mainnet, otherwise \c FALSE. */ [[nodiscard]] inline bool isMainnet() const { return *this == MAINNET; } /** - * Does this LedgerId represent the LedgerId of the Hedera Testnet? + * Does this LedgerId represent the LedgerId of the Hiero Testnet? * - * @return \c TRUE if this LedgerId represent the LedgerId of the Hedera Testnet, otherwise \c FALSE. + * @return \c TRUE if this LedgerId represent the LedgerId of the Hiero Testnet, otherwise \c FALSE. */ [[nodiscard]] inline bool isTestnet() const { return *this == TESTNET; } /** - * Does this LedgerId represent the LedgerId of the Hedera Previewnet? + * Does this LedgerId represent the LedgerId of the Hiero Previewnet? * - * @return \c TRUE if this LedgerId represent the LedgerId of the Hedera Previewnet, otherwise \c FALSE. + * @return \c TRUE if this LedgerId represent the LedgerId of the Hiero Previewnet, otherwise \c FALSE. */ [[nodiscard]] inline bool isPreviewnet() const { return *this == PREVIEWNET; } /** - * Does this LedgerId represent the LedgerId of any Hedera network? + * Does this LedgerId represent the LedgerId of any Hiero network? * - * @return \c TRUE if this LedgerId represents the LedgerId of any Hedera network, otherwise \c FALSE. + * @return \c TRUE if this LedgerId represents the LedgerId of any Hiero network, otherwise \c FALSE. */ [[nodiscard]] inline bool isKnownNetwork() const { return isMainnet() || isTestnet() || isPreviewnet(); } @@ -123,6 +123,6 @@ class LedgerId std::vector mLedgerId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_LEDGER_ID_H_ +#endif // HIERO_SDK_CPP_LEDGER_ID_H_ diff --git a/src/sdk/main/include/Logger.h b/src/sdk/main/include/Logger.h index 10c489adf..aed1a7bf3 100644 --- a/src/sdk/main/include/Logger.h +++ b/src/sdk/main/include/Logger.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_LOGGER_H_ -#define HEDERA_SDK_CPP_LOGGER_H_ +#ifndef HIERO_SDK_CPP_LOGGER_H_ +#define HIERO_SDK_CPP_LOGGER_H_ #include "Defaults.h" @@ -26,10 +26,10 @@ #include #include -namespace Hedera +namespace Hiero { /** - * Logger class used by the Hedera C++ SDK. In essence, it's a wrapper for a log4cxx logger instance and provides easier + * Logger class used by the Hiero C++ SDK. In essence, it's a wrapper for a log4cxx logger instance and provides easier * usage. */ class Logger @@ -147,6 +147,6 @@ class Logger LoggingLevel mPreviousLevel = LoggingLevel::TRACE; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_LOGGER_H_ +#endif // HIERO_SDK_CPP_LOGGER_H_ diff --git a/src/sdk/main/include/Mnemonic.h b/src/sdk/main/include/Mnemonic.h index 64018e955..ec8f4de7c 100644 --- a/src/sdk/main/include/Mnemonic.h +++ b/src/sdk/main/include/Mnemonic.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_MNEMONIC_H_ -#define HEDERA_SDK_CPP_MNEMONIC_H_ +#ifndef HIERO_SDK_CPP_MNEMONIC_H_ +#define HIERO_SDK_CPP_MNEMONIC_H_ #include #include @@ -26,7 +26,7 @@ #include #include -namespace Hedera +namespace Hiero { /** * The mnemonic represented by this class is in 1 of 3 formats: @@ -154,6 +154,6 @@ class Mnemonic std::vector mWordIndices; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_MNEMONIC_H_ +#endif // HIERO_SDK_CPP_MNEMONIC_H_ diff --git a/src/sdk/main/include/MnemonicBIP39.h b/src/sdk/main/include/MnemonicBIP39.h index 757f18899..188e48d16 100644 --- a/src/sdk/main/include/MnemonicBIP39.h +++ b/src/sdk/main/include/MnemonicBIP39.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_MNEMONIC_BIP39_H_ -#define HEDERA_SDK_CPP_MNEMONIC_BIP39_H_ +#ifndef HIERO_SDK_CPP_MNEMONIC_BIP39_H_ +#define HIERO_SDK_CPP_MNEMONIC_BIP39_H_ #include "Mnemonic.h" #include "PrivateKey.h" @@ -30,7 +30,7 @@ #include #include -namespace Hedera +namespace Hiero { /** * A standard BIP39 mnemonic. @@ -146,6 +146,6 @@ class MnemonicBIP39 : public Mnemonic [[nodiscard]] const std::set& getAcceptableWordCounts() const override; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_MNEMONIC_BIP39_H_ +#endif // HIERO_SDK_CPP_MNEMONIC_BIP39_H_ diff --git a/src/sdk/main/include/NetworkVersionInfo.h b/src/sdk/main/include/NetworkVersionInfo.h index 22c9ca527..1590ee485 100644 --- a/src/sdk/main/include/NetworkVersionInfo.h +++ b/src/sdk/main/include/NetworkVersionInfo.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_NETWORK_VERSION_INFO_H_ -#define HEDERA_SDK_CPP_NETWORK_VERSION_INFO_H_ +#ifndef HIERO_SDK_CPP_NETWORK_VERSION_INFO_H_ +#define HIERO_SDK_CPP_NETWORK_VERSION_INFO_H_ #include "SemanticVersion.h" @@ -33,7 +33,7 @@ namespace proto class NetworkGetVersionInfoResponse; } -namespace Hedera +namespace Hiero { /** * Contains information about the network's version. @@ -44,10 +44,10 @@ class NetworkVersionInfo NetworkVersionInfo() = default; /** - * Construct from a protobuf schema SemanticVersion and a Hedera services SemanticVersion. + * Construct from a protobuf schema SemanticVersion and a Hiero services SemanticVersion. * * @param hapi The SemanticVersion of the protobuf schema. - * @param hedera The SemanticVersion of the Hedera services. + * @param hedera The SemanticVersion of the Hiero services. */ NetworkVersionInfo(const SemanticVersion& hapi, const SemanticVersion& hedera); @@ -103,11 +103,11 @@ class NetworkVersionInfo SemanticVersion mProtobufVersion; /** - * The version of the Hedera services in use by the network. + * The version of the Hiero services in use by the network. */ SemanticVersion mServicesVersion; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_NETWORK_VERSION_INFO_H_ +#endif // HIERO_SDK_CPP_NETWORK_VERSION_INFO_H_ diff --git a/src/sdk/main/include/NetworkVersionInfoQuery.h b/src/sdk/main/include/NetworkVersionInfoQuery.h index 8e2cbe413..96c9ce669 100644 --- a/src/sdk/main/include/NetworkVersionInfoQuery.h +++ b/src/sdk/main/include/NetworkVersionInfoQuery.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,20 +17,20 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_NETWORK_VERSION_INFO_QUERY_H_ -#define HEDERA_SDK_CPP_NETWORK_VERSION_INFO_QUERY_H_ +#ifndef HIERO_SDK_CPP_NETWORK_VERSION_INFO_QUERY_H_ +#define HIERO_SDK_CPP_NETWORK_VERSION_INFO_QUERY_H_ #include "Query.h" -namespace Hedera +namespace Hiero { class NetworkVersionInfo; } -namespace Hedera +namespace Hiero { /** - * Get the deployed versions of Hedera Services and the HAPI proto in semantic version format. + * Get the deployed versions of Hiero Services and the HAPI proto in semantic version format. */ class NetworkVersionInfoQuery : public Query { @@ -85,6 +85,6 @@ class NetworkVersionInfoQuery : public Query -struct hash +struct hash { /** * Operator override to enable use of NftId as map key. */ - size_t operator()(const Hedera::NftId& id) const { return hash()(id.toString()); } + size_t operator()(const Hiero::NftId& id) const { return hash()(id.toString()); } }; } // namespace std -#endif // HEDERA_SDK_CPP_NFT_ID_H_ +#endif // HIERO_SDK_CPP_NFT_ID_H_ diff --git a/src/sdk/main/include/NodeAddress.h b/src/sdk/main/include/NodeAddress.h index a81af3592..9970690c4 100644 --- a/src/sdk/main/include/NodeAddress.h +++ b/src/sdk/main/include/NodeAddress.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_NODE_ADDRESS_H_ -#define HEDERA_SDK_CPP_NODE_ADDRESS_H_ +#ifndef HIERO_SDK_CPP_NODE_ADDRESS_H_ +#define HIERO_SDK_CPP_NODE_ADDRESS_H_ #include "AccountId.h" #include "Endpoint.h" @@ -33,7 +33,7 @@ namespace proto class NodeAddress; } -namespace Hedera +namespace Hiero { /** * Class containing all information related to the address(es) of a node. @@ -187,6 +187,6 @@ class NodeAddress std::string mDescription; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_NODE_ADDRESS_H_ +#endif // HIERO_SDK_CPP_NODE_ADDRESS_H_ diff --git a/src/sdk/main/include/NodeAddressBook.h b/src/sdk/main/include/NodeAddressBook.h index e85b148bd..cf0a44e1c 100644 --- a/src/sdk/main/include/NodeAddressBook.h +++ b/src/sdk/main/include/NodeAddressBook.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_NODE_ADDRESS_BOOK_H_ -#define HEDERA_SDK_CPP_NODE_ADDRESS_BOOK_H_ +#ifndef HIERO_SDK_CPP_NODE_ADDRESS_BOOK_H_ +#define HIERO_SDK_CPP_NODE_ADDRESS_BOOK_H_ #include "NodeAddress.h" @@ -30,7 +30,7 @@ namespace proto class NodeAddressBook; } -namespace Hedera +namespace Hiero { /** * An address book containing all known nodes on the network. @@ -90,6 +90,6 @@ class NodeAddressBook std::vector mNodeAddresses; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_NODE_ADDRESS_BOOK_H_ +#endif // HIERO_SDK_CPP_NODE_ADDRESS_BOOK_H_ diff --git a/src/sdk/main/include/NodeCreateTransaction.h b/src/sdk/main/include/NodeCreateTransaction.h index 311c2a811..be8733776 100644 --- a/src/sdk/main/include/NodeCreateTransaction.h +++ b/src/sdk/main/include/NodeCreateTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_NODE_CREATE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_NODE_CREATE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_NODE_CREATE_TRANSACTION_H_ +#define HIERO_SDK_CPP_NODE_CREATE_TRANSACTION_H_ #include "AccountId.h" #include "Endpoint.h" @@ -36,7 +36,7 @@ class NodeCreateTransactionBody; namespace aproto = com::hedera::hapi::node::addressbook; -namespace Hedera +namespace Hiero { /** * A transaction to add a new consensus node to the network address book. @@ -321,6 +321,6 @@ class NodeCreateTransaction : public Transaction std::shared_ptr mAdminKey; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_NODE_CREATE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_NODE_CREATE_TRANSACTION_H_ diff --git a/src/sdk/main/include/NodeDeleteTransaction.h b/src/sdk/main/include/NodeDeleteTransaction.h index e2537713a..99bbec05a 100644 --- a/src/sdk/main/include/NodeDeleteTransaction.h +++ b/src/sdk/main/include/NodeDeleteTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_NODE_DELETE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_NODE_DELETE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_NODE_DELETE_TRANSACTION_H_ +#define HIERO_SDK_CPP_NODE_DELETE_TRANSACTION_H_ #include "Transaction.h" @@ -35,7 +35,7 @@ class NodeDeleteTransactionBody; namespace aproto = com::hedera::hapi::node::addressbook; -namespace Hedera +namespace Hiero { /** * A transaction to delete a node from the network address book. @@ -148,6 +148,6 @@ class NodeDeleteTransaction : public Transaction uint64_t mNodeId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_NODE_DELETE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_NODE_DELETE_TRANSACTION_H_ diff --git a/src/sdk/main/include/NodeUpdateTransaction.h b/src/sdk/main/include/NodeUpdateTransaction.h index 0dd144e4d..e9c061774 100644 --- a/src/sdk/main/include/NodeUpdateTransaction.h +++ b/src/sdk/main/include/NodeUpdateTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_NODE_UPDATE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_NODE_UPDATE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_NODE_UPDATE_TRANSACTION_H_ +#define HIERO_SDK_CPP_NODE_UPDATE_TRANSACTION_H_ #include "Endpoint.h" #include "Transaction.h" @@ -35,7 +35,7 @@ class NodeUpdateTransactionBody; namespace aproto = com::hedera::hapi::node::addressbook; -namespace Hedera +namespace Hiero { /** * Transaction to modify address book node attributes. @@ -338,6 +338,6 @@ class NodeUpdateTransaction : public Transaction std::shared_ptr mAdminKey; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_NODE_UPDATE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_NODE_UPDATE_TRANSACTION_H_ diff --git a/src/sdk/main/include/PendingAirdropId.h b/src/sdk/main/include/PendingAirdropId.h index 8d323b0b5..efc59d49a 100644 --- a/src/sdk/main/include/PendingAirdropId.h +++ b/src/sdk/main/include/PendingAirdropId.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_PENDING_AIRDROP_ID_H_ -#define HEDERA_SDK_CPP_PENDING_AIRDROP_ID_H_ +#ifndef HIERO_SDK_CPP_PENDING_AIRDROP_ID_H_ +#define HIERO_SDK_CPP_PENDING_AIRDROP_ID_H_ #include "AccountId.h" #include "NftId.h" @@ -37,12 +37,12 @@ class PendingAirdropId; class TokenReference; } -namespace Hedera +namespace Hiero { class Client; } -namespace Hedera +namespace Hiero { /** * A unique, composite, identifier for a pending airdrop. @@ -137,4 +137,4 @@ class PendingAirdropId } -#endif // HEDERA_SDK_CPP_PENDING_AIRDROP_ID_H_ \ No newline at end of file +#endif // HIERO_SDK_CPP_PENDING_AIRDROP_ID_H_ \ No newline at end of file diff --git a/src/sdk/main/include/PendingAirdropRecord.h b/src/sdk/main/include/PendingAirdropRecord.h index 2a670dd36..fa89c30f5 100644 --- a/src/sdk/main/include/PendingAirdropRecord.h +++ b/src/sdk/main/include/PendingAirdropRecord.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_PENDING_AIRDROP_RECORD_H_ -#define HEDERA_SDK_CPP_PENDING_AIRDROP_RECORD_H_ +#ifndef HIERO_SDK_CPP_PENDING_AIRDROP_RECORD_H_ +#define HIERO_SDK_CPP_PENDING_AIRDROP_RECORD_H_ #include "PendingAirdropId.h" @@ -28,7 +28,7 @@ class PendingAirdropRecord; class PendingAirdropId; } -namespace Hedera +namespace Hiero { /** * A record of a new pending airdrop. @@ -85,6 +85,6 @@ class PendingAirdropRecord uint64_t mAmount; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_PENDING_AIRDROP_RECORD_H_ \ No newline at end of file +#endif // HIERO_SDK_CPP_PENDING_AIRDROP_RECORD_H_ \ No newline at end of file diff --git a/src/sdk/main/include/PrivateKey.h b/src/sdk/main/include/PrivateKey.h index efae59d11..4571a697b 100644 --- a/src/sdk/main/include/PrivateKey.h +++ b/src/sdk/main/include/PrivateKey.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_PRIVATE_KEY_H_ -#define HEDERA_SDK_CPP_PRIVATE_KEY_H_ +#ifndef HIERO_SDK_CPP_PRIVATE_KEY_H_ +#define HIERO_SDK_CPP_PRIVATE_KEY_H_ #include "Key.h" @@ -29,7 +29,7 @@ #include #include -namespace Hedera +namespace Hiero { template class Transaction; @@ -38,12 +38,12 @@ class PublicKey; class WrappedTransaction; } -namespace Hedera::internal::OpenSSLUtils +namespace Hiero::internal::OpenSSLUtils { class EVP_PKEY; } -namespace Hedera +namespace Hiero { /** * A generic class representing a private key. @@ -195,6 +195,6 @@ class PrivateKey : public Key std::unique_ptr mImpl; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_PRIVATE_KEY_H_ +#endif // HIERO_SDK_CPP_PRIVATE_KEY_H_ diff --git a/src/sdk/main/include/PrngTransaction.h b/src/sdk/main/include/PrngTransaction.h index 82fe080bf..2676bd39c 100644 --- a/src/sdk/main/include/PrngTransaction.h +++ b/src/sdk/main/include/PrngTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_PRNG_TRANSACTION_H_ -#define HEDERA_SDK_CPP_PRNG_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_PRNG_TRANSACTION_H_ +#define HIERO_SDK_CPP_PRNG_TRANSACTION_H_ #include "Transaction.h" @@ -28,7 +28,7 @@ class UtilPrngTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** * A transaction that generates a pseudorandom number. When the pseudorandom number generate transaction executes, its @@ -136,6 +136,6 @@ class PrngTransaction : public Transaction int mRange = 0; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_PRNG_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_PRNG_TRANSACTION_H_ diff --git a/src/sdk/main/include/ProxyStaker.h b/src/sdk/main/include/ProxyStaker.h index e64095bb4..540765227 100644 --- a/src/sdk/main/include/ProxyStaker.h +++ b/src/sdk/main/include/ProxyStaker.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_PROXY_STAKER_H_ -#define HEDERA_SDK_CPP_PROXY_STAKER_H_ +#ifndef HIERO_SDK_CPP_PROXY_STAKER_H_ +#define HIERO_SDK_CPP_PROXY_STAKER_H_ #include "AccountId.h" #include "Hbar.h" @@ -35,7 +35,7 @@ namespace proto class ProxyStaker; } -namespace Hedera +namespace Hiero { /** * Information about a single account that is proxy staking. @@ -110,6 +110,6 @@ class ProxyStaker Hbar mAmount; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_PROXY_STAKER_H_ +#endif // HIERO_SDK_CPP_PROXY_STAKER_H_ diff --git a/src/sdk/main/include/PublicKey.h b/src/sdk/main/include/PublicKey.h index 154b302f7..4f64dab0b 100644 --- a/src/sdk/main/include/PublicKey.h +++ b/src/sdk/main/include/PublicKey.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_PUBLIC_KEY_H_ -#define HEDERA_SDK_CPP_PUBLIC_KEY_H_ +#ifndef HIERO_SDK_CPP_PUBLIC_KEY_H_ +#define HIERO_SDK_CPP_PUBLIC_KEY_H_ #include "Key.h" @@ -34,7 +34,7 @@ class Key; class SignaturePair; } -namespace Hedera +namespace Hiero { namespace internal::OpenSSLUtils { @@ -44,7 +44,7 @@ class EVP_PKEY; class AccountId; } -namespace Hedera +namespace Hiero { /** * A generic class representing a public key. @@ -201,6 +201,6 @@ class PublicKey std::unique_ptr mImpl; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_PUBLIC_KEY_H_ +#endif // HIERO_SDK_CPP_PUBLIC_KEY_H_ diff --git a/src/sdk/main/include/Query.h b/src/sdk/main/include/Query.h index aeae0d9ae..0370ef363 100644 --- a/src/sdk/main/include/Query.h +++ b/src/sdk/main/include/Query.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_QUERY_H_ -#define HEDERA_SDK_CPP_QUERY_H_ +#ifndef HIERO_SDK_CPP_QUERY_H_ +#define HIERO_SDK_CPP_QUERY_H_ #include "Executable.h" @@ -38,17 +38,17 @@ class ResponseHeader; class Transaction; } -namespace Hedera +namespace Hiero { class Client; class Hbar; class TransactionId; } -namespace Hedera +namespace Hiero { /** - * Base class for all queries that can be submitted to Hedera. + * Base class for all queries that can be submitted to Hiero. * * @tparam SdkRequestType The SDK request type. * @tparam SdkResponseType The SDK response type. @@ -268,6 +268,6 @@ class Query : public Executable mImpl; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_QUERY_H_ +#endif // HIERO_SDK_CPP_QUERY_H_ diff --git a/src/sdk/main/include/RequestType.h b/src/sdk/main/include/RequestType.h index e2fd22cf6..cf859e68e 100644 --- a/src/sdk/main/include/RequestType.h +++ b/src/sdk/main/include/RequestType.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_REQUEST_TYPE_H_ -#define HEDERA_SDK_CPP_REQUEST_TYPE_H_ +#ifndef HIERO_SDK_CPP_REQUEST_TYPE_H_ +#define HIERO_SDK_CPP_REQUEST_TYPE_H_ #include #include @@ -28,10 +28,10 @@ namespace proto enum HederaFunctionality : int; } -namespace Hedera +namespace Hiero { /** - * Enumeration of all queries and transactions supported by Hedera Hashgraph. + * Enumeration of all queries and transactions supported by Hiero Hashgraph. */ enum class RequestType { @@ -126,6 +126,6 @@ extern const std::unordered_map gReques */ [[maybe_unused]] extern const std::unordered_map gRequestTypeToString; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_REQUEST_TYPE_H_ +#endif // HIERO_SDK_CPP_REQUEST_TYPE_H_ diff --git a/src/sdk/main/include/ScheduleCreateTransaction.h b/src/sdk/main/include/ScheduleCreateTransaction.h index d39e200f1..018b88aa4 100644 --- a/src/sdk/main/include/ScheduleCreateTransaction.h +++ b/src/sdk/main/include/ScheduleCreateTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_SCHEDULE_CREATE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_SCHEDULE_CREATE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_SCHEDULE_CREATE_TRANSACTION_H_ +#define HIERO_SDK_CPP_SCHEDULE_CREATE_TRANSACTION_H_ #include "AccountId.h" #include "Key.h" @@ -38,10 +38,10 @@ class TransactionBody; class WrappedTransaction; } -namespace Hedera +namespace Hiero { /** - * A transaction that creates a schedule entity on a Hedera network. The entity ID for a schedule transaction is + * A transaction that creates a schedule entity on a Hiero network. The entity ID for a schedule transaction is * referred to as the ScheduleId. After successfully executing a schedule create transaction, you can obtain the * ScheduleId by requesting the receipt of the transaction immediately after the transaction was executed. The receipt * also contains the scheduled transaction ID. The scheduled transaction ID is used to to request the record of the @@ -244,6 +244,6 @@ class ScheduleCreateTransaction : public Transaction std::unique_ptr mImpl; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_SCHEDULE_CREATE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_SCHEDULE_CREATE_TRANSACTION_H_ diff --git a/src/sdk/main/include/ScheduleDeleteTransaction.h b/src/sdk/main/include/ScheduleDeleteTransaction.h index 070560061..090c5315d 100644 --- a/src/sdk/main/include/ScheduleDeleteTransaction.h +++ b/src/sdk/main/include/ScheduleDeleteTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_SCHEDULE_DELETE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_SCHEDULE_DELETE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_SCHEDULE_DELETE_TRANSACTION_H_ +#define HIERO_SDK_CPP_SCHEDULE_DELETE_TRANSACTION_H_ #include "ScheduleId.h" #include "Transaction.h" @@ -31,7 +31,7 @@ class ScheduleDeleteTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** * A transaction that deletes a scheduled transaction from the network. You can delete a scheduled transaction if only @@ -136,6 +136,6 @@ class ScheduleDeleteTransaction : public Transaction std::optional mScheduleId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_SCHEDULE_DELETE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_SCHEDULE_DELETE_TRANSACTION_H_ diff --git a/src/sdk/main/include/ScheduleId.h b/src/sdk/main/include/ScheduleId.h index 7d4646738..9093f5d8c 100644 --- a/src/sdk/main/include/ScheduleId.h +++ b/src/sdk/main/include/ScheduleId.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_SCHEDULE_ID_H_ -#define HEDERA_SDK_CPP_SCHEDULE_ID_H_ +#ifndef HIERO_SDK_CPP_SCHEDULE_ID_H_ +#define HIERO_SDK_CPP_SCHEDULE_ID_H_ #include #include @@ -31,15 +31,15 @@ namespace proto class ScheduleID; } -namespace Hedera +namespace Hiero { class Client; } -namespace Hedera +namespace Hiero { /** - * The ID for a schedule on Hedera. + * The ID for a schedule on Hiero. */ class ScheduleId { @@ -162,19 +162,19 @@ class ScheduleId mutable std::string mChecksum; }; -} // namespace Hedera +} // namespace Hiero namespace std { template<> -struct hash +struct hash { /** * Operator override to enable use of ScheduleId as map key */ - size_t operator()(const Hedera::ScheduleId& id) const { return hash()(id.toString()); } + size_t operator()(const Hiero::ScheduleId& id) const { return hash()(id.toString()); } }; } // namespace std -#endif // HEDERA_SDK_CPP_SCHEDULE_ID_H_ +#endif // HIERO_SDK_CPP_SCHEDULE_ID_H_ diff --git a/src/sdk/main/include/ScheduleInfo.h b/src/sdk/main/include/ScheduleInfo.h index 911190f6c..019785493 100644 --- a/src/sdk/main/include/ScheduleInfo.h +++ b/src/sdk/main/include/ScheduleInfo.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_SCHEDULE_INFO_H_ -#define HEDERA_SDK_CPP_SCHEDULE_INFO_H_ +#ifndef HIERO_SDK_CPP_SCHEDULE_INFO_H_ +#define HIERO_SDK_CPP_SCHEDULE_INFO_H_ #include "AccountId.h" #include "Key.h" @@ -41,10 +41,10 @@ namespace proto class ScheduleInfo; } -namespace Hedera +namespace Hiero { /** - * Response from a Hedera network when the client sends a ScheduleInfoQuery. + * Response from a Hiero network when the client sends a ScheduleInfoQuery. */ class ScheduleInfo { @@ -164,6 +164,6 @@ class ScheduleInfo bool mWaitForExpiry = false; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_SCHEDULE_INFO_H_ +#endif // HIERO_SDK_CPP_SCHEDULE_INFO_H_ diff --git a/src/sdk/main/include/ScheduleInfoQuery.h b/src/sdk/main/include/ScheduleInfoQuery.h index 14a50cbdb..08e700e2b 100644 --- a/src/sdk/main/include/ScheduleInfoQuery.h +++ b/src/sdk/main/include/ScheduleInfoQuery.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,22 +17,22 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_SCHEDULE_INFO_QUERY_H_ -#define HEDERA_SDK_CPP_SCHEDULE_INFO_QUERY_H_ +#ifndef HIERO_SDK_CPP_SCHEDULE_INFO_QUERY_H_ +#define HIERO_SDK_CPP_SCHEDULE_INFO_QUERY_H_ #include "Query.h" #include "ScheduleId.h" -namespace Hedera +namespace Hiero { class ScheduleInfo; class TransactionRecord; } -namespace Hedera +namespace Hiero { /** - * A query that returns information about the current state of a schedule transaction on a Hedera network. + * A query that returns information about the current state of a schedule transaction on a Hiero network. */ class ScheduleInfoQuery : public Query { @@ -107,6 +107,6 @@ class ScheduleInfoQuery : public Query ScheduleId mScheduleId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_SCHEDULE_INFO_QUERY_H_ +#endif // HIERO_SDK_CPP_SCHEDULE_INFO_QUERY_H_ diff --git a/src/sdk/main/include/ScheduleSignTransaction.h b/src/sdk/main/include/ScheduleSignTransaction.h index c1a65b710..7da5386a0 100644 --- a/src/sdk/main/include/ScheduleSignTransaction.h +++ b/src/sdk/main/include/ScheduleSignTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_SCHEDULE_SIGN_TRANSACTION_H_ -#define HEDERA_SDK_CPP_SCHEDULE_SIGN_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_SCHEDULE_SIGN_TRANSACTION_H_ +#define HIERO_SDK_CPP_SCHEDULE_SIGN_TRANSACTION_H_ #include "ScheduleId.h" #include "Transaction.h" @@ -31,7 +31,7 @@ class ScheduleSignTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** * A transaction that appends signatures to a scheduled transaction. You will need to know the schedule ID to reference @@ -144,6 +144,6 @@ class ScheduleSignTransaction : public Transaction std::optional mScheduleId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_SCHEDULE_SIGN_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_SCHEDULE_SIGN_TRANSACTION_H_ diff --git a/src/sdk/main/include/SemanticVersion.h b/src/sdk/main/include/SemanticVersion.h index 82007533f..659788061 100644 --- a/src/sdk/main/include/SemanticVersion.h +++ b/src/sdk/main/include/SemanticVersion.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_SEMANTIC_VERSION_H_ -#define HEDERA_SDK_CPP_SEMANTIC_VERSION_H_ +#ifndef HIERO_SDK_CPP_SEMANTIC_VERSION_H_ +#define HIERO_SDK_CPP_SEMANTIC_VERSION_H_ #include #include @@ -31,10 +31,10 @@ namespace proto class SemanticVersion; } -namespace Hedera +namespace Hiero { /** - * Hedera follows semantic versioning for both the HAPI protobufs and the Services software. This type allows the + * Hiero follows semantic versioning for both the HAPI protobufs and the Services software. This type allows the * getVersionInfo query in the NetworkService to return the deployed versions of both protobufs and software on the node * answering the query. */ @@ -126,6 +126,6 @@ class SemanticVersion std::string mBuild; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_SEMANTIC_VERSION_H_ +#endif // HIERO_SDK_CPP_SEMANTIC_VERSION_H_ diff --git a/src/sdk/main/include/StakingInfo.h b/src/sdk/main/include/StakingInfo.h index c3e1c1a2f..f2975ca10 100644 --- a/src/sdk/main/include/StakingInfo.h +++ b/src/sdk/main/include/StakingInfo.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_STAKING_INFO_H_ -#define HEDERA_SDK_CPP_STAKING_INFO_H_ +#ifndef HIERO_SDK_CPP_STAKING_INFO_H_ +#define HIERO_SDK_CPP_STAKING_INFO_H_ #include "AccountId.h" #include "Hbar.h" @@ -35,7 +35,7 @@ namespace proto class StakingInfo; } -namespace Hedera +namespace Hiero { /** * The staking metadata for an account or contract. @@ -122,6 +122,6 @@ class StakingInfo std::optional mStakedNodeId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_STAKING_INFO_H_ +#endif // HIERO_SDK_CPP_STAKING_INFO_H_ diff --git a/src/sdk/main/include/Status.h b/src/sdk/main/include/Status.h index 197cc9cf1..94358fd32 100644 --- a/src/sdk/main/include/Status.h +++ b/src/sdk/main/include/Status.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_STATUS_H_ -#define HEDERA_SDK_CPP_STATUS_H_ +#ifndef HIERO_SDK_CPP_STATUS_H_ +#define HIERO_SDK_CPP_STATUS_H_ #include #include @@ -28,7 +28,7 @@ namespace proto enum ResponseCodeEnum : int; } -namespace Hedera +namespace Hiero { /** * Enumeration of possible transaction status types. @@ -659,7 +659,7 @@ enum class Status /** * For every chunk, the payer account that is part of initialTransactionID must match the Payer Account of this * transaction. The entire initialTransactionID should match the transactionID of the first chunk, but this is not - * checked or enforced by Hedera except when the chunk number is 1. + * checked or enforced by Hiero except when the chunk number is 1. */ INVALID_CHUNK_TRANSACTION_ID, @@ -1709,6 +1709,6 @@ extern const std::unordered_map gStatusToProtob */ [[maybe_unused]] extern const std::unordered_map gStatusToString; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_STATUS_H_ +#endif // HIERO_SDK_CPP_STATUS_H_ diff --git a/src/sdk/main/include/SubscriptionHandle.h b/src/sdk/main/include/SubscriptionHandle.h index a22880499..0eb83570c 100644 --- a/src/sdk/main/include/SubscriptionHandle.h +++ b/src/sdk/main/include/SubscriptionHandle.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,13 +17,13 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_SUBSCRIPTION_HANDLE_H_ -#define HEDERA_SDK_CPP_SUBSCRIPTION_HANDLE_H_ +#ifndef HIERO_SDK_CPP_SUBSCRIPTION_HANDLE_H_ +#define HIERO_SDK_CPP_SUBSCRIPTION_HANDLE_H_ #include #include -namespace Hedera +namespace Hiero { class SubscriptionHandle { @@ -52,6 +52,6 @@ class SubscriptionHandle std::function mUnsubscribeFunc; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_SUBSCRIPTION_HANDLE_H_ +#endif // HIERO_SDK_CPP_SUBSCRIPTION_HANDLE_H_ diff --git a/src/sdk/main/include/SystemDeleteTransaction.h b/src/sdk/main/include/SystemDeleteTransaction.h index e4d76b709..e9e17e669 100644 --- a/src/sdk/main/include/SystemDeleteTransaction.h +++ b/src/sdk/main/include/SystemDeleteTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_SYSTEM_DELETE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_SYSTEM_DELETE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_SYSTEM_DELETE_TRANSACTION_H_ +#define HIERO_SDK_CPP_SYSTEM_DELETE_TRANSACTION_H_ #include "ContractId.h" #include "FileId.h" @@ -32,17 +32,17 @@ class SystemDeleteTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** - * Delete a file or smart contract - can only be done with a Hedera administrative multisignature. When it is deleted, + * Delete a file or smart contract - can only be done with a Hiero administrative multisignature. When it is deleted, * it immediately disappears from the system as seen by the user, but is still stored internally until the expiration * time, at which time it is truly and permanently deleted. Until that time, it can be undeleted by the Hedera * administrative multisignature. When a smart contract is deleted, the cryptocurrency account within it continues to * exist, and is not affected by the expiration time here. * * Transaction Signing Requirements: - * - The Hedera administrative multisignature. + * - The Hiero administrative multisignature. */ class SystemDeleteTransaction : public Transaction { @@ -182,6 +182,6 @@ class SystemDeleteTransaction : public Transaction std::chrono::system_clock::time_point mExpirationTime; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_SYSTEM_DELETE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_SYSTEM_DELETE_TRANSACTION_H_ diff --git a/src/sdk/main/include/SystemUndeleteTransaction.h b/src/sdk/main/include/SystemUndeleteTransaction.h index 41e0531fc..8f8eb8858 100644 --- a/src/sdk/main/include/SystemUndeleteTransaction.h +++ b/src/sdk/main/include/SystemUndeleteTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_SYSTEM_UNDELETE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_SYSTEM_UNDELETE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_SYSTEM_UNDELETE_TRANSACTION_H_ +#define HIERO_SDK_CPP_SYSTEM_UNDELETE_TRANSACTION_H_ #include "ContractId.h" #include "FileId.h" @@ -32,13 +32,13 @@ class SystemUndeleteTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** - * Undelete a file or smart contract that was deleted by SystemDelete; requires a Hedera administrative multisignature. + * Undelete a file or smart contract that was deleted by SystemDelete; requires a Hiero administrative multisignature. * * Transaction Signing Requirements: - * - The Hedera administrative multisignature. + * - The Hiero administrative multisignature. */ class SystemUndeleteTransaction : public Transaction { @@ -157,6 +157,6 @@ class SystemUndeleteTransaction : public Transaction std::optional mContractId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_SYSTEM_UNDELETE_TRANSACTION_H_ \ No newline at end of file +#endif // HIERO_SDK_CPP_SYSTEM_UNDELETE_TRANSACTION_H_ \ No newline at end of file diff --git a/src/sdk/main/include/TokenAirdropTransaction.h b/src/sdk/main/include/TokenAirdropTransaction.h index 546b74cc7..baa9716e8 100644 --- a/src/sdk/main/include/TokenAirdropTransaction.h +++ b/src/sdk/main/include/TokenAirdropTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_AIRDROP_TRANSACTION_H_ -#define HEDERA_SDK_CPP_TOKEN_AIRDROP_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_TOKEN_AIRDROP_TRANSACTION_H_ +#define HIERO_SDK_CPP_TOKEN_AIRDROP_TRANSACTION_H_ #include "TokenNftTransfer.h" #include "TokenTransfer.h" @@ -30,7 +30,7 @@ class TokenAirdropTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** * Airdrop one or more tokens to one or more accounts. @@ -280,6 +280,6 @@ class TokenAirdropTransaction : public Transaction std::vector mNftTransfers; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_AIRDROP_TRANSACTION_H_ \ No newline at end of file +#endif // HIERO_SDK_CPP_TOKEN_AIRDROP_TRANSACTION_H_ \ No newline at end of file diff --git a/src/sdk/main/include/TokenAllowance.h b/src/sdk/main/include/TokenAllowance.h index 77cb5e719..a60ab4101 100644 --- a/src/sdk/main/include/TokenAllowance.h +++ b/src/sdk/main/include/TokenAllowance.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_ALLOWANCE_H_ -#define HEDERA_SDK_CPP_TOKEN_ALLOWANCE_H_ +#ifndef HIERO_SDK_CPP_TOKEN_ALLOWANCE_H_ +#define HIERO_SDK_CPP_TOKEN_ALLOWANCE_H_ #include "AccountId.h" #include "TokenId.h" @@ -33,12 +33,12 @@ namespace proto class TokenAllowance; } -namespace Hedera +namespace Hiero { class Client; } -namespace Hedera +namespace Hiero { /** * An approved allowance of fungible token transfers for a spender. @@ -117,6 +117,6 @@ class TokenAllowance uint64_t mAmount = 0ULL; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_ALLOWANCE_H_ +#endif // HIERO_SDK_CPP_TOKEN_ALLOWANCE_H_ diff --git a/src/sdk/main/include/TokenAssociateTransaction.h b/src/sdk/main/include/TokenAssociateTransaction.h index e4fc86925..5f54b7fd7 100644 --- a/src/sdk/main/include/TokenAssociateTransaction.h +++ b/src/sdk/main/include/TokenAssociateTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_ASSOCIATE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_TOKEN_ASSOCIATE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_TOKEN_ASSOCIATE_TRANSACTION_H_ +#define HIERO_SDK_CPP_TOKEN_ASSOCIATE_TRANSACTION_H_ #include "AccountId.h" #include "TokenId.h" @@ -33,14 +33,14 @@ class TokenAssociateTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** - * Associates the provided Hedera account with the provided Hedera token(s). Hedera accounts must be associated with a + * Associates the provided Hiero account with the provided Hiero token(s). Hiero accounts must be associated with a * fungible or non-fungible token first before you can transfer tokens to that account. When you transfer a custom * fungible or non-fungible token to the alias account ID, the token association step is skipped and the account will * automatically be associated with the token upon creation. In the case of a NON_FUNGIBLE token type, once an account - * is associated, it can hold any number of NFTs (serial numbers) of that token type. The Hedera account that is + * is associated, it can hold any number of NFTs (serial numbers) of that token type. The Hiero account that is * associated with a token is required to sign the transaction. * * - If the provided account is not found, the transaction will resolve to INVALID_ACCOUNT_ID. @@ -175,6 +175,6 @@ class TokenAssociateTransaction : public Transaction std::vector mTokenIds; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_ASSOCIATE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_TOKEN_ASSOCIATE_TRANSACTION_H_ diff --git a/src/sdk/main/include/TokenAssociation.h b/src/sdk/main/include/TokenAssociation.h index 423482f87..e35f11c28 100644 --- a/src/sdk/main/include/TokenAssociation.h +++ b/src/sdk/main/include/TokenAssociation.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_ASSOCIATION_H_ -#define HEDERA_SDK_CPP_TOKEN_ASSOCIATION_H_ +#ifndef HIERO_SDK_CPP_TOKEN_ASSOCIATION_H_ +#define HIERO_SDK_CPP_TOKEN_ASSOCIATION_H_ #include "AccountId.h" #include "TokenId.h" @@ -34,7 +34,7 @@ namespace proto class TokenAssociation; } -namespace Hedera +namespace Hiero { /** * A helper class that represents an account's association with a particular token. @@ -99,6 +99,6 @@ class TokenAssociation TokenId mTokenId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_ASSOCIATION_H_ +#endif // HIERO_SDK_CPP_TOKEN_ASSOCIATION_H_ diff --git a/src/sdk/main/include/TokenBurnTransaction.h b/src/sdk/main/include/TokenBurnTransaction.h index 5cfd415c2..63e720df4 100644 --- a/src/sdk/main/include/TokenBurnTransaction.h +++ b/src/sdk/main/include/TokenBurnTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_BURN_TRANSACTION_H_ -#define HEDERA_SDK_CPP_TOKEN_BURN_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_TOKEN_BURN_TRANSACTION_H_ +#define HIERO_SDK_CPP_TOKEN_BURN_TRANSACTION_H_ #include "TokenId.h" #include "Transaction.h" @@ -32,7 +32,7 @@ class TokenBurnTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** * Burns fungible and non-fungible tokens owned by the treasury account. If no supply key is defined, this transaction @@ -180,6 +180,6 @@ class TokenBurnTransaction : public Transaction std::vector mSerialNumbers; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_BURN_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_TOKEN_BURN_TRANSACTION_H_ diff --git a/src/sdk/main/include/TokenCancelAirdropTransaction.h b/src/sdk/main/include/TokenCancelAirdropTransaction.h index c90846b4c..9ef4f069f 100644 --- a/src/sdk/main/include/TokenCancelAirdropTransaction.h +++ b/src/sdk/main/include/TokenCancelAirdropTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_CANCEL_AIRDROP_TRANSACTION_H_ -#define HEDERA_SDK_CPP_TOKEN_CANCEL_AIRDROP_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_TOKEN_CANCEL_AIRDROP_TRANSACTION_H_ +#define HIERO_SDK_CPP_TOKEN_CANCEL_AIRDROP_TRANSACTION_H_ #include "PendingAirdropId.h" #include "Transaction.h" @@ -29,7 +29,7 @@ class TokenCancelAirdropTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** * Token cancel airdrop @@ -139,6 +139,6 @@ class TokenCancelAirdropTransaction : public Transaction mPendingAirdrops; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_CANCEL_AIRDROP_TRANSACTION_H_ \ No newline at end of file +#endif // HIERO_SDK_CPP_TOKEN_CANCEL_AIRDROP_TRANSACTION_H_ \ No newline at end of file diff --git a/src/sdk/main/include/TokenClaimAirdropTransaction.h b/src/sdk/main/include/TokenClaimAirdropTransaction.h index b4ad6f924..2cb508555 100644 --- a/src/sdk/main/include/TokenClaimAirdropTransaction.h +++ b/src/sdk/main/include/TokenClaimAirdropTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_CLAIM_AIRDROP_TRANSACTION_H_ -#define HEDERA_SDK_CPP_TOKEN_CLAIM_AIRDROP_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_TOKEN_CLAIM_AIRDROP_TRANSACTION_H_ +#define HIERO_SDK_CPP_TOKEN_CLAIM_AIRDROP_TRANSACTION_H_ #include "PendingAirdropId.h" #include "Transaction.h" @@ -29,7 +29,7 @@ class TokenClaimAirdropTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** * Token claim airdrop @@ -143,6 +143,6 @@ class TokenClaimAirdropTransaction : public Transaction mPendingAirdrops; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_CLAIM_AIRDROP_TRANSACTION_H_ \ No newline at end of file +#endif // HIERO_SDK_CPP_TOKEN_CLAIM_AIRDROP_TRANSACTION_H_ \ No newline at end of file diff --git a/src/sdk/main/include/TokenCreateTransaction.h b/src/sdk/main/include/TokenCreateTransaction.h index 161d3c684..4ae487225 100644 --- a/src/sdk/main/include/TokenCreateTransaction.h +++ b/src/sdk/main/include/TokenCreateTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_CREATE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_TOKEN_CREATE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_TOKEN_CREATE_TRANSACTION_H_ +#define HIERO_SDK_CPP_TOKEN_CREATE_TRANSACTION_H_ #include "AccountId.h" #include "CustomFee.h" @@ -41,11 +41,11 @@ class TokenCreateTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** - * Create a new fungible or non-fungible token (NFT) on the Hedera network. After you submit the transaction to the - * Hedera network, you can obtain the new token ID by requesting the receipt. + * Create a new fungible or non-fungible token (NFT) on the Hiero network. After you submit the transaction to the + * Hiero network, you can obtain the new token ID by requesting the receipt. * * For non-fungible tokens, the token ID represents an NFT class. Once the token is created, you will have to mint each * NFT using the token mint operation. @@ -539,7 +539,7 @@ class TokenCreateTransaction : public Transaction std::shared_ptr mSupplyKey = nullptr; /** - * The default Freeze status (frozen or unfrozen) of Hedera accounts relative to this token. If true, an account must + * The default Freeze status (frozen or unfrozen) of Hiero accounts relative to this token. If true, an account must * be unfrozen before it can receive the token. */ bool mFreezeDefault = false; @@ -610,6 +610,6 @@ class TokenCreateTransaction : public Transaction std::shared_ptr mMetadataKey = nullptr; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_CREATE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_TOKEN_CREATE_TRANSACTION_H_ diff --git a/src/sdk/main/include/TokenDeleteTransaction.h b/src/sdk/main/include/TokenDeleteTransaction.h index 4d5333afb..d8c0cba1d 100644 --- a/src/sdk/main/include/TokenDeleteTransaction.h +++ b/src/sdk/main/include/TokenDeleteTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_DELETE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_TOKEN_DELETE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_TOKEN_DELETE_TRANSACTION_H_ +#define HIERO_SDK_CPP_TOKEN_DELETE_TRANSACTION_H_ #include "TokenId.h" #include "Transaction.h" @@ -31,7 +31,7 @@ class TokenDeleteTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** * Deleting a token marks a token as deleted, though it will remain in the ledger. The operation must be signed by the @@ -138,6 +138,6 @@ class TokenDeleteTransaction : public Transaction std::optional mTokenId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_DELETE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_TOKEN_DELETE_TRANSACTION_H_ diff --git a/src/sdk/main/include/TokenDissociateTransaction.h b/src/sdk/main/include/TokenDissociateTransaction.h index 6fc16558e..8511c3ec9 100644 --- a/src/sdk/main/include/TokenDissociateTransaction.h +++ b/src/sdk/main/include/TokenDissociateTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_DISSOCIATE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_TOKEN_DISSOCIATE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_TOKEN_DISSOCIATE_TRANSACTION_H_ +#define HIERO_SDK_CPP_TOKEN_DISSOCIATE_TRANSACTION_H_ #include "AccountId.h" #include "TokenId.h" @@ -33,10 +33,10 @@ class TokenDissociateTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** - * Disassociates the provided Hedera account from the provided Hedera tokens. This transaction must be signed by the + * Disassociates the provided Hiero account from the provided Hiero tokens. This transaction must be signed by the * provided account's key. Once the association is removed, no token related operation can be performed to that account. * AccountBalanceQuery and AccountInfoQuery will not return anything related to the token that was disassociated. * @@ -170,6 +170,6 @@ class TokenDissociateTransaction : public Transaction mTokenIds; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_DISSOCIATE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_TOKEN_DISSOCIATE_TRANSACTION_H_ diff --git a/src/sdk/main/include/TokenFeeScheduleUpdateTransaction.h b/src/sdk/main/include/TokenFeeScheduleUpdateTransaction.h index 29dd31954..b1f003fc4 100644 --- a/src/sdk/main/include/TokenFeeScheduleUpdateTransaction.h +++ b/src/sdk/main/include/TokenFeeScheduleUpdateTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_FEE_SCHEDULE_UPDATE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_TOKEN_FEE_SCHEDULE_UPDATE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_TOKEN_FEE_SCHEDULE_UPDATE_TRANSACTION_H_ +#define HIERO_SDK_CPP_TOKEN_FEE_SCHEDULE_UPDATE_TRANSACTION_H_ #include "CustomFee.h" #include "TokenId.h" @@ -33,7 +33,7 @@ class TokenFeeScheduleUpdateTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** * Update the custom fees for a given token. If the token does not have a fee schedule, the network response returned @@ -158,6 +158,6 @@ class TokenFeeScheduleUpdateTransaction : public Transaction> mCustomFees; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_FEE_SCHEDULE_UPDATE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_TOKEN_FEE_SCHEDULE_UPDATE_TRANSACTION_H_ diff --git a/src/sdk/main/include/TokenFreezeTransaction.h b/src/sdk/main/include/TokenFreezeTransaction.h index 803104de5..4ea918f35 100644 --- a/src/sdk/main/include/TokenFreezeTransaction.h +++ b/src/sdk/main/include/TokenFreezeTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_FREEZE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_TOKEN_FREEZE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_TOKEN_FREEZE_TRANSACTION_H_ +#define HIERO_SDK_CPP_TOKEN_FREEZE_TRANSACTION_H_ #include "AccountId.h" #include "TokenId.h" @@ -30,7 +30,7 @@ class TokenFreezeAccountTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** * Freezes transfers of the specified token for the account. The transaction must be signed by the token's freeze key. @@ -162,6 +162,6 @@ class TokenFreezeTransaction : public Transaction TokenId mTokenId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_FREEZE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_TOKEN_FREEZE_TRANSACTION_H_ diff --git a/src/sdk/main/include/TokenGrantKycTransaction.h b/src/sdk/main/include/TokenGrantKycTransaction.h index a177a4600..142310970 100644 --- a/src/sdk/main/include/TokenGrantKycTransaction.h +++ b/src/sdk/main/include/TokenGrantKycTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_GRANT_KYC_TRANSACTION_H_ -#define HEDERA_SDK_CPP_TOKEN_GRANT_KYC_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_TOKEN_GRANT_KYC_TRANSACTION_H_ +#define HIERO_SDK_CPP_TOKEN_GRANT_KYC_TRANSACTION_H_ #include "AccountId.h" #include "TokenId.h" @@ -33,10 +33,10 @@ class TokenGrantKycTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** - * Grants KYC to the Hedera accounts for the given Hedera token. This transaction must be signed by the token's KYC Key. + * Grants KYC to the Hiero accounts for the given Hiero token. This transaction must be signed by the token's KYC Key. * * - If the provided account is not found, the transaction will resolve to INVALID_ACCOUNT_ID. * - If the provided account has been deleted, the transaction will resolve to ACCOUNT_DELETED. @@ -165,6 +165,6 @@ class TokenGrantKycTransaction : public Transaction TokenId mTokenId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_GRANT_KYC_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_TOKEN_GRANT_KYC_TRANSACTION_H_ diff --git a/src/sdk/main/include/TokenId.h b/src/sdk/main/include/TokenId.h index 65c539622..92ac31f64 100644 --- a/src/sdk/main/include/TokenId.h +++ b/src/sdk/main/include/TokenId.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_ID_H_ -#define HEDERA_SDK_CPP_TOKEN_ID_H_ +#ifndef HIERO_SDK_CPP_TOKEN_ID_H_ +#define HIERO_SDK_CPP_TOKEN_ID_H_ #include #include @@ -31,16 +31,16 @@ namespace proto class TokenID; } -namespace Hedera +namespace Hiero { class Client; class NftId; } -namespace Hedera +namespace Hiero { /** - * The ID for a token on Hedera. + * The ID for a token on Hiero. */ class TokenId { @@ -180,19 +180,19 @@ class TokenId mutable std::string mChecksum; }; -} // namespace Hedera +} // namespace Hiero namespace std { template<> -struct hash +struct hash { /** * Operator override to enable use of TokenId as map key */ - size_t operator()(const Hedera::TokenId& id) const { return hash()(id.toString()); } + size_t operator()(const Hiero::TokenId& id) const { return hash()(id.toString()); } }; } // namespace std -#endif // HEDERA_SDK_CPP_TOKEN_ID_H_ +#endif // HIERO_SDK_CPP_TOKEN_ID_H_ diff --git a/src/sdk/main/include/TokenInfo.h b/src/sdk/main/include/TokenInfo.h index 71c1ceec4..7fcf8ccaf 100644 --- a/src/sdk/main/include/TokenInfo.h +++ b/src/sdk/main/include/TokenInfo.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_INFO_H_ -#define HEDERA_SDK_CPP_TOKEN_INFO_H_ +#ifndef HIERO_SDK_CPP_TOKEN_INFO_H_ +#define HIERO_SDK_CPP_TOKEN_INFO_H_ #include "AccountId.h" #include "CustomFee.h" @@ -42,10 +42,10 @@ namespace proto class TokenInfo; } -namespace Hedera +namespace Hiero { /** - * Response from a Hedera network when the client sends an TokenInfoQuery. + * Response from a Hiero network when the client sends an TokenInfoQuery. */ class TokenInfo { @@ -155,14 +155,14 @@ class TokenInfo std::shared_ptr mSupplyKey = nullptr; /** - * The default freeze status (FreezeNotApplicable, Frozen, or Unfrozen) of Hedera accounts relative to this token. + * The default freeze status (FreezeNotApplicable, Frozen, or Unfrozen) of Hiero accounts relative to this token. * Uninitialized if mFreezeKey is empty, \c TRUE if mFreezeKey is set and mDefaultFreeze is set to true, or \c FALSE * if mFreezeKey is set and mDefaultFreeze is set to false. */ std::optional mDefaultFreezeStatus; /** - * The default KYC status (KycNotApplicable or Revoked) of Hedera accounts relative to this token. KycNotApplicable if + * The default KYC status (KycNotApplicable or Revoked) of Hiero accounts relative to this token. KycNotApplicable if * mKycKey is not set, otherwise \c FALSE (no way to have the default KYC status be Granted (or \c TRUE)). */ std::optional mDefaultKycStatus; @@ -246,6 +246,6 @@ class TokenInfo std::shared_ptr mMetadataKey = nullptr; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_INFO_H_ +#endif // HIERO_SDK_CPP_TOKEN_INFO_H_ diff --git a/src/sdk/main/include/TokenInfoQuery.h b/src/sdk/main/include/TokenInfoQuery.h index adb324792..569872da1 100644 --- a/src/sdk/main/include/TokenInfoQuery.h +++ b/src/sdk/main/include/TokenInfoQuery.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,19 +17,19 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_INFO_QUERY_H_ -#define HEDERA_SDK_CPP_TOKEN_INFO_QUERY_H_ +#ifndef HIERO_SDK_CPP_TOKEN_INFO_QUERY_H_ +#define HIERO_SDK_CPP_TOKEN_INFO_QUERY_H_ #include "Query.h" #include "TokenId.h" -namespace Hedera +namespace Hiero { class TokenInfo; class TransactionRecord; } -namespace Hedera +namespace Hiero { /** * A query that gets information about a fungible or non-fungible token instance. @@ -107,6 +107,6 @@ class TokenInfoQuery : public Query TokenId mTokenId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_INFO_QUERY_H_ +#endif // HIERO_SDK_CPP_TOKEN_INFO_QUERY_H_ diff --git a/src/sdk/main/include/TokenKeyValidation.h b/src/sdk/main/include/TokenKeyValidation.h index a297c989e..3b1e8e121 100644 --- a/src/sdk/main/include/TokenKeyValidation.h +++ b/src/sdk/main/include/TokenKeyValidation.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_KEY_VALIDATION_TYPE_H_ -#define HEDERA_SDK_CPP_TOKEN_KEY_VALIDATION_TYPE_H_ +#ifndef HIERO_SDK_CPP_TOKEN_KEY_VALIDATION_TYPE_H_ +#define HIERO_SDK_CPP_TOKEN_KEY_VALIDATION_TYPE_H_ #include #include @@ -28,7 +28,7 @@ namespace proto enum TokenKeyValidation : int; } -namespace Hedera +namespace Hiero { /** * Types of validation strategies for token keys. @@ -63,6 +63,6 @@ extern const std::unordered_map */ [[maybe_unused]] extern const std::unordered_map gTokenKeyValidationToString; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_KEY_VALIDATION_TYPE_H_ +#endif // HIERO_SDK_CPP_TOKEN_KEY_VALIDATION_TYPE_H_ diff --git a/src/sdk/main/include/TokenMintTransaction.h b/src/sdk/main/include/TokenMintTransaction.h index 009768a90..9c0e74797 100644 --- a/src/sdk/main/include/TokenMintTransaction.h +++ b/src/sdk/main/include/TokenMintTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_MINT_TRANSACTION_H_ -#define HEDERA_SDK_CPP_TOKEN_MINT_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_TOKEN_MINT_TRANSACTION_H_ +#define HIERO_SDK_CPP_TOKEN_MINT_TRANSACTION_H_ #include "TokenId.h" #include "Transaction.h" @@ -33,7 +33,7 @@ class TokenMintTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** * Minting fungible token allows you to increase the total supply of the token. Minting a non-fungible token creates an @@ -201,6 +201,6 @@ class TokenMintTransaction : public Transaction std::vector> mMetadataList; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_MINT_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_TOKEN_MINT_TRANSACTION_H_ diff --git a/src/sdk/main/include/TokenNftAllowance.h b/src/sdk/main/include/TokenNftAllowance.h index 1c99a4bd4..8c6fdfc99 100644 --- a/src/sdk/main/include/TokenNftAllowance.h +++ b/src/sdk/main/include/TokenNftAllowance.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_NFT_ALLOWANCE_H_ -#define HEDERA_SDK_CPP_TOKEN_NFT_ALLOWANCE_H_ +#ifndef HIERO_SDK_CPP_TOKEN_NFT_ALLOWANCE_H_ +#define HIERO_SDK_CPP_TOKEN_NFT_ALLOWANCE_H_ #include "AccountId.h" #include "TokenId.h" @@ -35,7 +35,7 @@ class NftAllowance; class NftRemoveAllowance; } -namespace Hedera +namespace Hiero { /** * An approved allowance of NFT transfers for a spender. @@ -142,6 +142,6 @@ class TokenNftAllowance std::optional mDelegatingSpenderAccountId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_NFT_ALLOWANCE_H_ +#endif // HIERO_SDK_CPP_TOKEN_NFT_ALLOWANCE_H_ diff --git a/src/sdk/main/include/TokenNftInfo.h b/src/sdk/main/include/TokenNftInfo.h index 66a94c242..769283121 100644 --- a/src/sdk/main/include/TokenNftInfo.h +++ b/src/sdk/main/include/TokenNftInfo.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_NFT_INFO_H_ -#define HEDERA_SDK_CPP_TOKEN_NFT_INFO_H_ +#ifndef HIERO_SDK_CPP_TOKEN_NFT_INFO_H_ +#define HIERO_SDK_CPP_TOKEN_NFT_INFO_H_ #include "AccountId.h" #include "LedgerId.h" @@ -37,10 +37,10 @@ namespace proto class TokenNftInfo; } -namespace Hedera +namespace Hiero { /** - * Response from a Hedera network when the client sends an TokenNftInfoQuery. + * Response from a Hiero network when the client sends an TokenNftInfoQuery. */ class TokenNftInfo { @@ -122,6 +122,6 @@ class TokenNftInfo std::optional mSpenderId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_NFT_INFO_H_ +#endif // HIERO_SDK_CPP_TOKEN_NFT_INFO_H_ diff --git a/src/sdk/main/include/TokenNftInfoQuery.h b/src/sdk/main/include/TokenNftInfoQuery.h index 3d6d2211f..19493c422 100644 --- a/src/sdk/main/include/TokenNftInfoQuery.h +++ b/src/sdk/main/include/TokenNftInfoQuery.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,19 +17,19 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_NFT_INFO_QUERY_H_ -#define HEDERA_SDK_CPP_TOKEN_NFT_INFO_QUERY_H_ +#ifndef HIERO_SDK_CPP_TOKEN_NFT_INFO_QUERY_H_ +#define HIERO_SDK_CPP_TOKEN_NFT_INFO_QUERY_H_ #include "NftId.h" #include "Query.h" -namespace Hedera +namespace Hiero { class TokenNftInfo; class TransactionRecord; } -namespace Hedera +namespace Hiero { /** * A query that returns information about a non-fungible token (NFT). You request the info for an NFT by specifying the @@ -112,6 +112,6 @@ class TokenNftInfoQuery : public Query NftId mNftId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_NFT_INFO_QUERY_H_ +#endif // HIERO_SDK_CPP_TOKEN_NFT_INFO_QUERY_H_ diff --git a/src/sdk/main/include/TokenNftTransfer.h b/src/sdk/main/include/TokenNftTransfer.h index 53f82ac49..f2adc8c6d 100644 --- a/src/sdk/main/include/TokenNftTransfer.h +++ b/src/sdk/main/include/TokenNftTransfer.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_NFT_TRANSFER_H_ -#define HEDERA_SDK_CPP_TOKEN_NFT_TRANSFER_H_ +#ifndef HIERO_SDK_CPP_TOKEN_NFT_TRANSFER_H_ +#define HIERO_SDK_CPP_TOKEN_NFT_TRANSFER_H_ #include "AccountId.h" #include "NftId.h" @@ -34,7 +34,7 @@ namespace proto class NftTransfer; } -namespace Hedera +namespace Hiero { /** * A sender account, a receiver account, and the serial number of an NFT of a Token with NON_FUNGIBLE_UNIQUE type. When @@ -133,6 +133,6 @@ class TokenNftTransfer bool mIsApproval = false; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_NFT_TRANSFER_H_ +#endif // HIERO_SDK_CPP_TOKEN_NFT_TRANSFER_H_ diff --git a/src/sdk/main/include/TokenPauseTransaction.h b/src/sdk/main/include/TokenPauseTransaction.h index 8a817955e..5b1dd500b 100644 --- a/src/sdk/main/include/TokenPauseTransaction.h +++ b/src/sdk/main/include/TokenPauseTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_PAUSE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_TOKEN_PAUSE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_TOKEN_PAUSE_TRANSACTION_H_ +#define HIERO_SDK_CPP_TOKEN_PAUSE_TRANSACTION_H_ #include "TokenId.h" #include "Transaction.h" @@ -29,7 +29,7 @@ class TokenPauseTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** * A token pause transaction prevents the token from being involved in any kind of operation. The token's pause key is @@ -148,6 +148,6 @@ class TokenPauseTransaction : public Transaction TokenId mTokenId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_PAUSE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_TOKEN_PAUSE_TRANSACTION_H_ diff --git a/src/sdk/main/include/TokenRejectFlow.h b/src/sdk/main/include/TokenRejectFlow.h index 2a34cf91d..e77cde9fe 100644 --- a/src/sdk/main/include/TokenRejectFlow.h +++ b/src/sdk/main/include/TokenRejectFlow.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,21 +17,21 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_REJECT_FLOW_H_ -#define HEDERA_SDK_CPP_TOKEN_REJECT_FLOW_H_ +#ifndef HIERO_SDK_CPP_TOKEN_REJECT_FLOW_H_ +#define HIERO_SDK_CPP_TOKEN_REJECT_FLOW_H_ #include "AccountId.h" #include "NftId.h" #include "TokenId.h" #include "TransactionResponse.h" -namespace Hedera +namespace Hiero { class Client; class PrivateKey; } -namespace Hedera +namespace Hiero { /** * Reject undesired token(s) and dissociate in a single flow. @@ -212,6 +212,6 @@ class TokenRejectFlow std::vector mNfts; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_REJECT_FLOW_H_ +#endif // HIERO_SDK_CPP_TOKEN_REJECT_FLOW_H_ diff --git a/src/sdk/main/include/TokenRejectTransaction.h b/src/sdk/main/include/TokenRejectTransaction.h index 6dfe1c5de..d4cee0997 100644 --- a/src/sdk/main/include/TokenRejectTransaction.h +++ b/src/sdk/main/include/TokenRejectTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_REJECT_TRANSACTION_H_ -#define HEDERA_SDK_CPP_TOKEN_REJECT_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_TOKEN_REJECT_TRANSACTION_H_ +#define HIERO_SDK_CPP_TOKEN_REJECT_TRANSACTION_H_ #include "AccountId.h" #include "NftId.h" @@ -32,7 +32,7 @@ class TransactionBody; class TokenReference; } -namespace Hedera +namespace Hiero { /** * Reject undesired token(s).Transfer one or more token balances held by the requesting account to the treasury for each @@ -183,6 +183,6 @@ class TokenRejectTransaction : public Transaction std::vector mNfts; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_REJECT_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_TOKEN_REJECT_TRANSACTION_H_ diff --git a/src/sdk/main/include/TokenRelationship.h b/src/sdk/main/include/TokenRelationship.h index bcd22cd03..334e9d9fb 100644 --- a/src/sdk/main/include/TokenRelationship.h +++ b/src/sdk/main/include/TokenRelationship.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_RELATIONSHIP_H_ -#define HEDERA_SDK_CPP_TOKEN_RELATIONSHIP_H_ +#ifndef HIERO_SDK_CPP_TOKEN_RELATIONSHIP_H_ +#define HIERO_SDK_CPP_TOKEN_RELATIONSHIP_H_ #include "TokenId.h" @@ -33,7 +33,7 @@ namespace proto class TokenRelationship; } -namespace Hedera +namespace Hiero { /** * Represents the relationship between an account and a token. @@ -160,6 +160,6 @@ class TokenRelationship */ proto::TokenFreezeStatus getFreezeStatus() const; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_RELATIONSHIP_H_ +#endif // HIERO_SDK_CPP_TOKEN_RELATIONSHIP_H_ diff --git a/src/sdk/main/include/TokenRevokeKycTransaction.h b/src/sdk/main/include/TokenRevokeKycTransaction.h index 9011d3d7d..d0ce23605 100644 --- a/src/sdk/main/include/TokenRevokeKycTransaction.h +++ b/src/sdk/main/include/TokenRevokeKycTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_REVOKE_KYC_TRANSACTION_H_ -#define HEDERA_SDK_CPP_TOKEN_REVOKE_KYC_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_TOKEN_REVOKE_KYC_TRANSACTION_H_ +#define HIERO_SDK_CPP_TOKEN_REVOKE_KYC_TRANSACTION_H_ #include "AccountId.h" #include "TokenId.h" @@ -33,10 +33,10 @@ class TokenRevokeKycTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** - * Revokes the KYC flag to the Hedera account for the given Hedera token. This transaction must be signed by the token's + * Revokes the KYC flag to the Hiero account for the given Hiero token. This transaction must be signed by the token's * KYC Key. If this key is not set, you can submit a TokenUpdateTransaction to provide the token with this key. * * - If the provided account is not found, the transaction will resolve to INVALID_ACCOUNT_ID. @@ -166,6 +166,6 @@ class TokenRevokeKycTransaction : public Transaction TokenId mTokenId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_REVOKE_KYC_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_TOKEN_REVOKE_KYC_TRANSACTION_H_ diff --git a/src/sdk/main/include/TokenSupplyType.h b/src/sdk/main/include/TokenSupplyType.h index 4b73d718c..7a2cd8540 100644 --- a/src/sdk/main/include/TokenSupplyType.h +++ b/src/sdk/main/include/TokenSupplyType.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_SUPPLY_TYPE_H_ -#define HEDERA_SDK_CPP_TOKEN_SUPPLY_TYPE_H_ +#ifndef HIERO_SDK_CPP_TOKEN_SUPPLY_TYPE_H_ +#define HIERO_SDK_CPP_TOKEN_SUPPLY_TYPE_H_ #include #include @@ -28,7 +28,7 @@ namespace proto enum TokenSupplyType : int; } -namespace Hedera +namespace Hiero { /** * Possible token supply types (IWA Compatibility). Indicates how many tokens can have during its lifetime. @@ -60,6 +60,6 @@ extern const std::unordered_map gTokenS */ [[maybe_unused]] extern const std::unordered_map gTokenSupplyTypeToString; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_SUPPLY_TYPE_H_ +#endif // HIERO_SDK_CPP_TOKEN_SUPPLY_TYPE_H_ diff --git a/src/sdk/main/include/TokenTransfer.h b/src/sdk/main/include/TokenTransfer.h index 2c803039a..1f8471cbf 100644 --- a/src/sdk/main/include/TokenTransfer.h +++ b/src/sdk/main/include/TokenTransfer.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_TRANSFER_H_ -#define HEDERA_SDK_CPP_TOKEN_TRANSFER_H_ +#ifndef HIERO_SDK_CPP_TOKEN_TRANSFER_H_ +#define HIERO_SDK_CPP_TOKEN_TRANSFER_H_ #include "AccountId.h" #include "TokenId.h" @@ -34,12 +34,12 @@ namespace proto class AccountAmount; } -namespace Hedera +namespace Hiero { class Client; } -namespace Hedera +namespace Hiero { /** * A token ID and list of amounts representing the transferred out (negative) or into (positive) amounts, represented @@ -155,6 +155,6 @@ class TokenTransfer bool mIsApproval = false; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_TRANSFER_H_ +#endif // HIERO_SDK_CPP_TOKEN_TRANSFER_H_ diff --git a/src/sdk/main/include/TokenType.h b/src/sdk/main/include/TokenType.h index e86dc2795..796088dd7 100644 --- a/src/sdk/main/include/TokenType.h +++ b/src/sdk/main/include/TokenType.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_TYPE_H_ -#define HEDERA_SDK_CPP_TOKEN_TYPE_H_ +#ifndef HIERO_SDK_CPP_TOKEN_TYPE_H_ +#define HIERO_SDK_CPP_TOKEN_TYPE_H_ #include #include @@ -28,7 +28,7 @@ namespace proto enum TokenType : int; } -namespace Hedera +namespace Hiero { /** * Possible token types (IWA Compatibility). @@ -42,7 +42,7 @@ enum class 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. + * a balance or quantity to a given Hiero account. */ FUNGIBLE_COMMON, /** @@ -67,6 +67,6 @@ extern const std::unordered_map gTokenTypeToProtobu */ [[maybe_unused]] extern const std::unordered_map gTokenTypeToString; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_TYPE_H_ +#endif // HIERO_SDK_CPP_TOKEN_TYPE_H_ diff --git a/src/sdk/main/include/TokenUnfreezeTransaction.h b/src/sdk/main/include/TokenUnfreezeTransaction.h index c0ebda307..7604728a6 100644 --- a/src/sdk/main/include/TokenUnfreezeTransaction.h +++ b/src/sdk/main/include/TokenUnfreezeTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_UNFREEZE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_TOKEN_UNFREEZE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_TOKEN_UNFREEZE_TRANSACTION_H_ +#define HIERO_SDK_CPP_TOKEN_UNFREEZE_TRANSACTION_H_ #include "AccountId.h" #include "TokenId.h" @@ -30,7 +30,7 @@ class TokenUnfreezeAccountTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** * Unfreezes transfers of the specified token for the account. The transaction must be signed by the token's freeze key. @@ -163,6 +163,6 @@ class TokenUnfreezeTransaction : public Transaction TokenId mTokenId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_UNFREEZE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_TOKEN_UNFREEZE_TRANSACTION_H_ diff --git a/src/sdk/main/include/TokenUnpauseTransaction.h b/src/sdk/main/include/TokenUnpauseTransaction.h index 463fac3ac..bb07d6e9f 100644 --- a/src/sdk/main/include/TokenUnpauseTransaction.h +++ b/src/sdk/main/include/TokenUnpauseTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_UNPAUSE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_TOKEN_UNPAUSE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_TOKEN_UNPAUSE_TRANSACTION_H_ +#define HIERO_SDK_CPP_TOKEN_UNPAUSE_TRANSACTION_H_ #include "TokenId.h" #include "Transaction.h" @@ -29,7 +29,7 @@ class TokenUnpauseTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** * A token unpause transaction is a transaction that unpauses the token that was previously disabled from participating @@ -132,6 +132,6 @@ class TokenUnpauseTransaction : public Transaction TokenId mTokenId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_UNPAUSE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_TOKEN_UNPAUSE_TRANSACTION_H_ diff --git a/src/sdk/main/include/TokenUpdateNftsTransaction.h b/src/sdk/main/include/TokenUpdateNftsTransaction.h index f4d8d4410..759eb40f5 100644 --- a/src/sdk/main/include/TokenUpdateNftsTransaction.h +++ b/src/sdk/main/include/TokenUpdateNftsTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_UPDATE_NFTS_TRANSACTION_H_ -#define HEDERA_SDK_CPP_TOKEN_UPDATE_NFTS_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_TOKEN_UPDATE_NFTS_TRANSACTION_H_ +#define HIERO_SDK_CPP_TOKEN_UPDATE_NFTS_TRANSACTION_H_ #include "AccountId.h" #include "TokenId.h" @@ -33,7 +33,7 @@ class TokenUpdateNftsTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** * At consensus, updates an already created Non Fungible Token to the given values. @@ -179,6 +179,6 @@ class TokenUpdateNftsTransaction : public Transaction TokenKeyValidation mKeyVerificationMode = TokenKeyValidation::FULL_VALIDATION; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_UPDATE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_TOKEN_UPDATE_TRANSACTION_H_ diff --git a/src/sdk/main/include/TokenWipeTransaction.h b/src/sdk/main/include/TokenWipeTransaction.h index 72706bc3d..10b204cb4 100644 --- a/src/sdk/main/include/TokenWipeTransaction.h +++ b/src/sdk/main/include/TokenWipeTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOKEN_WIPE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_TOKEN_WIPE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_TOKEN_WIPE_TRANSACTION_H_ +#define HIERO_SDK_CPP_TOKEN_WIPE_TRANSACTION_H_ #include "AccountId.h" #include "TokenId.h" @@ -33,10 +33,10 @@ class TokenWipeAccountTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** - * Wipes the provided amount of fungible or non-fungible tokens from the specified Hedera account. This transaction does + * Wipes the provided amount of fungible or non-fungible tokens from the specified Hiero account. This transaction does * not delete tokens from the treasury account. This transaction must be signed by the token's Wipe Key. Wiping an * account's tokens burns the tokens and decreases the total supply. * @@ -218,6 +218,6 @@ class TokenWipeTransaction : public Transaction std::vector mSerialNumbers; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOKEN_WIPE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_TOKEN_WIPE_TRANSACTION_H_ diff --git a/src/sdk/main/include/TopicCreateTransaction.h b/src/sdk/main/include/TopicCreateTransaction.h index e60afc588..206ee6a32 100644 --- a/src/sdk/main/include/TopicCreateTransaction.h +++ b/src/sdk/main/include/TopicCreateTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOPIC_CREATE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_TOPIC_CREATE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_TOPIC_CREATE_TRANSACTION_H_ +#define HIERO_SDK_CPP_TOPIC_CREATE_TRANSACTION_H_ #include "AccountId.h" #include "Defaults.h" @@ -37,10 +37,10 @@ class ConsensusCreateTopicTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** - * A transaction that creates a new topic recognized by the Hedera network. The newly generated topic can be referenced + * A transaction that creates a new topic recognized by the Hiero network. The newly generated topic can be referenced * by its topic ID. The topic ID is used to identify a unique topic to which to submit messages. You can obtain the new * topic ID by requesting the receipt of the transaction. All messages within a topic are sequenced with respect to one * another and are provided a unique sequence number. @@ -233,6 +233,6 @@ class TopicCreateTransaction : public Transaction std::optional mAutoRenewAccountId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOPIC_CREATE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_TOPIC_CREATE_TRANSACTION_H_ diff --git a/src/sdk/main/include/TopicDeleteTransaction.h b/src/sdk/main/include/TopicDeleteTransaction.h index d723f836d..a829f48df 100644 --- a/src/sdk/main/include/TopicDeleteTransaction.h +++ b/src/sdk/main/include/TopicDeleteTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOPIC_DELETE_TRANSACTION_H_ -#define HEDERA_SDK_CPP_TOPIC_DELETE_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_TOPIC_DELETE_TRANSACTION_H_ +#define HIERO_SDK_CPP_TOPIC_DELETE_TRANSACTION_H_ #include "TopicId.h" #include "Transaction.h" @@ -31,10 +31,10 @@ class ConsensusDeleteTopicTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** - * A transaction that deletes a topic from the Hedera network. Once a topic is deleted, the topic cannot be recovered to + * A transaction that deletes a topic from the Hiero network. Once a topic is deleted, the topic cannot be recovered to * receive messages and all submitMessage calls will fail. Older messages can still be accessed, even after the topic is * deleted, via the mirror node. * @@ -136,6 +136,6 @@ class TopicDeleteTransaction : public Transaction std::optional mTopicId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOPIC_DELETE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_TOPIC_DELETE_TRANSACTION_H_ diff --git a/src/sdk/main/include/TopicId.h b/src/sdk/main/include/TopicId.h index 917814823..e30f26526 100644 --- a/src/sdk/main/include/TopicId.h +++ b/src/sdk/main/include/TopicId.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOPIC_ID_H_ -#define HEDERA_SDK_CPP_TOPIC_ID_H_ +#ifndef HIERO_SDK_CPP_TOPIC_ID_H_ +#define HIERO_SDK_CPP_TOPIC_ID_H_ #include #include @@ -31,15 +31,15 @@ namespace proto class TopicID; } -namespace Hedera +namespace Hiero { class Client; } -namespace Hedera +namespace Hiero { /** - * The ID for a topic on Hedera. + * The ID for a topic on Hiero. */ class TopicId { @@ -178,19 +178,19 @@ class TopicId mutable std::string mChecksum; }; -} // namespace Hedera +} // namespace Hiero namespace std { template<> -struct hash +struct hash { /** * Operator override to enable use of TopicId as map key */ - size_t operator()(const Hedera::TopicId& id) const { return hash()(id.toString()); } + size_t operator()(const Hiero::TopicId& id) const { return hash()(id.toString()); } }; } // namespace std -#endif // HEDERA_SDK_CPP_TOPIC_ID_H_ +#endif // HIERO_SDK_CPP_TOPIC_ID_H_ diff --git a/src/sdk/main/include/TopicInfo.h b/src/sdk/main/include/TopicInfo.h index b11a8e58a..c00897fe2 100644 --- a/src/sdk/main/include/TopicInfo.h +++ b/src/sdk/main/include/TopicInfo.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOPIC_INFO_H_ -#define HEDERA_SDK_CPP_TOPIC_INFO_H_ +#ifndef HIERO_SDK_CPP_TOPIC_INFO_H_ +#define HIERO_SDK_CPP_TOPIC_INFO_H_ #include "AccountId.h" #include "Key.h" @@ -39,10 +39,10 @@ namespace proto class ConsensusGetTopicInfoResponse; } -namespace Hedera +namespace Hiero { /** - * Response from a Hedera network when the client sends an TopicInfoQuery. + * Response from a Hiero network when the client sends an TopicInfoQuery. */ class TopicInfo { @@ -145,6 +145,6 @@ class TopicInfo LedgerId mLedgerId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOPIC_INFO_H_ +#endif // HIERO_SDK_CPP_TOPIC_INFO_H_ diff --git a/src/sdk/main/include/TopicInfoQuery.h b/src/sdk/main/include/TopicInfoQuery.h index 0587042d5..bef70d0b3 100644 --- a/src/sdk/main/include/TopicInfoQuery.h +++ b/src/sdk/main/include/TopicInfoQuery.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,19 +17,19 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOPIC_INFO_QUERY_H_ -#define HEDERA_SDK_CPP_TOPIC_INFO_QUERY_H_ +#ifndef HIERO_SDK_CPP_TOPIC_INFO_QUERY_H_ +#define HIERO_SDK_CPP_TOPIC_INFO_QUERY_H_ #include "Query.h" #include "TopicId.h" -namespace Hedera +namespace Hiero { class TopicInfo; class TransactionRecord; } -namespace Hedera +namespace Hiero { /** * A query that gets information about a topic instance. @@ -107,6 +107,6 @@ class TopicInfoQuery : public Query TopicId mTopicId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOPIC_INFO_QUERY_H_ +#endif // HIERO_SDK_CPP_TOPIC_INFO_QUERY_H_ diff --git a/src/sdk/main/include/TopicMessage.h b/src/sdk/main/include/TopicMessage.h index ebd3aa5eb..57b54d49d 100644 --- a/src/sdk/main/include/TopicMessage.h +++ b/src/sdk/main/include/TopicMessage.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOPIC_MESSAGE_H_ -#define HEDERA_SDK_CPP_TOPIC_MESSAGE_H_ +#ifndef HIERO_SDK_CPP_TOPIC_MESSAGE_H_ +#define HIERO_SDK_CPP_TOPIC_MESSAGE_H_ #include "TopicMessageChunk.h" #include "TransactionId.h" @@ -32,7 +32,7 @@ namespace com::hedera::mirror::api::proto class ConsensusTopicResponse; } -namespace Hedera +namespace Hiero { /** * The message of a topic. @@ -108,6 +108,6 @@ class TopicMessage TransactionId mTransactionId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOPIC_MESSAGE_H_ +#endif // HIERO_SDK_CPP_TOPIC_MESSAGE_H_ diff --git a/src/sdk/main/include/TopicMessageChunk.h b/src/sdk/main/include/TopicMessageChunk.h index 880cb14f7..56d902226 100644 --- a/src/sdk/main/include/TopicMessageChunk.h +++ b/src/sdk/main/include/TopicMessageChunk.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOPIC_MESSAGE_CHUNK_H_ -#define HEDERA_SDK_CPP_TOPIC_MESSAGE_CHUNK_H_ +#ifndef HIERO_SDK_CPP_TOPIC_MESSAGE_CHUNK_H_ +#define HIERO_SDK_CPP_TOPIC_MESSAGE_CHUNK_H_ #include "TransactionId.h" @@ -31,7 +31,7 @@ namespace com::hedera::mirror::api::proto class ConsensusTopicResponse; } -namespace Hedera +namespace Hiero { /** * A chunk of a topic message. @@ -69,6 +69,6 @@ class TopicMessageChunk uint64_t mSequenceNumber = 0ULL; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOPIC_MESSAGE_CHUNK_H_ +#endif // HIERO_SDK_CPP_TOPIC_MESSAGE_CHUNK_H_ diff --git a/src/sdk/main/include/TopicMessageQuery.h b/src/sdk/main/include/TopicMessageQuery.h index e60fce9b6..62ad5d867 100644 --- a/src/sdk/main/include/TopicMessageQuery.h +++ b/src/sdk/main/include/TopicMessageQuery.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOPIC_MESSAGE_QUERY_H_ -#define HEDERA_SDK_CPP_TOPIC_MESSAGE_QUERY_H_ +#ifndef HIERO_SDK_CPP_TOPIC_MESSAGE_QUERY_H_ +#define HIERO_SDK_CPP_TOPIC_MESSAGE_QUERY_H_ #include #include @@ -29,7 +29,7 @@ namespace grpc class Status; } -namespace Hedera +namespace Hiero { class Client; class SubscriptionHandle; @@ -37,7 +37,7 @@ class TopicId; class TopicMessage; } -namespace Hedera +namespace Hiero { /** * Subscribe to a topic ID's messages from a mirror node. You will receive all messages for the specified topic or @@ -189,6 +189,6 @@ class TopicMessageQuery std::unique_ptr mImpl; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOPIC_MESSAGE_QUERY_H_ +#endif // HIERO_SDK_CPP_TOPIC_MESSAGE_QUERY_H_ diff --git a/src/sdk/main/include/TopicMessageSubmitTransaction.h b/src/sdk/main/include/TopicMessageSubmitTransaction.h index 8d62e3372..3d0a3b3a6 100644 --- a/src/sdk/main/include/TopicMessageSubmitTransaction.h +++ b/src/sdk/main/include/TopicMessageSubmitTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TOPIC_MESSAGE_SUBMIT_TRANSACTION_H_ -#define HEDERA_SDK_CPP_TOPIC_MESSAGE_SUBMIT_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_TOPIC_MESSAGE_SUBMIT_TRANSACTION_H_ +#define HIERO_SDK_CPP_TOPIC_MESSAGE_SUBMIT_TRANSACTION_H_ #include "ChunkedTransaction.h" #include "TopicId.h" @@ -34,10 +34,10 @@ class ConsensusSubmitMessageTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** - * A transaction that submits a topic message to the Hedera network. To access the messages submitted to a topic ID, + * A transaction that submits a topic message to the Hiero network. To access the messages submitted to a topic ID, * subscribe to the topic via a mirror node. The mirror node will publish the ordered messages to subscribers. Once the * transaction is successfully executed, the receipt of the transaction will include the topic's updated sequence number * and topic running hash. @@ -168,6 +168,6 @@ class TopicMessageSubmitTransaction : public ChunkedTransaction std::optional mAutoRenewAccountId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TOPIC_UPDATE_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_TOPIC_UPDATE_TRANSACTION_H_ diff --git a/src/sdk/main/include/Transaction.h b/src/sdk/main/include/Transaction.h index b5586fdbe..0dc007fde 100644 --- a/src/sdk/main/include/Transaction.h +++ b/src/sdk/main/include/Transaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TRANSACTION_H_ -#define HEDERA_SDK_CPP_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_TRANSACTION_H_ +#define HIERO_SDK_CPP_TRANSACTION_H_ #include "AccountId.h" #include "Executable.h" @@ -34,7 +34,7 @@ #include #include -namespace Hedera +namespace Hiero { class PrivateKey; class TransactionResponse; @@ -51,10 +51,10 @@ class TransactionBody; class TransactionResponse; } -namespace Hedera +namespace Hiero { /** - * Base class for all transactions that can be submitted to a Hedera network. + * Base class for all transactions that can be submitted to a Hiero network. * * @tparam SdkRequestType The SDK request type. */ @@ -495,10 +495,9 @@ class Transaction */ [[nodiscard]] typename Executable:: - ExecutionStatus - determineStatus(Status status, - const Client& client, - [[maybe_unused]] const proto::TransactionResponse& response) override; + ExecutionStatus determineStatus(Status status, + const Client& client, + [[maybe_unused]] const proto::TransactionResponse& response) override; /** * Derived from Executable. Perform any needed actions for this Transaction when it is being submitted. @@ -551,6 +550,6 @@ class Transaction std::unique_ptr mImpl; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TRANSACTION_H_ \ No newline at end of file +#endif // HIERO_SDK_CPP_TRANSACTION_H_ \ No newline at end of file diff --git a/src/sdk/main/include/TransactionFeeSchedule.h b/src/sdk/main/include/TransactionFeeSchedule.h index 7748ad85b..eed56b8b3 100644 --- a/src/sdk/main/include/TransactionFeeSchedule.h +++ b/src/sdk/main/include/TransactionFeeSchedule.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TRANSACTION_FEE_SCHEDULE_H_ -#define HEDERA_SDK_CPP_TRANSACTION_FEE_SCHEDULE_H_ +#ifndef HIERO_SDK_CPP_TRANSACTION_FEE_SCHEDULE_H_ +#define HIERO_SDK_CPP_TRANSACTION_FEE_SCHEDULE_H_ #include "FeeData.h" #include "RequestType.h" @@ -32,7 +32,7 @@ namespace proto class TransactionFeeSchedule; } -namespace Hedera +namespace Hiero { /** * The fees for a specific transaction or query based on the fee data. @@ -127,6 +127,6 @@ class TransactionFeeSchedule std::vector mFees; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TRANSACTION_FEE_SCHEDULE_H_ +#endif // HIERO_SDK_CPP_TRANSACTION_FEE_SCHEDULE_H_ diff --git a/src/sdk/main/include/TransactionId.h b/src/sdk/main/include/TransactionId.h index d19d571d1..645c4d021 100644 --- a/src/sdk/main/include/TransactionId.h +++ b/src/sdk/main/include/TransactionId.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TRANSACTION_ID_H_ -#define HEDERA_SDK_CPP_TRANSACTION_ID_H_ +#ifndef HIERO_SDK_CPP_TRANSACTION_ID_H_ +#define HIERO_SDK_CPP_TRANSACTION_ID_H_ #include "AccountId.h" @@ -35,14 +35,14 @@ namespace proto class TransactionID; } -namespace Hedera +namespace Hiero { class Client; class TransactionReceipt; class TransactionRecord; } -namespace Hedera +namespace Hiero { /** * The ID for a transaction. This is used for retrieving receipts and records for a transaction, for appending to a file @@ -423,26 +423,26 @@ class TransactionId int mNonce = 0; }; -} // namespace Hedera +} // namespace Hiero namespace std { template<> -struct hash +struct hash { /** * Operator override to enable use of TransactionId as map key. */ - size_t operator()(const Hedera::TransactionId& id) const { return hash()(id.toString()); } + size_t operator()(const Hiero::TransactionId& id) const { return hash()(id.toString()); } }; template<> -struct less +struct less { /** * Operator override to enable use of TransactionId in a std::map, which requires fair ordering. */ - bool operator()(const Hedera::TransactionId& lhs, const Hedera::TransactionId& rhs) const + bool operator()(const Hiero::TransactionId& lhs, const Hiero::TransactionId& rhs) const { return lhs.toString() < rhs.toString(); } @@ -450,4 +450,4 @@ struct less } // namespace std -#endif // HEDERA_SDK_CPP_TRANSACTION_ID_H_ +#endif // HIERO_SDK_CPP_TRANSACTION_ID_H_ diff --git a/src/sdk/main/include/TransactionReceipt.h b/src/sdk/main/include/TransactionReceipt.h index 665c374d2..efc5eae28 100644 --- a/src/sdk/main/include/TransactionReceipt.h +++ b/src/sdk/main/include/TransactionReceipt.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TRANSACTION_RECEIPT_H_ -#define HEDERA_SDK_CPP_TRANSACTION_RECEIPT_H_ +#ifndef HIERO_SDK_CPP_TRANSACTION_RECEIPT_H_ +#define HIERO_SDK_CPP_TRANSACTION_RECEIPT_H_ #include "AccountId.h" #include "ContractId.h" @@ -43,7 +43,7 @@ class TransactionGetReceiptResponse; class TransactionReceipt; } -namespace Hedera +namespace Hiero { /** * The summary of a transaction's result so far. If the transaction has not reached consensus, this result will be @@ -264,6 +264,6 @@ class TransactionReceipt std::optional mNodeId; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TRANSACTION_RECEIPT_H_ +#endif // HIERO_SDK_CPP_TRANSACTION_RECEIPT_H_ diff --git a/src/sdk/main/include/TransactionReceiptQuery.h b/src/sdk/main/include/TransactionReceiptQuery.h index 35c8bc092..203a53c6d 100644 --- a/src/sdk/main/include/TransactionReceiptQuery.h +++ b/src/sdk/main/include/TransactionReceiptQuery.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,20 +17,20 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TRANSACTION_RECEIPT_QUERY_H_ -#define HEDERA_SDK_CPP_TRANSACTION_RECEIPT_QUERY_H_ +#ifndef HIERO_SDK_CPP_TRANSACTION_RECEIPT_QUERY_H_ +#define HIERO_SDK_CPP_TRANSACTION_RECEIPT_QUERY_H_ #include "Query.h" #include "TransactionId.h" #include -namespace Hedera +namespace Hiero { class TransactionReceipt; } -namespace Hedera +namespace Hiero { /** * Get the receipt of a transaction, given its transaction ID. Once a transaction reaches consensus, then information @@ -179,6 +179,6 @@ class TransactionReceiptQuery : public Query mPendingAirdropRecords; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TRANSACTION_RECORD_H_ +#endif // HIERO_SDK_CPP_TRANSACTION_RECORD_H_ diff --git a/src/sdk/main/include/TransactionRecordQuery.h b/src/sdk/main/include/TransactionRecordQuery.h index b118c895e..639902f16 100644 --- a/src/sdk/main/include/TransactionRecordQuery.h +++ b/src/sdk/main/include/TransactionRecordQuery.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,20 +17,20 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TRANSACTION_RECORD_QUERY_H_ -#define HEDERA_SDK_CPP_TRANSACTION_RECORD_QUERY_H_ +#ifndef HIERO_SDK_CPP_TRANSACTION_RECORD_QUERY_H_ +#define HIERO_SDK_CPP_TRANSACTION_RECORD_QUERY_H_ #include "Query.h" #include "TransactionId.h" #include -namespace Hedera +namespace Hiero { class TransactionRecord; } -namespace Hedera +namespace Hiero { /** * Get the record for a transaction. If the transaction requested a record, then the record lasts for one hour, and a @@ -173,6 +173,6 @@ class TransactionRecordQuery : public Query #include -namespace Hedera +namespace Hiero { class Client; class TransactionReceipt; @@ -40,7 +40,7 @@ class TransactionRecord; class TransactionRecordQuery; } -namespace Hedera +namespace Hiero { /** * When the client sends the node a transaction of any kind, the node replies with this, which simply says that the @@ -398,6 +398,6 @@ class TransactionResponse bool mValidateStatus = true; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TRANSACTION_RESPONSE_H_ +#endif // HIERO_SDK_CPP_TRANSACTION_RESPONSE_H_ diff --git a/src/sdk/main/include/TransactionType.h b/src/sdk/main/include/TransactionType.h index 6351d87c7..71b5daea0 100644 --- a/src/sdk/main/include/TransactionType.h +++ b/src/sdk/main/include/TransactionType.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,10 +17,10 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TRANSACTION_TYPE_H_ -#define HEDERA_SDK_CPP_TRANSACTION_TYPE_H_ +#ifndef HIERO_SDK_CPP_TRANSACTION_TYPE_H_ +#define HIERO_SDK_CPP_TRANSACTION_TYPE_H_ -namespace Hedera +namespace Hiero { /** * Enumeration of all transaction types. @@ -79,6 +79,6 @@ enum TransactionType : int TRANSFER_TRANSACTION }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TRANSACTION_TYPE_H_ +#endif // HIERO_SDK_CPP_TRANSACTION_TYPE_H_ diff --git a/src/sdk/main/include/TransferTransaction.h b/src/sdk/main/include/TransferTransaction.h index 24bc95821..27a271811 100644 --- a/src/sdk/main/include/TransferTransaction.h +++ b/src/sdk/main/include/TransferTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_TRANSFER_TRANSACTION_H_ -#define HEDERA_SDK_CPP_TRANSFER_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_TRANSFER_TRANSACTION_H_ +#define HIERO_SDK_CPP_TRANSFER_TRANSACTION_H_ #include "HbarTransfer.h" #include "TokenNftTransfer.h" @@ -33,7 +33,7 @@ namespace proto class CryptoTransferTransactionBody; } -namespace Hedera +namespace Hiero { class AccountId; class EvmAddress; @@ -41,7 +41,7 @@ class NftId; class TokenId; } -namespace Hedera +namespace Hiero { /** * Transfers cryptocurrency among two or more accounts by making the desired adjustments to their balances. Each @@ -309,6 +309,6 @@ class TransferTransaction : public Transaction std::vector mNftTransfers; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_TRANSFER_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_TRANSFER_TRANSACTION_H_ diff --git a/src/sdk/main/include/WrappedTransaction.h b/src/sdk/main/include/WrappedTransaction.h index abc7b5566..b0604109a 100644 --- a/src/sdk/main/include/WrappedTransaction.h +++ b/src/sdk/main/include/WrappedTransaction.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_UNKNOWN_TRANSACTION_H_ -#define HEDERA_SDK_CPP_UNKNOWN_TRANSACTION_H_ +#ifndef HIERO_SDK_CPP_UNKNOWN_TRANSACTION_H_ +#define HIERO_SDK_CPP_UNKNOWN_TRANSACTION_H_ #include "AccountAllowanceApproveTransaction.h" #include "AccountAllowanceDeleteTransaction.h" @@ -79,7 +79,7 @@ class SchedulableTransactionBody; class TransactionBody; } -namespace Hedera +namespace Hiero { /** * Helper class to hold a Transaction variant. @@ -218,6 +218,6 @@ class WrappedTransaction AnyPossibleTransaction mTransaction; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_UNKNOWN_TRANSACTION_H_ +#endif // HIERO_SDK_CPP_UNKNOWN_TRANSACTION_H_ diff --git a/src/sdk/main/include/exceptions/BadEntityIdException.h b/src/sdk/main/include/exceptions/BadEntityIdException.h index b8d534400..694d93ceb 100644 --- a/src/sdk/main/include/exceptions/BadEntityIdException.h +++ b/src/sdk/main/include/exceptions/BadEntityIdException.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,14 +17,14 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_BAD_ENTITY_ID_EXCEPTION_H_ -#define HEDERA_SDK_CPP_BAD_ENTITY_ID_EXCEPTION_H_ +#ifndef HIERO_SDK_CPP_BAD_ENTITY_ID_EXCEPTION_H_ +#define HIERO_SDK_CPP_BAD_ENTITY_ID_EXCEPTION_H_ #include #include #include -namespace Hedera +namespace Hiero { /** * Exception that is thrown when a key could not be realized from a given input. @@ -66,6 +66,6 @@ class BadEntityIdException : public std::exception std::string mError; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_BAD_ENTITY_ID_EXCEPTION_H_ +#endif // HIERO_SDK_CPP_BAD_ENTITY_ID_EXCEPTION_H_ diff --git a/src/sdk/main/include/exceptions/BadKeyException.h b/src/sdk/main/include/exceptions/BadKeyException.h index 5091da0dc..8d28c60e3 100644 --- a/src/sdk/main/include/exceptions/BadKeyException.h +++ b/src/sdk/main/include/exceptions/BadKeyException.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,13 +17,13 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_BAD_KEY_EXCEPTION_H_ -#define HEDERA_SDK_CPP_BAD_KEY_EXCEPTION_H_ +#ifndef HIERO_SDK_CPP_BAD_KEY_EXCEPTION_H_ +#define HIERO_SDK_CPP_BAD_KEY_EXCEPTION_H_ #include #include -namespace Hedera +namespace Hiero { /** * Exception that is thrown when a key could not be realized from a given input. @@ -55,6 +55,6 @@ class BadKeyException : public std::exception std::string_view mError; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_BAD_KEY_EXCEPTION_H_ +#endif // HIERO_SDK_CPP_BAD_KEY_EXCEPTION_H_ diff --git a/src/sdk/main/include/exceptions/BadMnemonicException.h b/src/sdk/main/include/exceptions/BadMnemonicException.h index d19a5fdaf..b6a3a8ffc 100644 --- a/src/sdk/main/include/exceptions/BadMnemonicException.h +++ b/src/sdk/main/include/exceptions/BadMnemonicException.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,13 +17,13 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_BAD_MNEMONIC_EXCEPTION_H_ -#define HEDERA_SDK_CPP_BAD_MNEMONIC_EXCEPTION_H_ +#ifndef HIERO_SDK_CPP_BAD_MNEMONIC_EXCEPTION_H_ +#define HIERO_SDK_CPP_BAD_MNEMONIC_EXCEPTION_H_ #include #include -namespace Hedera +namespace Hiero { /** * Exception that is thrown when a key could not be realized from a given input. @@ -55,6 +55,6 @@ class BadMnemonicException : public std::exception std::string_view mError; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_BAD_MNEMONIC_EXCEPTION_H_ +#endif // HIERO_SDK_CPP_BAD_MNEMONIC_EXCEPTION_H_ diff --git a/src/sdk/main/include/exceptions/IllegalStateException.h b/src/sdk/main/include/exceptions/IllegalStateException.h index 0275cabaf..7e5ed2f56 100644 --- a/src/sdk/main/include/exceptions/IllegalStateException.h +++ b/src/sdk/main/include/exceptions/IllegalStateException.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,13 +17,13 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_ILLEGAL_STATE_EXCEPTION_H_ -#define HEDERA_SDK_CPP_ILLEGAL_STATE_EXCEPTION_H_ +#ifndef HIERO_SDK_CPP_ILLEGAL_STATE_EXCEPTION_H_ +#define HIERO_SDK_CPP_ILLEGAL_STATE_EXCEPTION_H_ #include #include -namespace Hedera +namespace Hiero { /** * Exception that is thrown when an action is attempted when an object is not in the correct state for said action. @@ -55,6 +55,6 @@ class IllegalStateException : public std::exception std::string_view mError; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_ILLEGAL_STATE_EXCEPTION_H_ +#endif // HIERO_SDK_CPP_ILLEGAL_STATE_EXCEPTION_H_ diff --git a/src/sdk/main/include/exceptions/MaxAttemptsExceededException.h b/src/sdk/main/include/exceptions/MaxAttemptsExceededException.h index 850db982c..1f99beafc 100644 --- a/src/sdk/main/include/exceptions/MaxAttemptsExceededException.h +++ b/src/sdk/main/include/exceptions/MaxAttemptsExceededException.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,13 +17,13 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_MAX_ATTEMPTS_EXCEEDED_EXCEPTION_H_ -#define HEDERA_SDK_CPP_MAX_ATTEMPTS_EXCEEDED_EXCEPTION_H_ +#ifndef HIERO_SDK_CPP_MAX_ATTEMPTS_EXCEEDED_EXCEPTION_H_ +#define HIERO_SDK_CPP_MAX_ATTEMPTS_EXCEEDED_EXCEPTION_H_ #include #include -namespace Hedera +namespace Hiero { /** * Exception that is thrown when a processing exceeds its maximum number of attempts to submit a request to a network. @@ -55,6 +55,6 @@ class MaxAttemptsExceededException : public std::exception std::string_view mError; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_MAX_ATTEMPTS_EXCEEDED_EXCEPTION_H_ +#endif // HIERO_SDK_CPP_MAX_ATTEMPTS_EXCEEDED_EXCEPTION_H_ diff --git a/src/sdk/main/include/exceptions/MaxQueryPaymentExceededException.h b/src/sdk/main/include/exceptions/MaxQueryPaymentExceededException.h index f26c98a5d..8c0cb2e9e 100644 --- a/src/sdk/main/include/exceptions/MaxQueryPaymentExceededException.h +++ b/src/sdk/main/include/exceptions/MaxQueryPaymentExceededException.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,13 +17,13 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_MAX_QUERY_PAYMENT_EXCEEDED_EXCEPTION_H_ -#define HEDERA_SDK_CPP_MAX_QUERY_PAYMENT_EXCEEDED_EXCEPTION_H_ +#ifndef HIERO_SDK_CPP_MAX_QUERY_PAYMENT_EXCEEDED_EXCEPTION_H_ +#define HIERO_SDK_CPP_MAX_QUERY_PAYMENT_EXCEEDED_EXCEPTION_H_ #include #include -namespace Hedera +namespace Hiero { /** * Exception that is thrown when the cost to execute a Query is larger than the maximum allowed amount. @@ -55,6 +55,6 @@ class MaxQueryPaymentExceededException : public std::exception std::string_view mError; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_MAX_QUERY_PAYMENT_EXCEEDED_EXCEPTION_H_ +#endif // HIERO_SDK_CPP_MAX_QUERY_PAYMENT_EXCEEDED_EXCEPTION_H_ diff --git a/src/sdk/main/include/exceptions/OpenSSLException.h b/src/sdk/main/include/exceptions/OpenSSLException.h index 81279efe9..9e7daaf20 100644 --- a/src/sdk/main/include/exceptions/OpenSSLException.h +++ b/src/sdk/main/include/exceptions/OpenSSLException.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,13 +17,13 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_OPENSSL_EXCEPTION_H_ -#define HEDERA_SDK_CPP_OPENSSL_EXCEPTION_H_ +#ifndef HIERO_SDK_CPP_OPENSSL_EXCEPTION_H_ +#define HIERO_SDK_CPP_OPENSSL_EXCEPTION_H_ #include #include -namespace Hedera +namespace Hiero { /** * Exception that encompasses all unrecoverable OpenSSL errors. @@ -55,6 +55,6 @@ class OpenSSLException : public std::exception std::string_view mError; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_OPENSSL_EXCEPTION_H_ +#endif // HIERO_SDK_CPP_OPENSSL_EXCEPTION_H_ diff --git a/src/sdk/main/include/exceptions/PrecheckStatusException.h b/src/sdk/main/include/exceptions/PrecheckStatusException.h index 00a5ba7e2..0fcf0748b 100644 --- a/src/sdk/main/include/exceptions/PrecheckStatusException.h +++ b/src/sdk/main/include/exceptions/PrecheckStatusException.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_PRECHECK_STATUS_EXCEPTION_H_ -#define HEDERA_SDK_CPP_PRECHECK_STATUS_EXCEPTION_H_ +#ifndef HIERO_SDK_CPP_PRECHECK_STATUS_EXCEPTION_H_ +#define HIERO_SDK_CPP_PRECHECK_STATUS_EXCEPTION_H_ #include "Status.h" #include "TransactionId.h" @@ -27,7 +27,7 @@ #include #include -namespace Hedera +namespace Hiero { /** * Exception that is thrown when a request has failed its pre-check. @@ -45,7 +45,7 @@ class PrecheckStatusException : public std::exception const std::optional& transactionId = std::optional()) : mTransactionId(transactionId) , mStatus(status) - , mError(((transactionId.has_value()) ? "Hedera transaction " + transactionId->toString() + ' ' : "") + + , mError(((transactionId.has_value()) ? "Hiero transaction " + transactionId->toString() + ' ' : "") + "failed precheck with status " + gStatusToString.at(mStatus)) { } @@ -74,6 +74,6 @@ class PrecheckStatusException : public std::exception std::string mError; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_PRECHECK_STATUS_EXCEPTION_H_ +#endif // HIERO_SDK_CPP_PRECHECK_STATUS_EXCEPTION_H_ diff --git a/src/sdk/main/include/exceptions/ReceiptStatusException.h b/src/sdk/main/include/exceptions/ReceiptStatusException.h index 4e5902238..c51bf7d75 100644 --- a/src/sdk/main/include/exceptions/ReceiptStatusException.h +++ b/src/sdk/main/include/exceptions/ReceiptStatusException.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_RECEIPT_STATUS_EXCEPTION_H_ -#define HEDERA_SDK_CPP_RECEIPT_STATUS_EXCEPTION_H_ +#ifndef HIERO_SDK_CPP_RECEIPT_STATUS_EXCEPTION_H_ +#define HIERO_SDK_CPP_RECEIPT_STATUS_EXCEPTION_H_ #include "Status.h" #include "TransactionId.h" @@ -27,7 +27,7 @@ #include #include -namespace Hedera +namespace Hiero { /** * Exception that is thrown when a TransactionReceipt contains a non-successful status (i.e. not Status::SUCCESS) and it @@ -72,6 +72,6 @@ class ReceiptStatusException : public std::exception std::string mError; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_RECEIPT_STATUS_EXCEPTION_H_ +#endif // HIERO_SDK_CPP_RECEIPT_STATUS_EXCEPTION_H_ diff --git a/src/sdk/main/include/exceptions/UninitializedException.h b/src/sdk/main/include/exceptions/UninitializedException.h index 74c96fc7b..b9a651429 100644 --- a/src/sdk/main/include/exceptions/UninitializedException.h +++ b/src/sdk/main/include/exceptions/UninitializedException.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,13 +17,13 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_UNINITIALIZED_EXCEPTION_H_ -#define HEDERA_SDK_CPP_UNINITIALIZED_EXCEPTION_H_ +#ifndef HIERO_SDK_CPP_UNINITIALIZED_EXCEPTION_H_ +#define HIERO_SDK_CPP_UNINITIALIZED_EXCEPTION_H_ #include #include -namespace Hedera +namespace Hiero { /** * Exception that encompasses all unrecoverable OpenSSL errors. @@ -55,6 +55,6 @@ class UninitializedException : public std::exception std::string_view mError; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_UNINITIALIZED_EXCEPTION_H_ +#endif // HIERO_SDK_CPP_UNINITIALIZED_EXCEPTION_H_ diff --git a/src/sdk/main/include/exceptions/UnsupportedOperationException.h b/src/sdk/main/include/exceptions/UnsupportedOperationException.h index 7a82c478e..cb3ae9faf 100644 --- a/src/sdk/main/include/exceptions/UnsupportedOperationException.h +++ b/src/sdk/main/include/exceptions/UnsupportedOperationException.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,13 +17,13 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_UNSUPPORTED_OPERATION_EXCEPTION_H_ -#define HEDERA_SDK_CPP_UNSUPPORTED_OPERATION_EXCEPTION_H_ +#ifndef HIERO_SDK_CPP_UNSUPPORTED_OPERATION_EXCEPTION_H_ +#define HIERO_SDK_CPP_UNSUPPORTED_OPERATION_EXCEPTION_H_ #include #include -namespace Hedera +namespace Hiero { /** * Exception that encompasses trying to execute any unsupported operation. @@ -55,6 +55,6 @@ class UnsupportedOperationException : public std::exception std::string_view mError; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_UNSUPPORTED_OPERATION_EXCEPTION_H_ +#endif // HIERO_SDK_CPP_UNSUPPORTED_OPERATION_EXCEPTION_H_ diff --git a/src/sdk/main/include/impl/ASN1ECKey.h b/src/sdk/main/include/impl/ASN1ECKey.h index 0ced48d28..96485e694 100644 --- a/src/sdk/main/include/impl/ASN1ECKey.h +++ b/src/sdk/main/include/impl/ASN1ECKey.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -16,15 +16,15 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * This file defines the Hedera C++ SDK's ASN1Key class, derived from ASN1Object. + * This file defines the Hiero C++ SDK's ASN1Key class, derived from ASN1Object. */ -#ifndef HEDERA_SDK_CPP_IMPL_ASN1_EC_KEY_H_ -#define HEDERA_SDK_CPP_IMPL_ASN1_EC_KEY_H_ +#ifndef HIERO_SDK_CPP_IMPL_ASN1_EC_KEY_H_ +#define HIERO_SDK_CPP_IMPL_ASN1_EC_KEY_H_ #include "ASN1Object.h" -namespace Hedera::internal::asn1 +namespace Hiero::internal::asn1 { constexpr size_t EC_KEY_LENGTH = 32; // bytes // more than this would be a malicious attempt @@ -76,6 +76,6 @@ class ASN1ECKey : public ASN1Object std::unordered_map> asn1KeyData; }; -} // namespace Hedera::internal:asn1 +} // namespace Hiero::internal:asn1 -#endif // HEDERA_SDK_CPP_IMPL_ASN1_EC_KEY_H_ +#endif // HIERO_SDK_CPP_IMPL_ASN1_EC_KEY_H_ diff --git a/src/sdk/main/include/impl/ASN1ECPrivateKey.h b/src/sdk/main/include/impl/ASN1ECPrivateKey.h index 372e592ca..c7a52dc4f 100644 --- a/src/sdk/main/include/impl/ASN1ECPrivateKey.h +++ b/src/sdk/main/include/impl/ASN1ECPrivateKey.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -18,12 +18,12 @@ * */ -#ifndef HEDERA_SDK_CPP_IMPL_ASN1_EC_PRIVATE_KEY_H_ -#define HEDERA_SDK_CPP_IMPL_ASN1_EC_PRIVATE_KEY_H_ +#ifndef HIERO_SDK_CPP_IMPL_ASN1_EC_PRIVATE_KEY_H_ +#define HIERO_SDK_CPP_IMPL_ASN1_EC_PRIVATE_KEY_H_ #include "ASN1ECKey.h" -namespace Hedera::internal::asn1 +namespace Hiero::internal::asn1 { // The ASN.1 algorithm identifier prefix bytes for an ECDSAsecp256k1PrivateKey. const std::vector ASN1_PRK_PREFIX_BYTES = { std::byte(0x30), std::byte(0x2E), std::byte(0x02), @@ -67,6 +67,6 @@ class ASN1ECPrivateKey : public ASN1ECKey ASN1ECPrivateKey() = default; }; -} // namespace Hedera::internal:asn1 +} // namespace Hiero::internal:asn1 -#endif // HEDERA_SDK_CPP_IMPL_ASN1_EC_PRIVATE_KEY_H_ +#endif // HIERO_SDK_CPP_IMPL_ASN1_EC_PRIVATE_KEY_H_ diff --git a/src/sdk/main/include/impl/ASN1ECPublicKey.h b/src/sdk/main/include/impl/ASN1ECPublicKey.h index a3f8c49cf..07a25587e 100644 --- a/src/sdk/main/include/impl/ASN1ECPublicKey.h +++ b/src/sdk/main/include/impl/ASN1ECPublicKey.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_ASN1_EC_PUBLIC_KEY_H_ -#define HEDERA_SDK_CPP_IMPL_ASN1_EC_PUBLIC_KEY_H_ +#ifndef HIERO_SDK_CPP_IMPL_ASN1_EC_PUBLIC_KEY_H_ +#define HIERO_SDK_CPP_IMPL_ASN1_EC_PUBLIC_KEY_H_ #include "ASN1ECKey.h" -namespace Hedera::internal::asn1 +namespace Hiero::internal::asn1 { /** * @brief The ASN.1 algorithm identifier prefix bytes for a compressed @@ -88,6 +88,6 @@ class ASN1ECPublicKey : public ASN1ECKey std::vector ecYcoord; ///< Y coordinate of the elliptic curve public key. }; -} // namespace Hedera::internal:asn1 +} // namespace Hiero::internal:asn1 -#endif // HEDERA_SDK_CPP_IMPL_ASN1_EC_PUBLIC_KEY_H_ +#endif // HIERO_SDK_CPP_IMPL_ASN1_EC_PUBLIC_KEY_H_ diff --git a/src/sdk/main/include/impl/ASN1ED25519PrivateKey.h b/src/sdk/main/include/impl/ASN1ED25519PrivateKey.h index 4c0f9127f..aa0f146fa 100644 --- a/src/sdk/main/include/impl/ASN1ED25519PrivateKey.h +++ b/src/sdk/main/include/impl/ASN1ED25519PrivateKey.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -16,15 +16,15 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * @brief This file defines the Hedera C++ SDK's ASN1ED25519PrivateKey class, derived from ASN1ECKey. + * @brief This file defines the Hiero C++ SDK's ASN1ED25519PrivateKey class, derived from ASN1ECKey. */ -#ifndef HEDERA_SDK_CPP_IMPL_ASN1_ED25519_PRIVATE_KEY_H_ -#define HEDERA_SDK_CPP_IMPL_ASN1_ED25519_PRIVATE_KEY_H_ +#ifndef HIERO_SDK_CPP_IMPL_ASN1_ED25519_PRIVATE_KEY_H_ +#define HIERO_SDK_CPP_IMPL_ASN1_ED25519_PRIVATE_KEY_H_ #include "ASN1ECKey.h" -namespace Hedera::internal::asn1 +namespace Hiero::internal::asn1 { // The ASN.1 algorithm identifier prefix bytes for an EC ED25519PrivateKey const std::vector ASN1_EDPRK_PREFIX_BYTES = { @@ -65,6 +65,6 @@ class ASN1ED25519PrivateKey : public ASN1ECKey ASN1ED25519PrivateKey() = default; }; -} // namespace Hedera::internal:asn1 +} // namespace Hiero::internal:asn1 -#endif // HEDERA_SDK_CPP_IMPL_ASN1_ED25519_PRIVATE_KEY_H_ +#endif // HIERO_SDK_CPP_IMPL_ASN1_ED25519_PRIVATE_KEY_H_ diff --git a/src/sdk/main/include/impl/ASN1ED25519PublicKey.h b/src/sdk/main/include/impl/ASN1ED25519PublicKey.h index 787600b9b..e6a392c0e 100644 --- a/src/sdk/main/include/impl/ASN1ED25519PublicKey.h +++ b/src/sdk/main/include/impl/ASN1ED25519PublicKey.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -17,15 +17,15 @@ * limitations under the License. * * @file - * @brief Defines the Hedera C++ SDK's ASN1ED25519PublicKey class, derived from ASN1ECKey. + * @brief Defines the Hiero C++ SDK's ASN1ED25519PublicKey class, derived from ASN1ECKey. */ -#ifndef HEDERA_SDK_CPP_IMPL_ASN1_ED25519_PUBLIC_KEY_H_ -#define HEDERA_SDK_CPP_IMPL_ASN1_ED25519_PUBLIC_KEY_H_ +#ifndef HIERO_SDK_CPP_IMPL_ASN1_ED25519_PUBLIC_KEY_H_ +#define HIERO_SDK_CPP_IMPL_ASN1_ED25519_PUBLIC_KEY_H_ #include "ASN1ECKey.h" -namespace Hedera::internal::asn1 +namespace Hiero::internal::asn1 { /** * The prefix bytes of a DER-encoded ED25519PublicKey. @@ -65,6 +65,6 @@ class ASN1ED25519PublicKey : public ASN1ECKey ASN1ED25519PublicKey() = default; }; -} // namespace Hedera::internal:asn1 +} // namespace Hiero::internal:asn1 -#endif // HEDERA_SDK_CPP_IMPL_ASN1_ED25519_PUBLIC_KEY_H_ +#endif // HIERO_SDK_CPP_IMPL_ASN1_ED25519_PUBLIC_KEY_H_ diff --git a/src/sdk/main/include/impl/ASN1Object.h b/src/sdk/main/include/impl/ASN1Object.h index 151c3c060..92ddf18bc 100644 --- a/src/sdk/main/include/impl/ASN1Object.h +++ b/src/sdk/main/include/impl/ASN1Object.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -16,17 +16,17 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * This file defines the Hedera C++ SDK's ASN1Object class. + * This file defines the Hiero C++ SDK's ASN1Object class. */ -#ifndef HEDERA_SDK_CPP_IMPL_ASN1_OBJECT_H_ -#define HEDERA_SDK_CPP_IMPL_ASN1_OBJECT_H_ +#ifndef HIERO_SDK_CPP_IMPL_ASN1_OBJECT_H_ +#define HIERO_SDK_CPP_IMPL_ASN1_OBJECT_H_ #include #include #include -namespace Hedera::internal::asn1 +namespace Hiero::internal::asn1 { /** @@ -61,6 +61,6 @@ class ASN1Object virtual void decode(const std::vector& data) = 0; }; -} // namespace Hedera::internal::asn1 +} // namespace Hiero::internal::asn1 -#endif // HEDERA_SDK_CPP_IMPL_ASN1_OBJECT_H_ \ No newline at end of file +#endif // HIERO_SDK_CPP_IMPL_ASN1_OBJECT_H_ \ No newline at end of file diff --git a/src/sdk/main/include/impl/BaseNetwork.h b/src/sdk/main/include/impl/BaseNetwork.h index 11f19ed57..6fc588e82 100644 --- a/src/sdk/main/include/impl/BaseNetwork.h +++ b/src/sdk/main/include/impl/BaseNetwork.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_BASE_NETWORK_H_ -#define HEDERA_SDK_CPP_IMPL_BASE_NETWORK_H_ +#ifndef HIERO_SDK_CPP_IMPL_BASE_NETWORK_H_ +#define HIERO_SDK_CPP_IMPL_BASE_NETWORK_H_ #include "AccountId.h" #include "BaseNode.h" @@ -34,7 +34,7 @@ #include #include -namespace Hedera::internal +namespace Hiero::internal { template class BaseNetwork @@ -338,6 +338,6 @@ class BaseNetwork std::shared_ptr mMutex = std::make_shared(); }; -} // namespace Hedera::internal +} // namespace Hiero::internal -#endif // HEDERA_SDK_CPP_IMPL_BASE_NETWORK_H_ +#endif // HIERO_SDK_CPP_IMPL_BASE_NETWORK_H_ diff --git a/src/sdk/main/include/impl/BaseNode.h b/src/sdk/main/include/impl/BaseNode.h index eca15fd48..c3f3f2e9c 100644 --- a/src/sdk/main/include/impl/BaseNode.h +++ b/src/sdk/main/include/impl/BaseNode.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_BASE_NODE_H_ -#define HEDERA_SDK_CPP_IMPL_BASE_NODE_H_ +#ifndef HIERO_SDK_CPP_IMPL_BASE_NODE_H_ +#define HIERO_SDK_CPP_IMPL_BASE_NODE_H_ #include // This is needed for Windows to build for some reason. @@ -30,7 +30,7 @@ #include #include -namespace Hedera::internal +namespace Hiero::internal { template class BaseNode @@ -272,6 +272,6 @@ class BaseNode std::shared_ptr mMutex = std::make_shared(); }; -} // namespace Hedera::internal +} // namespace Hiero::internal -#endif // HEDERA_SDK_CPP_IMPL_BASE_NODE_H_ +#endif // HIERO_SDK_CPP_IMPL_BASE_NODE_H_ diff --git a/src/sdk/main/include/impl/BaseNodeAddress.h b/src/sdk/main/include/impl/BaseNodeAddress.h index 6e54892bf..5f12071c3 100644 --- a/src/sdk/main/include/impl/BaseNodeAddress.h +++ b/src/sdk/main/include/impl/BaseNodeAddress.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,13 +17,13 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_BASE_NODE_ADDRESS_H_ -#define HEDERA_SDK_CPP_IMPL_BASE_NODE_ADDRESS_H_ +#ifndef HIERO_SDK_CPP_IMPL_BASE_NODE_ADDRESS_H_ +#define HIERO_SDK_CPP_IMPL_BASE_NODE_ADDRESS_H_ #include #include -namespace Hedera::internal +namespace Hiero::internal { class BaseNodeAddress { @@ -138,17 +138,17 @@ class BaseNodeAddress unsigned int mPort = 0U; }; -} // namespace Hedera::internal +} // namespace Hiero::internal namespace std { template<> -struct hash +struct hash { /** * Operator override to enable use of BaseNodeAddress as map key. */ - size_t operator()(const Hedera::internal::BaseNodeAddress& address) const + size_t operator()(const Hiero::internal::BaseNodeAddress& address) const { return hash()(address.toString()); } @@ -156,4 +156,4 @@ struct hash } // namespace std -#endif // HEDERA_SDK_CPP_IMPL_BASE_NODE_ADDRESS_H_ +#endif // HIERO_SDK_CPP_IMPL_BASE_NODE_ADDRESS_H_ diff --git a/src/sdk/main/include/impl/DerivationPathUtils.h b/src/sdk/main/include/impl/DerivationPathUtils.h index 4984a0cf6..2f8d7abfc 100644 --- a/src/sdk/main/include/impl/DerivationPathUtils.h +++ b/src/sdk/main/include/impl/DerivationPathUtils.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_DERIVATION_PATH_UTILS_H_ -#define HEDERA_SDK_CPP_IMPL_DERIVATION_PATH_UTILS_H_ +#ifndef HIERO_SDK_CPP_IMPL_DERIVATION_PATH_UTILS_H_ +#define HIERO_SDK_CPP_IMPL_DERIVATION_PATH_UTILS_H_ #include #include @@ -27,7 +27,7 @@ /** * Utility functions dealing with wallet derivation paths, as described in BIP32, BIP44, and SLIP10. */ -namespace Hedera::internal::DerivationPathUtils +namespace Hiero::internal::DerivationPathUtils { /** * Check if an index falls into the "unhardened" or "hardened" category. @@ -55,6 +55,6 @@ uint32_t getHardenedIndex(uint32_t index); */ std::vector indexToBigEndianArray(uint32_t childIndex); -}; // namespace Hedera::internal::DerivationPathUtils +}; // namespace Hiero::internal::DerivationPathUtils -#endif // HEDERA_SDK_CPP_IMPL_DERIVATION_PATH_UTILS_H_ +#endif // HIERO_SDK_CPP_IMPL_DERIVATION_PATH_UTILS_H_ diff --git a/src/sdk/main/include/impl/DurationConverter.h b/src/sdk/main/include/impl/DurationConverter.h index bb10ae293..718a6a6fb 100644 --- a/src/sdk/main/include/impl/DurationConverter.h +++ b/src/sdk/main/include/impl/DurationConverter.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_DURATION_CONVERTER_H_ -#define HEDERA_SDK_CPP_IMPL_DURATION_CONVERTER_H_ +#ifndef HIERO_SDK_CPP_IMPL_DURATION_CONVERTER_H_ +#define HIERO_SDK_CPP_IMPL_DURATION_CONVERTER_H_ #include #include @@ -28,7 +28,7 @@ namespace proto class Duration; } -namespace Hedera::internal::DurationConverter +namespace Hiero::internal::DurationConverter { /** * Get the duration in seconds represented by a Duration protobuf object. @@ -46,6 +46,6 @@ std::chrono::seconds fromProtobuf(const proto::Duration& duration); */ proto::Duration* toProtobuf(const std::chrono::system_clock::duration& duration); -} // namespace Hedera::internal::DurationConverter +} // namespace Hiero::internal::DurationConverter -#endif // HEDERA_SDK_CPP_IMPL_DURATION_CONVERTER_H_ +#endif // HIERO_SDK_CPP_IMPL_DURATION_CONVERTER_H_ diff --git a/src/sdk/main/include/impl/EntityIdHelper.h b/src/sdk/main/include/impl/EntityIdHelper.h index 3fc473b4e..2ad3a1f6d 100644 --- a/src/sdk/main/include/impl/EntityIdHelper.h +++ b/src/sdk/main/include/impl/EntityIdHelper.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_ENTITY_ID_HELPER_H_ -#define HEDERA_SDK_CPP_IMPL_ENTITY_ID_HELPER_H_ +#ifndef HIERO_SDK_CPP_IMPL_ENTITY_ID_HELPER_H_ +#define HIERO_SDK_CPP_IMPL_ENTITY_ID_HELPER_H_ #include #include @@ -27,13 +27,13 @@ #include #include -namespace Hedera +namespace Hiero { class Client; class LedgerId; } -namespace Hedera::internal::EntityIdHelper +namespace Hiero::internal::EntityIdHelper { /** * The length of a Solidity address in bytes. @@ -120,9 +120,9 @@ template [[nodiscard]] std::string_view getChecksum(std::string_view id); /** - * Generate the checksum of a Hedera address for a particular ledger. + * Generate the checksum of a Hiero address for a particular ledger. * - * @param address The Hedera address from which to generate a checksum. + * @param address The Hiero address from which to generate a checksum. * @param ledgerId The ID for which the checksum should be generated. */ [[nodiscard]] std::string checksum(std::string_view address, const LedgerId& ledgerId); @@ -178,6 +178,6 @@ template */ void validate(uint64_t shard, uint64_t realm, uint64_t num, const Client& client, std::string_view expectedChecksum); -} // namespace Hedera::internal::EntityIdHelper +} // namespace Hiero::internal::EntityIdHelper -#endif // HEDERA_SDK_CPP_IMPL_ENTITY_ID_HELPER_H_ +#endif // HIERO_SDK_CPP_IMPL_ENTITY_ID_HELPER_H_ diff --git a/src/sdk/main/include/impl/HederaCertificateVerifier.h b/src/sdk/main/include/impl/HederaCertificateVerifier.h index 340b1c84d..61f0c7f1b 100644 --- a/src/sdk/main/include/impl/HederaCertificateVerifier.h +++ b/src/sdk/main/include/impl/HederaCertificateVerifier.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,13 +17,13 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_HEDERA_CERTIFICATE_VERIFIER_H_ -#define HEDERA_SDK_CPP_IMPL_HEDERA_CERTIFICATE_VERIFIER_H_ +#ifndef HIERO_SDK_CPP_IMPL_HEDERA_CERTIFICATE_VERIFIER_H_ +#define HIERO_SDK_CPP_IMPL_HEDERA_CERTIFICATE_VERIFIER_H_ #include #include -namespace Hedera::internal +namespace Hiero::internal { /** * Custom TLS verifier which checks if node TLS cert chain matches the expected hash @@ -70,6 +70,6 @@ class HederaCertificateVerifier : public grpc::experimental::ExternalCertificate } }; -} // namespace Hedera::internal +} // namespace Hiero::internal -#endif // HEDERA_SDK_CPP_IMPL_HEDERA_CERTIFICATE_VERIFIER_H_ +#endif // HIERO_SDK_CPP_IMPL_HEDERA_CERTIFICATE_VERIFIER_H_ diff --git a/src/sdk/main/include/impl/HexConverter.h b/src/sdk/main/include/impl/HexConverter.h index b019b0383..223aba899 100644 --- a/src/sdk/main/include/impl/HexConverter.h +++ b/src/sdk/main/include/impl/HexConverter.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,14 +17,14 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_HEX_CONVERTER_H_ -#define HEDERA_SDK_CPP_IMPL_HEX_CONVERTER_H_ +#ifndef HIERO_SDK_CPP_IMPL_HEX_CONVERTER_H_ +#define HIERO_SDK_CPP_IMPL_HEX_CONVERTER_H_ #include #include #include -namespace Hedera::internal::HexConverter +namespace Hiero::internal::HexConverter { /** * Convert an array of bytes to a hex string. @@ -55,6 +55,6 @@ std::vector hexToBytes(std::string_view hex); */ std::string base64ToHex(std::string_view base64); -} // namespace Hedera::internal::HexConverter +} // namespace Hiero::internal::HexConverter -#endif // HEDERA_SDK_CPP_IMPL_HEX_CONVERTER_H_ +#endif // HIERO_SDK_CPP_IMPL_HEX_CONVERTER_H_ diff --git a/src/sdk/main/include/impl/HttpClient.h b/src/sdk/main/include/impl/HttpClient.h index 746bd6e59..b728ab133 100644 --- a/src/sdk/main/include/impl/HttpClient.h +++ b/src/sdk/main/include/impl/HttpClient.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,14 +17,14 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_HTTP_CLIENT_H_ -#define HEDERA_SDK_CPP_IMPL_HTTP_CLIENT_H_ +#ifndef HIERO_SDK_CPP_IMPL_HTTP_CLIENT_H_ +#define HIERO_SDK_CPP_IMPL_HTTP_CLIENT_H_ #include #include #include -namespace Hedera::internal::HttpClient +namespace Hiero::internal::HttpClient { /** * Fetches data from the specified URL using the provided RPC method. @@ -46,6 +46,6 @@ namespace Hedera::internal::HttpClient std::string_view httpMethod = "GET", std::string_view requestBody = ""); -} // namespace Hedera::internal +} // namespace Hiero::internal -#endif // HEDERA_SDK_CPP_IMPL_HTTP_CLIENT_H_ \ No newline at end of file +#endif // HIERO_SDK_CPP_IMPL_HTTP_CLIENT_H_ \ No newline at end of file diff --git a/src/sdk/main/include/impl/MirrorNetwork.h b/src/sdk/main/include/impl/MirrorNetwork.h index 4342135c7..e5ed321f3 100644 --- a/src/sdk/main/include/impl/MirrorNetwork.h +++ b/src/sdk/main/include/impl/MirrorNetwork.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_MIRROR_NETWORK_H_ -#define HEDERA_SDK_CPP_IMPL_MIRROR_NETWORK_H_ +#ifndef HIERO_SDK_CPP_IMPL_MIRROR_NETWORK_H_ +#define HIERO_SDK_CPP_IMPL_MIRROR_NETWORK_H_ #include "BaseNetwork.h" #include "BaseNodeAddress.h" @@ -28,34 +28,34 @@ #include #include -namespace Hedera::internal +namespace Hiero::internal { class MirrorNode; } -namespace Hedera::internal +namespace Hiero::internal { class MirrorNetwork : public BaseNetwork { public: /** - * Construct a MirrorNetwork that is pre-configured for Hedera Mainnet access. + * Construct a MirrorNetwork that is pre-configured for Hiero Mainnet access. * - * @return A MirrorNetwork object that is set-up to communicate with the Hedera Mainnet. + * @return A MirrorNetwork object that is set-up to communicate with the Hiero Mainnet. */ [[nodiscard]] static MirrorNetwork forMainnet(); /** - * Construct a MirrorNetwork that is pre-configured for Hedera Testnet access. + * Construct a MirrorNetwork that is pre-configured for Hiero Testnet access. * - * @return A MirrorNetwork object that is set-up to communicate with the Hedera Testnet. + * @return A MirrorNetwork object that is set-up to communicate with the Hiero Testnet. */ [[nodiscard]] static MirrorNetwork forTestnet(); /** - * Construct a MirrorNetwork that is pre-configured for Hedera Previewnet access. + * Construct a MirrorNetwork that is pre-configured for Hiero Previewnet access. * - * @return A MirrorNetwork object that is set-up to communicate with the Hedera Previewnet. + * @return A MirrorNetwork object that is set-up to communicate with the Hiero Previewnet. */ [[nodiscard]] static MirrorNetwork forPreviewnet(); @@ -102,6 +102,6 @@ class MirrorNetwork : public BaseNetwork #include @@ -28,15 +28,15 @@ #include #include -namespace Hedera::internal +namespace Hiero::internal { class BaseNodeAddress; } -namespace Hedera::internal +namespace Hiero::internal { /** - * Internal utility class used to represent a mirror node on a Hedera network. + * Internal utility class used to represent a mirror node on a Hiero network. */ class MirrorNode : public BaseNode { @@ -111,6 +111,6 @@ class MirrorNode : public BaseNode std::shared_ptr mNetworkStub = nullptr; }; -} // namespace Hedera::internal +} // namespace Hiero::internal -#endif // HEDERA_SDK_CPP_IMPL_MIRROR_NODE_H_ +#endif // HIERO_SDK_CPP_IMPL_MIRROR_NODE_H_ diff --git a/src/sdk/main/include/impl/MirrorNodeGateway.h b/src/sdk/main/include/impl/MirrorNodeGateway.h index 83026db44..8ca1544d5 100644 --- a/src/sdk/main/include/impl/MirrorNodeGateway.h +++ b/src/sdk/main/include/impl/MirrorNodeGateway.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2023 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2023 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_MIRRORNODEGATEWAY_H -#define HEDERA_SDK_CPP_MIRRORNODEGATEWAY_H +#ifndef HIERO_SDK_CPP_MIRRORNODEGATEWAY_H +#define HIERO_SDK_CPP_MIRRORNODEGATEWAY_H #include "impl/HttpClient.h" #include "impl/MirrorNodeRouter.h" @@ -27,7 +27,7 @@ #include -namespace Hedera::internal::MirrorNodeGateway +namespace Hiero::internal::MirrorNodeGateway { /** * Perform a mirror node query. @@ -74,5 +74,5 @@ std::string buildUrlForNetwork(std::string_view mirrorNodeUrl, std::string_view queryType, const std::vector& params, bool& isLocalNetwork); -} // namespace Hedera::internal::MirrorNodeGateway -#endif // HEDERA_SDK_CPP_MIRRORNODEGATEWAY_H \ No newline at end of file +} // namespace Hiero::internal::MirrorNodeGateway +#endif // HIERO_SDK_CPP_MIRRORNODEGATEWAY_H \ No newline at end of file diff --git a/src/sdk/main/include/impl/MirrorNodeRouter.h b/src/sdk/main/include/impl/MirrorNodeRouter.h index d38b72fc2..1fd2a4289 100644 --- a/src/sdk/main/include/impl/MirrorNodeRouter.h +++ b/src/sdk/main/include/impl/MirrorNodeRouter.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2023 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2023 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. */ -#ifndef HEDERA_SDK_CPP_MIRRORNODEROUTER_H -#define HEDERA_SDK_CPP_MIRRORNODEROUTER_H +#ifndef HIERO_SDK_CPP_MIRRORNODEROUTER_H +#define HIERO_SDK_CPP_MIRRORNODEROUTER_H #include #include @@ -27,7 +27,7 @@ /** * Namespace for the internal classes related to the Mirror Node Gateway. */ -namespace Hedera::internal::MirrorNodeGateway +namespace Hiero::internal::MirrorNodeGateway { /** * Represents different mirror node query types. @@ -56,13 +56,13 @@ class MirrorNodeRouter * Internal mapping of mirror node query types to their respective routes. */ const std::unordered_map routes = { - {ACCOUNT_INFO_QUERY, "/api/v1/accounts/$" }, - { CONTRACT_INFO_QUERY, "/api/v1/contracts/$" }, - { TOKEN_RELATIONSHIPS_QUERY, "/api/v1/accounts/$/tokens"}, - { TOKEN_BALANCES_QUERY, "/api/v1/tokens/$/balances"} + { ACCOUNT_INFO_QUERY, "/api/v1/accounts/$" }, + { CONTRACT_INFO_QUERY, "/api/v1/contracts/$" }, + { TOKEN_RELATIONSHIPS_QUERY, "/api/v1/accounts/$/tokens" }, + { TOKEN_BALANCES_QUERY, "/api/v1/tokens/$/balances" } }; }; -} // namespace Hedera::internal::MirrorNodeGateway +} // namespace Hiero::internal::MirrorNodeGateway -#endif // HEDERA_SDK_CPP_MIRRORNODEROUTER_H +#endif // HIERO_SDK_CPP_MIRRORNODEROUTER_H diff --git a/src/sdk/main/include/impl/Network.h b/src/sdk/main/include/impl/Network.h index 5b65ba364..95fac1a7f 100644 --- a/src/sdk/main/include/impl/Network.h +++ b/src/sdk/main/include/impl/Network.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_NETWORK_H_ -#define HEDERA_SDK_CPP_IMPL_NETWORK_H_ +#ifndef HIERO_SDK_CPP_IMPL_NETWORK_H_ +#define HIERO_SDK_CPP_IMPL_NETWORK_H_ #include "BaseNetwork.h" @@ -27,7 +27,7 @@ #include #include -namespace Hedera +namespace Hiero { namespace internal { @@ -41,29 +41,29 @@ class NodeAddress; class NodeAddressBook; } -namespace Hedera::internal +namespace Hiero::internal { class Network : public BaseNetwork { public: /** - * Construct a Network that is pre-configured for Hedera Mainnet access. + * Construct a Network that is pre-configured for Hiero Mainnet access. * - * @return A Network object that is set-up to communicate with the Hedera Mainnet. + * @return A Network object that is set-up to communicate with the Hiero Mainnet. */ [[nodiscard]] static Network forMainnet(); /** - * Construct a Network that is pre-configured for Hedera Testnet access. + * Construct a Network that is pre-configured for Hiero Testnet access. * - * @return A Network object that is set-up to communicate with the Hedera Testnet. + * @return A Network object that is set-up to communicate with the Hiero Testnet. */ [[nodiscard]] static Network forTestnet(); /** - * Construct a Network that is pre-configured for Hedera Previewnet access. + * Construct a Network that is pre-configured for Hiero Previewnet access. * - * @return A Network object that is set-up to communicate with the Hedera Previewnet. + * @return A Network object that is set-up to communicate with the Hiero Previewnet. */ [[nodiscard]] static Network forPreviewnet(); @@ -205,6 +205,6 @@ class Network : public BaseNetwork bool mVerifyCertificates = true; }; -} // namespace Hedera::internal +} // namespace Hiero::internal -#endif // HEDERA_SDK_CPP_IMPL_NETWORK_H_ +#endif // HIERO_SDK_CPP_IMPL_NETWORK_H_ diff --git a/src/sdk/main/include/impl/Node.h b/src/sdk/main/include/impl/Node.h index 86b926fcf..6702c860a 100644 --- a/src/sdk/main/include/impl/Node.h +++ b/src/sdk/main/include/impl/Node.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_NODE_H_ -#define HEDERA_SDK_CPP_IMPL_NODE_H_ +#ifndef HIERO_SDK_CPP_IMPL_NODE_H_ +#define HIERO_SDK_CPP_IMPL_NODE_H_ #include #include @@ -39,15 +39,15 @@ #include #include -namespace Hedera::internal +namespace Hiero::internal { class BaseNodeAddress; } -namespace Hedera::internal +namespace Hiero::internal { /** - * Internal utility class used to represent a node on a Hedera network. + * Internal utility class used to represent a node on a Hiero network. */ class Node : public BaseNode { @@ -258,6 +258,6 @@ class Node : public BaseNode bool mVerifyCertificates = false; }; -} // namespace Hedera::internal +} // namespace Hiero::internal -#endif // HEDERA_SDK_CPP_IMPL_NODE_H_ +#endif // HIERO_SDK_CPP_IMPL_NODE_H_ diff --git a/src/sdk/main/include/impl/PrivateKeyImpl.h b/src/sdk/main/include/impl/PrivateKeyImpl.h index 0fda133c1..461c755e2 100644 --- a/src/sdk/main/include/impl/PrivateKeyImpl.h +++ b/src/sdk/main/include/impl/PrivateKeyImpl.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_PRIVATE_KEY_IMPL_H_ -#define HEDERA_SDK_CPP_IMPL_PRIVATE_KEY_IMPL_H_ +#ifndef HIERO_SDK_CPP_IMPL_PRIVATE_KEY_IMPL_H_ +#define HIERO_SDK_CPP_IMPL_PRIVATE_KEY_IMPL_H_ #include "PrivateKey.h" #include "impl/openssl_utils/EVP_PKEY.h" @@ -26,7 +26,7 @@ #include #include -namespace Hedera +namespace Hiero { /** * The implementation of the PrivateKey object. @@ -49,6 +49,6 @@ struct PrivateKey::PrivateKeyImpl std::shared_ptr mPublicKey = nullptr; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_IMPL_PRIVATE_KEY_IMPL_H_ +#endif // HIERO_SDK_CPP_IMPL_PRIVATE_KEY_IMPL_H_ diff --git a/src/sdk/main/include/impl/PublicKeyImpl.h b/src/sdk/main/include/impl/PublicKeyImpl.h index bc9a392d3..f46fe1768 100644 --- a/src/sdk/main/include/impl/PublicKeyImpl.h +++ b/src/sdk/main/include/impl/PublicKeyImpl.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,13 +17,13 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_PUBLIC_KEY_IMPL_H_ -#define HEDERA_SDK_CPP_IMPL_PUBLIC_KEY_IMPL_H_ +#ifndef HIERO_SDK_CPP_IMPL_PUBLIC_KEY_IMPL_H_ +#define HIERO_SDK_CPP_IMPL_PUBLIC_KEY_IMPL_H_ #include "PublicKey.h" #include "impl/openssl_utils/EVP_PKEY.h" -namespace Hedera +namespace Hiero { /** * The implementation of the PublicKey object. @@ -35,6 +35,6 @@ struct PublicKey::PublicKeyImpl */ internal::OpenSSLUtils::EVP_PKEY mKey; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_IMPL_PUBLIC_KEY_IMPL_H_ +#endif // HIERO_SDK_CPP_IMPL_PUBLIC_KEY_IMPL_H_ diff --git a/src/sdk/main/include/impl/RLPItem.h b/src/sdk/main/include/impl/RLPItem.h index 91b4fa285..1a0db8e6e 100644 --- a/src/sdk/main/include/impl/RLPItem.h +++ b/src/sdk/main/include/impl/RLPItem.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,14 +17,14 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_RLP_ITEM_H_ -#define HEDERA_SDK_CPP_IMPL_RLP_ITEM_H_ +#ifndef HIERO_SDK_CPP_IMPL_RLP_ITEM_H_ +#define HIERO_SDK_CPP_IMPL_RLP_ITEM_H_ #include #include #include -namespace Hedera +namespace Hiero { /** * Helper class used to hold RLP data and do RLP serialization for Ethereum data and transactions. @@ -176,6 +176,6 @@ class RLPItem std::vector mValues; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_IMPL_RLP_ITEM_H_ +#endif // HIERO_SDK_CPP_IMPL_RLP_ITEM_H_ diff --git a/src/sdk/main/include/impl/TLSBehavior.h b/src/sdk/main/include/impl/TLSBehavior.h index 97cce2ce6..5d229730e 100644 --- a/src/sdk/main/include/impl/TLSBehavior.h +++ b/src/sdk/main/include/impl/TLSBehavior.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,10 +17,10 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_TLS_BEHAVIOR_H_ -#define HEDERA_SDK_CPP_IMPL_TLS_BEHAVIOR_H_ +#ifndef HIERO_SDK_CPP_IMPL_TLS_BEHAVIOR_H_ +#define HIERO_SDK_CPP_IMPL_TLS_BEHAVIOR_H_ -namespace Hedera::internal +namespace Hiero::internal { /** * Enum representing different modes of network communication. @@ -37,6 +37,6 @@ enum class TLSBehavior REQUIRE }; -} // namespace Hedera::internal +} // namespace Hiero::internal -#endif // HEDERA_SDK_CPP_IMPL_TLS_BEHAVIOR_H_ +#endif // HIERO_SDK_CPP_IMPL_TLS_BEHAVIOR_H_ diff --git a/src/sdk/main/include/impl/TimestampConverter.h b/src/sdk/main/include/impl/TimestampConverter.h index 9435936f7..66a146101 100644 --- a/src/sdk/main/include/impl/TimestampConverter.h +++ b/src/sdk/main/include/impl/TimestampConverter.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_TIMESTAMP_CONVERTER_H_ -#define HEDERA_SDK_CPP_IMPL_TIMESTAMP_CONVERTER_H_ +#ifndef HIERO_SDK_CPP_IMPL_TIMESTAMP_CONVERTER_H_ +#define HIERO_SDK_CPP_IMPL_TIMESTAMP_CONVERTER_H_ #include #include @@ -30,7 +30,7 @@ class Timestamp; class TimestampSeconds; } -namespace Hedera::internal::TimestampConverter +namespace Hiero::internal::TimestampConverter { /** * Get the time point represented by a Timestamp protobuf object. @@ -72,6 +72,6 @@ proto::TimestampSeconds* toSecondsProtobuf(const std::chrono::system_clock::time */ [[nodiscard]] std::string toString(const std::chrono::system_clock::time_point& timestamp); -} // namespace Hedera::internal::TimestampConverter +} // namespace Hiero::internal::TimestampConverter -#endif // HEDERA_SDK_CPP_IMPL_TIMESTAMP_CONVERTER_H_ +#endif // HIERO_SDK_CPP_IMPL_TIMESTAMP_CONVERTER_H_ diff --git a/src/sdk/main/include/impl/Utilities.h b/src/sdk/main/include/impl/Utilities.h index 4eb9d72ac..c2e6368f7 100644 --- a/src/sdk/main/include/impl/Utilities.h +++ b/src/sdk/main/include/impl/Utilities.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_UTILITIES_H_ -#define HEDERA_SDK_CPP_IMPL_UTILITIES_H_ +#ifndef HIERO_SDK_CPP_IMPL_UTILITIES_H_ +#define HIERO_SDK_CPP_IMPL_UTILITIES_H_ #include #include @@ -28,7 +28,7 @@ #include -namespace Hedera::internal::Utilities +namespace Hiero::internal::Utilities { /** * Reinterpret a pointer to a pointer of a different type. @@ -175,6 +175,6 @@ template */ [[nodiscard]] nlohmann::json fromConfigFile(std::string_view path); -} // namespace Hedera::internal::Utilities +} // namespace Hiero::internal::Utilities -#endif // HEDERA_SDK_CPP_IMPL_UTILITIES_H_ +#endif // HIERO_SDK_CPP_IMPL_UTILITIES_H_ diff --git a/src/sdk/main/include/impl/openssl_utils/BIGNUM.h b/src/sdk/main/include/impl/openssl_utils/BIGNUM.h index 24f8c3881..af4fc8929 100644 --- a/src/sdk/main/include/impl/openssl_utils/BIGNUM.h +++ b/src/sdk/main/include/impl/openssl_utils/BIGNUM.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_BIGNUM_H_ -#define HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_BIGNUM_H_ +#ifndef HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_BIGNUM_H_ +#define HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_BIGNUM_H_ #include "exceptions/OpenSSLException.h" #include "impl/HexConverter.h" @@ -30,7 +30,7 @@ #include #include -namespace Hedera::internal::OpenSSLUtils +namespace Hiero::internal::OpenSSLUtils { /** * Wrapper class for the OpenSSL BIGNUM object. @@ -120,6 +120,6 @@ class BIGNUM : public OpenSSLObjectWrapper<::BIGNUM> } }; -} // namespace Hedera::internal::OpenSSLUtils +} // namespace Hiero::internal::OpenSSLUtils -#endif // HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_BIGNUM_H_ +#endif // HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_BIGNUM_H_ diff --git a/src/sdk/main/include/impl/openssl_utils/BN_CTX.h b/src/sdk/main/include/impl/openssl_utils/BN_CTX.h index e0165cc0e..2afbd5760 100644 --- a/src/sdk/main/include/impl/openssl_utils/BN_CTX.h +++ b/src/sdk/main/include/impl/openssl_utils/BN_CTX.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,14 +17,14 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_BN_CTX_H_ -#define HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_BN_CTX_H_ +#ifndef HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_BN_CTX_H_ +#define HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_BN_CTX_H_ #include "impl/openssl_utils/OpenSSLObjectWrapper.h" #include -namespace Hedera::internal::OpenSSLUtils +namespace Hiero::internal::OpenSSLUtils { /** * Wrapper class for the OpenSSL BN_CTX object. @@ -52,6 +52,6 @@ class BN_CTX : public OpenSSLObjectWrapper<::BN_CTX> } }; -} // namespace Hedera::internal::OpenSSLUtils +} // namespace Hiero::internal::OpenSSLUtils -#endif // HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_BN_CTX_H_ \ No newline at end of file +#endif // HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_BN_CTX_H_ \ No newline at end of file diff --git a/src/sdk/main/include/impl/openssl_utils/ECDSA_SIG.h b/src/sdk/main/include/impl/openssl_utils/ECDSA_SIG.h index a4004c343..210621e1b 100644 --- a/src/sdk/main/include/impl/openssl_utils/ECDSA_SIG.h +++ b/src/sdk/main/include/impl/openssl_utils/ECDSA_SIG.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,14 +17,14 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_ECDSA_SIG_H_ -#define HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_ECDSA_SIG_H_ +#ifndef HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_ECDSA_SIG_H_ +#define HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_ECDSA_SIG_H_ #include "impl/openssl_utils/OpenSSLObjectWrapper.h" #include -namespace Hedera::internal::OpenSSLUtils +namespace Hiero::internal::OpenSSLUtils { /** * Wrapper class for the OpenSSL ECDSA_SIG object. @@ -52,6 +52,6 @@ class ECDSA_SIG : public OpenSSLObjectWrapper<::ECDSA_SIG> } }; -} // namespace Hedera::internal::OpenSSLUtils +} // namespace Hiero::internal::OpenSSLUtils -#endif // HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_ECDSA_SIG_H_ +#endif // HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_ECDSA_SIG_H_ diff --git a/src/sdk/main/include/impl/openssl_utils/EC_GROUP.h b/src/sdk/main/include/impl/openssl_utils/EC_GROUP.h index e9a93c814..1f0e1047f 100644 --- a/src/sdk/main/include/impl/openssl_utils/EC_GROUP.h +++ b/src/sdk/main/include/impl/openssl_utils/EC_GROUP.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,14 +17,14 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_EC_GROUP_H_ -#define HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_EC_GROUP_H_ +#ifndef HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_EC_GROUP_H_ +#define HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_EC_GROUP_H_ #include "impl/openssl_utils/OpenSSLObjectWrapper.h" #include -namespace Hedera::internal::OpenSSLUtils +namespace Hiero::internal::OpenSSLUtils { /** * Wrapper class for the OpenSSL EC_GROUP object. @@ -43,6 +43,6 @@ class EC_GROUP : public OpenSSLObjectWrapper<::EC_GROUP> } }; -} // namespace Hedera::internal::OpenSSLUtils +} // namespace Hiero::internal::OpenSSLUtils -#endif // HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_EC_GROUP_H_ \ No newline at end of file +#endif // HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_EC_GROUP_H_ \ No newline at end of file diff --git a/src/sdk/main/include/impl/openssl_utils/EC_POINT.h b/src/sdk/main/include/impl/openssl_utils/EC_POINT.h index 116540065..0e00ae6ba 100644 --- a/src/sdk/main/include/impl/openssl_utils/EC_POINT.h +++ b/src/sdk/main/include/impl/openssl_utils/EC_POINT.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,14 +17,14 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_EC_POINT_H_ -#define HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_EC_POINT_H_ +#ifndef HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_EC_POINT_H_ +#define HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_EC_POINT_H_ #include "impl/openssl_utils/OpenSSLObjectWrapper.h" #include -namespace Hedera::internal::OpenSSLUtils +namespace Hiero::internal::OpenSSLUtils { /** * Wrapper class for the OpenSSL EC_POINT object. @@ -52,6 +52,6 @@ class EC_POINT : public OpenSSLObjectWrapper<::EC_POINT> } }; -} // namespace Hedera::internal::OpenSSLUtils +} // namespace Hiero::internal::OpenSSLUtils -#endif // HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_EC_POINT_H_ +#endif // HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_EC_POINT_H_ diff --git a/src/sdk/main/include/impl/openssl_utils/EVP_MD.h b/src/sdk/main/include/impl/openssl_utils/EVP_MD.h index 0899cec87..a980ffaa0 100644 --- a/src/sdk/main/include/impl/openssl_utils/EVP_MD.h +++ b/src/sdk/main/include/impl/openssl_utils/EVP_MD.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,14 +17,14 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_EVP_MD_H_ -#define HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_EVP_MD_H_ +#ifndef HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_EVP_MD_H_ +#define HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_EVP_MD_H_ #include "impl/openssl_utils/OpenSSLObjectWrapper.h" #include -namespace Hedera::internal::OpenSSLUtils +namespace Hiero::internal::OpenSSLUtils { /** * Wrapper class for the OpenSSL EVP_MD object. @@ -52,6 +52,6 @@ class EVP_MD : public OpenSSLObjectWrapper<::EVP_MD> } }; -} // namespace Hedera::internal::OpenSSLUtils +} // namespace Hiero::internal::OpenSSLUtils -#endif // HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_EVP_MD_H_ +#endif // HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_EVP_MD_H_ diff --git a/src/sdk/main/include/impl/openssl_utils/EVP_MD_CTX.h b/src/sdk/main/include/impl/openssl_utils/EVP_MD_CTX.h index 59487a865..c2aaae7ce 100644 --- a/src/sdk/main/include/impl/openssl_utils/EVP_MD_CTX.h +++ b/src/sdk/main/include/impl/openssl_utils/EVP_MD_CTX.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,14 +17,14 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_EVP_MD_CTX_H_ -#define HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_EVP_MD_CTX_H_ +#ifndef HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_EVP_MD_CTX_H_ +#define HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_EVP_MD_CTX_H_ #include "impl/openssl_utils/OpenSSLObjectWrapper.h" #include -namespace Hedera::internal::OpenSSLUtils +namespace Hiero::internal::OpenSSLUtils { /** * Wrapper class for the OpenSSL EVP_MD_CTX object. @@ -52,6 +52,6 @@ class EVP_MD_CTX : public OpenSSLObjectWrapper<::EVP_MD_CTX> } }; -} // namespace Hedera::internal::OpenSSLUtils +} // namespace Hiero::internal::OpenSSLUtils -#endif // HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_EVP_MD_CTX_H_ +#endif // HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_EVP_MD_CTX_H_ diff --git a/src/sdk/main/include/impl/openssl_utils/EVP_PKEY.h b/src/sdk/main/include/impl/openssl_utils/EVP_PKEY.h index 65566bc01..7acfbed0b 100644 --- a/src/sdk/main/include/impl/openssl_utils/EVP_PKEY.h +++ b/src/sdk/main/include/impl/openssl_utils/EVP_PKEY.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,14 +17,14 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_EVP_PKEY_H_ -#define HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_EVP_PKEY_H_ +#ifndef HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_EVP_PKEY_H_ +#define HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_EVP_PKEY_H_ #include "impl/openssl_utils/OpenSSLObjectWrapper.h" #include -namespace Hedera::internal::OpenSSLUtils +namespace Hiero::internal::OpenSSLUtils { /** * Wrapper class for the OpenSSL EVP_PKEY object. @@ -45,6 +45,6 @@ class EVP_PKEY : public OpenSSLObjectWrapper<::EVP_PKEY, decltype(&EVP_PKEY_dup) } }; -} // namespace Hedera::internal::OpenSSLUtils +} // namespace Hiero::internal::OpenSSLUtils -#endif // HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_EVP_PKEY_H_ +#endif // HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_EVP_PKEY_H_ diff --git a/src/sdk/main/include/impl/openssl_utils/EVP_PKEY_CTX.h b/src/sdk/main/include/impl/openssl_utils/EVP_PKEY_CTX.h index 2019224b4..828726fe0 100644 --- a/src/sdk/main/include/impl/openssl_utils/EVP_PKEY_CTX.h +++ b/src/sdk/main/include/impl/openssl_utils/EVP_PKEY_CTX.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,14 +17,14 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_EVP_PKEY_CTX_H_ -#define HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_EVP_PKEY_CTX_H_ +#ifndef HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_EVP_PKEY_CTX_H_ +#define HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_EVP_PKEY_CTX_H_ #include "impl/openssl_utils/OpenSSLObjectWrapper.h" #include -namespace Hedera::internal::OpenSSLUtils +namespace Hiero::internal::OpenSSLUtils { /** * Wrapper class for the OpenSSL EVP_PKEY_CTX object. @@ -44,6 +44,6 @@ class EVP_PKEY_CTX : public OpenSSLObjectWrapper<::EVP_PKEY_CTX> } }; -} // namespace Hedera::internal::OpenSSLUtils +} // namespace Hiero::internal::OpenSSLUtils -#endif // HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_EVP_PKEY_CTX_H_ +#endif // HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_EVP_PKEY_CTX_H_ diff --git a/src/sdk/main/include/impl/openssl_utils/OSSL_DECODER_CTX.h b/src/sdk/main/include/impl/openssl_utils/OSSL_DECODER_CTX.h index 6d4354ffb..6c3506eef 100644 --- a/src/sdk/main/include/impl/openssl_utils/OSSL_DECODER_CTX.h +++ b/src/sdk/main/include/impl/openssl_utils/OSSL_DECODER_CTX.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,14 +17,14 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_OSSL_DECODER_CTX_H_ -#define HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_OSSL_DECODER_CTX_H_ +#ifndef HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_OSSL_DECODER_CTX_H_ +#define HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_OSSL_DECODER_CTX_H_ #include "impl/openssl_utils/OpenSSLObjectWrapper.h" #include -namespace Hedera::internal::OpenSSLUtils +namespace Hiero::internal::OpenSSLUtils { /** * Wrapper class for the OpenSSL OSSL_DECODER_CTX object. @@ -52,6 +52,6 @@ class OSSL_DECODER_CTX : public OpenSSLObjectWrapper<::OSSL_DECODER_CTX> } }; -} // namespace Hedera::internal::OpenSSLUtils +} // namespace Hiero::internal::OpenSSLUtils -#endif // HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_OSSL_DECODER_CTX_H_ +#endif // HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_OSSL_DECODER_CTX_H_ diff --git a/src/sdk/main/include/impl/openssl_utils/OSSL_LIB_CTX.h b/src/sdk/main/include/impl/openssl_utils/OSSL_LIB_CTX.h index 7b3229b6e..8821ca0e0 100644 --- a/src/sdk/main/include/impl/openssl_utils/OSSL_LIB_CTX.h +++ b/src/sdk/main/include/impl/openssl_utils/OSSL_LIB_CTX.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,14 +17,14 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_OSSL_LIB_CTX_H_ -#define HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_OSSL_LIB_CTX_H_ +#ifndef HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_OSSL_LIB_CTX_H_ +#define HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_OSSL_LIB_CTX_H_ #include "impl/openssl_utils/OpenSSLObjectWrapper.h" #include -namespace Hedera::internal::OpenSSLUtils +namespace Hiero::internal::OpenSSLUtils { /** * Wrapper class for the OpenSSL OSSL_LIB_CTX object. @@ -52,6 +52,6 @@ class OSSL_LIB_CTX : public OpenSSLObjectWrapper<::OSSL_LIB_CTX> } }; -} // namespace Hedera::internal::OpenSSLUtils +} // namespace Hiero::internal::OpenSSLUtils -#endif // HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_OSSL_LIB_CTX_H_ +#endif // HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_OSSL_LIB_CTX_H_ diff --git a/src/sdk/main/include/impl/openssl_utils/OpenSSLObjectWrapper.h b/src/sdk/main/include/impl/openssl_utils/OpenSSLObjectWrapper.h index 15716969e..20b4af1c5 100644 --- a/src/sdk/main/include/impl/openssl_utils/OpenSSLObjectWrapper.h +++ b/src/sdk/main/include/impl/openssl_utils/OpenSSLObjectWrapper.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,13 +17,13 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_OPENSSL_OBJECT_WRAPPER_H_ -#define HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_OPENSSL_OBJECT_WRAPPER_H_ +#ifndef HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_OPENSSL_OBJECT_WRAPPER_H_ +#define HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_OPENSSL_OBJECT_WRAPPER_H_ #include #include -namespace Hedera::internal::OpenSSLUtils +namespace Hiero::internal::OpenSSLUtils { /** * Templated base wrapper class to be used for OpenSSL objects that require custom deleter and copier functions. @@ -119,6 +119,6 @@ class OpenSSLObjectWrapper CopierFunc mCopier; }; -} // namespace Hedera::internal::Utils +} // namespace Hiero::internal::Utils -#endif // HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_OPENSSL_OBJECT_WRAPPER_H_ +#endif // HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_OPENSSL_OBJECT_WRAPPER_H_ diff --git a/src/sdk/main/include/impl/openssl_utils/OpenSSLUtils.h b/src/sdk/main/include/impl/openssl_utils/OpenSSLUtils.h index e7a07c49c..9266e7579 100644 --- a/src/sdk/main/include/impl/openssl_utils/OpenSSLUtils.h +++ b/src/sdk/main/include/impl/openssl_utils/OpenSSLUtils.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,14 +17,14 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_OPENSSL_UTILS_H_ -#define HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_OPENSSL_UTILS_H_ +#ifndef HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_OPENSSL_UTILS_H_ +#define HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_OPENSSL_UTILS_H_ #include #include #include -namespace Hedera::internal::OpenSSLUtils +namespace Hiero::internal::OpenSSLUtils { /** * The size of a SHA256 hash (in bytes). @@ -100,6 +100,6 @@ constexpr const size_t ERROR_MSG_SIZE = 256ULL; */ [[nodiscard]] std::vector getRandomBytes(int count); -} // namespace Hedera::internal::OpenSSLUtils +} // namespace Hiero::internal::OpenSSLUtils -#endif // HEDERA_SDK_CPP_IMPL_OPENSSL_UTILS_OPENSSL_UTILS_H_ +#endif // HIERO_SDK_CPP_IMPL_OPENSSL_UTILS_OPENSSL_UTILS_H_ diff --git a/src/sdk/main/src/AccountAllowanceApproveTransaction.cc b/src/sdk/main/src/AccountAllowanceApproveTransaction.cc index af322d8af..28a8ca499 100644 --- a/src/sdk/main/src/AccountAllowanceApproveTransaction.cc +++ b/src/sdk/main/src/AccountAllowanceApproveTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- AccountAllowanceApproveTransaction::AccountAllowanceApproveTransaction(const proto::TransactionBody& transactionBody) @@ -216,4 +216,4 @@ proto::CryptoApproveAllowanceTransactionBody* AccountAllowanceApproveTransaction return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/AccountAllowanceDeleteTransaction.cc b/src/sdk/main/src/AccountAllowanceDeleteTransaction.cc index 8073362bc..3d5a21752 100644 --- a/src/sdk/main/src/AccountAllowanceDeleteTransaction.cc +++ b/src/sdk/main/src/AccountAllowanceDeleteTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- AccountAllowanceDeleteTransaction::AccountAllowanceDeleteTransaction(const proto::TransactionBody& transactionBody) @@ -146,4 +146,4 @@ proto::CryptoDeleteAllowanceTransactionBody* AccountAllowanceDeleteTransaction:: return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/AccountBalance.cc b/src/sdk/main/src/AccountBalance.cc index 99ce7d84a..f3a7eebe7 100644 --- a/src/sdk/main/src/AccountBalance.cc +++ b/src/sdk/main/src/AccountBalance.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- AccountBalance AccountBalance::fromProtobuf(const proto::CryptoGetAccountBalanceResponse& proto) @@ -77,4 +77,4 @@ std::ostream& operator<<(std::ostream& os, const AccountBalance& balance) return os; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/AccountBalanceQuery.cc b/src/sdk/main/src/AccountBalanceQuery.cc index ac4f39e91..a17123032 100644 --- a/src/sdk/main/src/AccountBalanceQuery.cc +++ b/src/sdk/main/src/AccountBalanceQuery.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ using json = nlohmann::json; -namespace Hedera +namespace Hiero { //----- AccountBalanceQuery& AccountBalanceQuery::setAccountId(const AccountId& accountId) @@ -115,4 +115,4 @@ proto::ResponseHeader AccountBalanceQuery::mapResponseHeader(const proto::Respon return response.cryptogetaccountbalance().header(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/AccountCreateTransaction.cc b/src/sdk/main/src/AccountCreateTransaction.cc index e6d0d2f63..71fb35af0 100644 --- a/src/sdk/main/src/AccountCreateTransaction.cc +++ b/src/sdk/main/src/AccountCreateTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- AccountCreateTransaction::AccountCreateTransaction() @@ -254,4 +254,4 @@ proto::CryptoCreateTransactionBody* AccountCreateTransaction::build() const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/AccountDeleteTransaction.cc b/src/sdk/main/src/AccountDeleteTransaction.cc index 64f9bba15..eae2fed61 100644 --- a/src/sdk/main/src/AccountDeleteTransaction.cc +++ b/src/sdk/main/src/AccountDeleteTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- AccountDeleteTransaction::AccountDeleteTransaction(const proto::TransactionBody& transactionBody) @@ -130,4 +130,4 @@ proto::CryptoDeleteTransactionBody* AccountDeleteTransaction::build() const return body.release(); } -} // namespace Hedera \ No newline at end of file +} // namespace Hiero \ No newline at end of file diff --git a/src/sdk/main/src/AccountId.cc b/src/sdk/main/src/AccountId.cc index 23143bc40..89d9116c0 100644 --- a/src/sdk/main/src/AccountId.cc +++ b/src/sdk/main/src/AccountId.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ using json = nlohmann::json; -namespace Hedera +namespace Hiero { //----- AccountId::AccountId(uint64_t num) @@ -348,4 +348,4 @@ std::vector AccountId::toBytes() const return internal::Utilities::stringToByteVector(toProtobuf()->SerializeAsString()); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/AccountInfo.cc b/src/sdk/main/src/AccountInfo.cc index c109cced9..638108254 100644 --- a/src/sdk/main/src/AccountInfo.cc +++ b/src/sdk/main/src/AccountInfo.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- AccountInfo AccountInfo::fromProtobuf(const proto::CryptoGetInfoResponse_AccountInfo& proto) @@ -197,4 +197,4 @@ std::ostream& operator<<(std::ostream& os, const AccountInfo& info) return os; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/AccountInfoQuery.cc b/src/sdk/main/src/AccountInfoQuery.cc index f3c58b624..70a9d25bb 100644 --- a/src/sdk/main/src/AccountInfoQuery.cc +++ b/src/sdk/main/src/AccountInfoQuery.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -34,7 +34,7 @@ using json = nlohmann::json; -namespace Hedera +namespace Hiero { //----- AccountInfoQuery& AccountInfoQuery::setAccountId(const AccountId& accountId) @@ -84,4 +84,4 @@ proto::ResponseHeader AccountInfoQuery::mapResponseHeader(const proto::Response& return response.cryptogetinfo().header(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/AccountRecords.cc b/src/sdk/main/src/AccountRecords.cc index 4bcf02387..aefbe180b 100644 --- a/src/sdk/main/src/AccountRecords.cc +++ b/src/sdk/main/src/AccountRecords.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- AccountRecords AccountRecords::fromProtobuf(const proto::CryptoGetAccountRecordsResponse& proto) @@ -86,4 +86,4 @@ std::ostream& operator<<(std::ostream& os, const AccountRecords& records) return os; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/AccountRecordsQuery.cc b/src/sdk/main/src/AccountRecordsQuery.cc index d74d9d567..bc988ba98 100644 --- a/src/sdk/main/src/AccountRecordsQuery.cc +++ b/src/sdk/main/src/AccountRecordsQuery.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- AccountRecordsQuery& AccountRecordsQuery::setAccountId(const AccountId& accountId) @@ -75,4 +75,4 @@ proto::ResponseHeader AccountRecordsQuery::mapResponseHeader(const proto::Respon return response.cryptogetaccountrecords().header(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/AccountStakersQuery.cc b/src/sdk/main/src/AccountStakersQuery.cc index 5c6019123..5646c589b 100644 --- a/src/sdk/main/src/AccountStakersQuery.cc +++ b/src/sdk/main/src/AccountStakersQuery.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- AccountStakersQuery& AccountStakersQuery::setAccountId(const AccountId& accountId) @@ -84,4 +84,4 @@ proto::ResponseHeader AccountStakersQuery::mapResponseHeader(const proto::Respon return response.cryptogetproxystakers().header(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/AccountUpdateTransaction.cc b/src/sdk/main/src/AccountUpdateTransaction.cc index 0ec64a420..f8dececc9 100644 --- a/src/sdk/main/src/AccountUpdateTransaction.cc +++ b/src/sdk/main/src/AccountUpdateTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- AccountUpdateTransaction::AccountUpdateTransaction(const proto::TransactionBody& transactionBody) @@ -319,4 +319,4 @@ proto::CryptoUpdateTransactionBody* AccountUpdateTransaction::build() const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/AddressBookQuery.cc b/src/sdk/main/src/AddressBookQuery.cc index ea322087d..441eeb6d4 100644 --- a/src/sdk/main/src/AddressBookQuery.cc +++ b/src/sdk/main/src/AddressBookQuery.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- NodeAddressBook AddressBookQuery::execute(const Client& client) @@ -133,4 +133,4 @@ com::hedera::mirror::api::proto::AddressBookQuery AddressBookQuery::build() cons return addressBookQuery; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/AssessedCustomFee.cc b/src/sdk/main/src/AssessedCustomFee.cc index 515d1b003..a8dde02da 100644 --- a/src/sdk/main/src/AssessedCustomFee.cc +++ b/src/sdk/main/src/AssessedCustomFee.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- AssessedCustomFee AssessedCustomFee::fromProtobuf(const proto::AssessedCustomFee& proto) @@ -109,4 +109,4 @@ std::ostream& operator<<(std::ostream& os, const AssessedCustomFee& fee) return os; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/ChunkedTransaction.cc b/src/sdk/main/src/ChunkedTransaction.cc index 359f94d72..40345d76a 100644 --- a/src/sdk/main/src/ChunkedTransaction.cc +++ b/src/sdk/main/src/ChunkedTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -34,7 +34,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- template @@ -593,4 +593,4 @@ unsigned int ChunkedTransaction::getNumberOfChunksRequired() con template class ChunkedTransaction; template class ChunkedTransaction; -} // namespace Hedera \ No newline at end of file +} // namespace Hiero \ No newline at end of file diff --git a/src/sdk/main/src/Client.cc b/src/sdk/main/src/Client.cc index a11b549dc..35318c6ae 100644 --- a/src/sdk/main/src/Client.cc +++ b/src/sdk/main/src/Client.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -41,17 +41,17 @@ #include #include -namespace Hedera +namespace Hiero { //----- struct Client::ClientImpl { - // Pointer to the network object that contains all processing for sending/receiving information to/from a Hedera + // Pointer to the network object that contains all processing for sending/receiving information to/from a Hiero // network. std::shared_ptr mNetwork = nullptr; // Pointer to the MirrorNetwork object that contains the mirror nodes for sending/receiving information to/from a - // Hedera mirror node. + // Hiero mirror node. std::shared_ptr mMirrorNetwork = nullptr; // The Logger used by this Client. @@ -1161,4 +1161,4 @@ void Client::moveClient(Client&& other) } } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/ContractByteCodeQuery.cc b/src/sdk/main/src/ContractByteCodeQuery.cc index 3addbf825..32312d331 100644 --- a/src/sdk/main/src/ContractByteCodeQuery.cc +++ b/src/sdk/main/src/ContractByteCodeQuery.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- ContractByteCodeQuery& ContractByteCodeQuery::setContractId(const ContractId& contractId) @@ -75,4 +75,4 @@ proto::ResponseHeader ContractByteCodeQuery::mapResponseHeader(const proto::Resp return response.contractgetbytecoderesponse().header(); } -} // namespace Hedera \ No newline at end of file +} // namespace Hiero \ No newline at end of file diff --git a/src/sdk/main/src/ContractCallQuery.cc b/src/sdk/main/src/ContractCallQuery.cc index 806b5dc63..2e82edea5 100644 --- a/src/sdk/main/src/ContractCallQuery.cc +++ b/src/sdk/main/src/ContractCallQuery.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- ContractCallQuery& ContractCallQuery::setFunction(std::string_view name, const ContractFunctionParameters& parameters) @@ -110,4 +110,4 @@ proto::ResponseHeader ContractCallQuery::mapResponseHeader(const proto::Response return response.contractcalllocal().header(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/ContractCreateFlow.cc b/src/sdk/main/src/ContractCreateFlow.cc index e5cdac600..261a61dee 100644 --- a/src/sdk/main/src/ContractCreateFlow.cc +++ b/src/sdk/main/src/ContractCreateFlow.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ #include "exceptions/UninitializedException.h" #include "impl/Utilities.h" -namespace Hedera +namespace Hiero { //----- TransactionResponse ContractCreateFlow::execute(const Client& client) @@ -296,4 +296,4 @@ ContractCreateFlow& ContractCreateFlow::signWithOperator(const Client& client) return *this; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/ContractCreateTransaction.cc b/src/sdk/main/src/ContractCreateTransaction.cc index d6e3fcb16..edac55cf5 100644 --- a/src/sdk/main/src/ContractCreateTransaction.cc +++ b/src/sdk/main/src/ContractCreateTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- ContractCreateTransaction::ContractCreateTransaction() @@ -303,4 +303,4 @@ proto::ContractCreateTransactionBody* ContractCreateTransaction::build() const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/ContractDeleteTransaction.cc b/src/sdk/main/src/ContractDeleteTransaction.cc index fb7f513a3..5fd51fc26 100644 --- a/src/sdk/main/src/ContractDeleteTransaction.cc +++ b/src/sdk/main/src/ContractDeleteTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- ContractDeleteTransaction::ContractDeleteTransaction(const proto::TransactionBody& transactionBody) @@ -148,4 +148,4 @@ proto::ContractDeleteTransactionBody* ContractDeleteTransaction::build() const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/ContractExecuteTransaction.cc b/src/sdk/main/src/ContractExecuteTransaction.cc index 3449a806a..b6a4e27a6 100644 --- a/src/sdk/main/src/ContractExecuteTransaction.cc +++ b/src/sdk/main/src/ContractExecuteTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- ContractExecuteTransaction::ContractExecuteTransaction(const proto::TransactionBody& transactionBody) @@ -139,4 +139,4 @@ proto::ContractCallTransactionBody* ContractExecuteTransaction::build() const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/ContractFunctionParameters.cc b/src/sdk/main/src/ContractFunctionParameters.cc index ef6ebbcaa..8047f8408 100644 --- a/src/sdk/main/src/ContractFunctionParameters.cc +++ b/src/sdk/main/src/ContractFunctionParameters.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -namespace Hedera +namespace Hiero { namespace { @@ -67,7 +67,7 @@ const std::vector NEGATIVE_PADDING(31, std::byte(0xFF)); { const std::vector& padding = negative ? NEGATIVE_PADDING : POSITIVE_PADDING; return internal::Utilities::concatenateVectors({ - {padding.cbegin(), padding.cbegin() + getPaddingAmount(bytes)}, + { padding.cbegin(), padding.cbegin() + getPaddingAmount(bytes) }, bytes }); } @@ -81,7 +81,7 @@ const std::vector NEGATIVE_PADDING(31, std::byte(0xFF)); [[nodiscard]] std::vector rightPad(const std::vector& bytes, bool = false) { return internal::Utilities::concatenateVectors({ - bytes, {POSITIVE_PADDING.cbegin(), POSITIVE_PADDING.cbegin() + getPaddingAmount(bytes)} + bytes, { POSITIVE_PADDING.cbegin(), POSITIVE_PADDING.cbegin() + getPaddingAmount(bytes) } }); } @@ -532,4 +532,4 @@ std::vector ContractFunctionParameters::toBytes(std::string_view name return internal::Utilities::concatenateVectors({ functionBytes, paramsBytes, dynamicBytes }); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/ContractFunctionResult.cc b/src/sdk/main/src/ContractFunctionResult.cc index 23bfa5956..158d529e3 100644 --- a/src/sdk/main/src/ContractFunctionResult.cc +++ b/src/sdk/main/src/ContractFunctionResult.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- ContractFunctionResult ContractFunctionResult::fromProtobuf(const proto::ContractFunctionResult& proto) @@ -277,4 +277,4 @@ std::vector ContractFunctionResult::getByteString(int start, int end) return { mContractCallResult.cbegin() + start, mContractCallResult.cbegin() + end }; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/ContractFunctionSelector.cc b/src/sdk/main/src/ContractFunctionSelector.cc index 37bbbe84a..215910705 100644 --- a/src/sdk/main/src/ContractFunctionSelector.cc +++ b/src/sdk/main/src/ContractFunctionSelector.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include -namespace Hedera +namespace Hiero { //----- ContractFunctionSelector& ContractFunctionSelector::addString() @@ -207,4 +207,4 @@ std::vector ContractFunctionSelector::finish(std::string_view name) c return { keccak256Hash.cbegin(), keccak256Hash.cbegin() + 4 }; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/ContractId.cc b/src/sdk/main/src/ContractId.cc index 923a60e36..a8e9399ab 100644 --- a/src/sdk/main/src/ContractId.cc +++ b/src/sdk/main/src/ContractId.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- ContractId::ContractId(uint64_t num) @@ -263,4 +263,4 @@ std::string ContractId::toStringWithChecksum(const Client& client) const return internal::EntityIdHelper::toString(mShardNum, mRealmNum, mContractNum.value(), mChecksum); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/ContractInfo.cc b/src/sdk/main/src/ContractInfo.cc index daec7d6cf..c059cde1d 100644 --- a/src/sdk/main/src/ContractInfo.cc +++ b/src/sdk/main/src/ContractInfo.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- ContractInfo ContractInfo::fromProtobuf(const proto::ContractGetInfoResponse_ContractInfo& proto) @@ -176,4 +176,4 @@ std::ostream& operator<<(std::ostream& os, const ContractInfo& info) return os; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/ContractInfoQuery.cc b/src/sdk/main/src/ContractInfoQuery.cc index 260633fee..ef3177e72 100644 --- a/src/sdk/main/src/ContractInfoQuery.cc +++ b/src/sdk/main/src/ContractInfoQuery.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -32,7 +32,7 @@ using json = nlohmann::json; -namespace Hedera +namespace Hiero { //----- ContractInfoQuery& ContractInfoQuery::setContractId(const ContractId& contractId) @@ -82,4 +82,4 @@ proto::ResponseHeader ContractInfoQuery::mapResponseHeader(const proto::Response return response.contractgetinfo().header(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/ContractLogInfo.cc b/src/sdk/main/src/ContractLogInfo.cc index 7584270d1..dae254cd1 100644 --- a/src/sdk/main/src/ContractLogInfo.cc +++ b/src/sdk/main/src/ContractLogInfo.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- ContractLogInfo ContractLogInfo::fromProtobuf(const proto::ContractLoginfo& proto) @@ -92,4 +92,4 @@ std::ostream& operator<<(std::ostream& os, const ContractLogInfo& logInfo) return os; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/ContractNonceInfo.cc b/src/sdk/main/src/ContractNonceInfo.cc index 7f8d6efa0..1fd09d9fe 100644 --- a/src/sdk/main/src/ContractNonceInfo.cc +++ b/src/sdk/main/src/ContractNonceInfo.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include -namespace Hedera +namespace Hiero { //----- ContractNonceInfo::ContractNonceInfo(ContractId contractId, int64_t nonce) @@ -86,4 +86,4 @@ std::ostream& operator<<(std::ostream& os, const ContractNonceInfo& nonceInfo) return os; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/ContractUpdateTransaction.cc b/src/sdk/main/src/ContractUpdateTransaction.cc index 28bbcdbd8..0647ff9cb 100644 --- a/src/sdk/main/src/ContractUpdateTransaction.cc +++ b/src/sdk/main/src/ContractUpdateTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- ContractUpdateTransaction::ContractUpdateTransaction(const proto::TransactionBody& transactionBody) @@ -290,4 +290,4 @@ proto::ContractUpdateTransactionBody* ContractUpdateTransaction::build() const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/CustomFee.cc b/src/sdk/main/src/CustomFee.cc index 5e38941cc..ae23e41f8 100644 --- a/src/sdk/main/src/CustomFee.cc +++ b/src/sdk/main/src/CustomFee.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include -namespace Hedera +namespace Hiero { //----- std::unique_ptr CustomFee::fromProtobuf(const proto::CustomFee& proto) @@ -94,4 +94,4 @@ std::unique_ptr CustomFee::initProtobuf() const return fee; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/CustomFeeBase.cc b/src/sdk/main/src/CustomFeeBase.cc index 2b74e13af..df74e6bed 100644 --- a/src/sdk/main/src/CustomFeeBase.cc +++ b/src/sdk/main/src/CustomFeeBase.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include -namespace Hedera +namespace Hiero { //----- template @@ -49,4 +49,4 @@ template class CustomFeeBase; template class CustomFeeBase; template class CustomFeeBase; -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/CustomFixedFee.cc b/src/sdk/main/src/CustomFixedFee.cc index dd5a34a2a..3fed791de 100644 --- a/src/sdk/main/src/CustomFixedFee.cc +++ b/src/sdk/main/src/CustomFixedFee.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- CustomFixedFee CustomFixedFee::fromProtobuf(const proto::FixedFee& proto) @@ -128,4 +128,4 @@ CustomFixedFee& CustomFixedFee::setDenominatingTokenToSameToken() return *this; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/CustomFractionalFee.cc b/src/sdk/main/src/CustomFractionalFee.cc index 5f95ead61..bbbdbae55 100644 --- a/src/sdk/main/src/CustomFractionalFee.cc +++ b/src/sdk/main/src/CustomFractionalFee.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- CustomFractionalFee CustomFractionalFee::fromProtobuf(const proto::FractionalFee& proto) @@ -106,10 +106,10 @@ CustomFractionalFee& CustomFractionalFee::setMaximumAmount(const uint64_t& amoun } //----- -CustomFractionalFee& CustomFractionalFee::setAssessmentMethod(Hedera::FeeAssessmentMethod method) +CustomFractionalFee& CustomFractionalFee::setAssessmentMethod(Hiero::FeeAssessmentMethod method) { mAssessmentMethod = method; return *this; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/CustomRoyaltyFee.cc b/src/sdk/main/src/CustomRoyaltyFee.cc index 9e30563da..6baa478cd 100644 --- a/src/sdk/main/src/CustomRoyaltyFee.cc +++ b/src/sdk/main/src/CustomRoyaltyFee.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- CustomRoyaltyFee CustomRoyaltyFee::fromProtobuf(const proto::RoyaltyFee& proto) @@ -102,4 +102,4 @@ CustomRoyaltyFee& CustomRoyaltyFee::setFallbackFee(const CustomFixedFee& fee) return *this; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/DelegateContractId.cc b/src/sdk/main/src/DelegateContractId.cc index f67b4064a..8ded0c9c9 100644 --- a/src/sdk/main/src/DelegateContractId.cc +++ b/src/sdk/main/src/DelegateContractId.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include -namespace Hedera +namespace Hiero { //----- DelegateContractId::DelegateContractId(uint64_t num) @@ -88,4 +88,4 @@ std::unique_ptr DelegateContractId::toProtobufKey() const return proto; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/ECDSAsecp256k1PrivateKey.cc b/src/sdk/main/src/ECDSAsecp256k1PrivateKey.cc index 4dc03bd5f..531893c59 100644 --- a/src/sdk/main/src/ECDSAsecp256k1PrivateKey.cc +++ b/src/sdk/main/src/ECDSAsecp256k1PrivateKey.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ #include #include -namespace Hedera +namespace Hiero { namespace { @@ -329,4 +329,4 @@ ECDSAsecp256k1PrivateKey::ECDSAsecp256k1PrivateKey(internal::OpenSSLUtils::EVP_P { } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/ECDSAsecp256k1PublicKey.cc b/src/sdk/main/src/ECDSAsecp256k1PublicKey.cc index 137ecbc7b..602f7cb98 100644 --- a/src/sdk/main/src/ECDSAsecp256k1PublicKey.cc +++ b/src/sdk/main/src/ECDSAsecp256k1PublicKey.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -43,7 +43,7 @@ #include #include -namespace Hedera +namespace Hiero { namespace { @@ -439,4 +439,4 @@ std::shared_ptr ECDSAsecp256k1PublicKey::getShared() const std::dynamic_pointer_cast(shared_from_this())); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/ED25519PrivateKey.cc b/src/sdk/main/src/ED25519PrivateKey.cc index eee562abf..b7f60edd7 100644 --- a/src/sdk/main/src/ED25519PrivateKey.cc +++ b/src/sdk/main/src/ED25519PrivateKey.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -35,7 +35,7 @@ #include #include -namespace Hedera +namespace Hiero { namespace { @@ -292,4 +292,4 @@ ED25519PrivateKey::ED25519PrivateKey(internal::OpenSSLUtils::EVP_PKEY&& key, std { } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/ED25519PublicKey.cc b/src/sdk/main/src/ED25519PublicKey.cc index 86433b1e1..7517b2065 100644 --- a/src/sdk/main/src/ED25519PublicKey.cc +++ b/src/sdk/main/src/ED25519PublicKey.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ #include #include -namespace Hedera +namespace Hiero { namespace { @@ -218,4 +218,4 @@ std::shared_ptr ED25519PublicKey::getShared() const std::dynamic_pointer_cast(shared_from_this())); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/Endpoint.cc b/src/sdk/main/src/Endpoint.cc index 191f01504..815afd324 100644 --- a/src/sdk/main/src/Endpoint.cc +++ b/src/sdk/main/src/Endpoint.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include -namespace Hedera +namespace Hiero { //----- Endpoint Endpoint::fromProtobuf(const proto::ServiceEndpoint& protoServiceEndpoint) @@ -76,4 +76,4 @@ Endpoint& Endpoint::setDomainName(std::string_view domainName) mDomainName = domainName; return *this; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/EthereumFlow.cc b/src/sdk/main/src/EthereumFlow.cc index 1aae4a7dd..74da3db89 100644 --- a/src/sdk/main/src/EthereumFlow.cc +++ b/src/sdk/main/src/EthereumFlow.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include "TransactionResponse.h" #include "exceptions/IllegalStateException.h" -namespace Hedera +namespace Hiero { //----- TransactionResponse EthereumFlow::execute(const Client& client) @@ -95,4 +95,4 @@ EthereumFlow& EthereumFlow::setMaxGasAllowance(const Hbar& maxGasAllowance) return *this; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/EthereumTransaction.cc b/src/sdk/main/src/EthereumTransaction.cc index 8706b976a..ddcda033d 100644 --- a/src/sdk/main/src/EthereumTransaction.cc +++ b/src/sdk/main/src/EthereumTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- EthereumTransaction::EthereumTransaction(const proto::TransactionBody& transactionBody) @@ -129,4 +129,4 @@ proto::EthereumTransactionBody* EthereumTransaction::build() const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/EthereumTransactionData.cc b/src/sdk/main/src/EthereumTransactionData.cc index f138f9c7a..670dae512 100644 --- a/src/sdk/main/src/EthereumTransactionData.cc +++ b/src/sdk/main/src/EthereumTransactionData.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include "EthereumTransactionDataLegacy.h" #include "impl/RLPItem.h" -namespace Hedera +namespace Hiero { //----- EthereumTransactionData::EthereumTransactionData(std::vector callData) @@ -46,4 +46,4 @@ std::unique_ptr EthereumTransactionData::fromBytes(cons } } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/EthereumTransactionDataEip1559.cc b/src/sdk/main/src/EthereumTransactionDataEip1559.cc index e5ebe52b8..a909705b0 100644 --- a/src/sdk/main/src/EthereumTransactionDataEip1559.cc +++ b/src/sdk/main/src/EthereumTransactionDataEip1559.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include -namespace Hedera +namespace Hiero { //----- EthereumTransactionDataEip1559::EthereumTransactionDataEip1559(std::vector chainId, @@ -122,4 +122,4 @@ std::string EthereumTransactionDataEip1559::toString() const "\nmR: " + internal::HexConverter::bytesToHex(mR) + "\nmS: " + internal::HexConverter::bytesToHex(mS); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/EthereumTransactionDataLegacy.cc b/src/sdk/main/src/EthereumTransactionDataLegacy.cc index f58270e62..4f52f6880 100644 --- a/src/sdk/main/src/EthereumTransactionDataLegacy.cc +++ b/src/sdk/main/src/EthereumTransactionDataLegacy.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include -namespace Hedera +namespace Hiero { //----- EthereumTransactionDataLegacy::EthereumTransactionDataLegacy(std::vector nonce, @@ -104,4 +104,4 @@ std::string EthereumTransactionDataLegacy::toString() const "\nmS: " + internal::HexConverter::bytesToHex(mS); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/EvmAddress.cc b/src/sdk/main/src/EvmAddress.cc index 76e590583..c25ee07e8 100644 --- a/src/sdk/main/src/EvmAddress.cc +++ b/src/sdk/main/src/EvmAddress.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- EvmAddress EvmAddress::fromString(std::string_view address) @@ -90,4 +90,4 @@ void EvmAddress::checkEvmAddress() const } } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/ExchangeRate.cc b/src/sdk/main/src/ExchangeRate.cc index 62586db0e..fb3d50db9 100644 --- a/src/sdk/main/src/ExchangeRate.cc +++ b/src/sdk/main/src/ExchangeRate.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- ExchangeRate::ExchangeRate(int hbar, int cents, const std::chrono::system_clock::time_point& expirationTime) @@ -83,4 +83,4 @@ std::ostream& operator<<(std::ostream& os, const ExchangeRate& rate) return os; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/ExchangeRates.cc b/src/sdk/main/src/ExchangeRates.cc index 1db21e1da..62fa696f1 100644 --- a/src/sdk/main/src/ExchangeRates.cc +++ b/src/sdk/main/src/ExchangeRates.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- ExchangeRates::ExchangeRates(const ExchangeRate& current, const ExchangeRate& next) @@ -77,4 +77,4 @@ std::ostream& operator<<(std::ostream& os, const ExchangeRates& rates) return os; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/Executable.cc b/src/sdk/main/src/Executable.cc index 1a92a4588..af957aae5 100644 --- a/src/sdk/main/src/Executable.cc +++ b/src/sdk/main/src/Executable.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -115,7 +115,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- template @@ -703,4 +703,4 @@ template class Executable; template class Executable; -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/FeeComponents.cc b/src/sdk/main/src/FeeComponents.cc index e866b3d29..7bcd3fe1b 100644 --- a/src/sdk/main/src/FeeComponents.cc +++ b/src/sdk/main/src/FeeComponents.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- FeeComponents FeeComponents::fromProtobuf(const proto::FeeComponents& proto) @@ -92,4 +92,4 @@ std::string FeeComponents::toString() const return json.dump(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/FeeData.cc b/src/sdk/main/src/FeeData.cc index ced0fe51a..6e7e47e10 100644 --- a/src/sdk/main/src/FeeData.cc +++ b/src/sdk/main/src/FeeData.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- FeeData FeeData::fromProtobuf(const proto::FeeData& proto) @@ -85,4 +85,4 @@ std::string FeeData::toString() const return json.dump(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/FeeDataType.cc b/src/sdk/main/src/FeeDataType.cc index 6034eb63c..2783b89bb 100644 --- a/src/sdk/main/src/FeeDataType.cc +++ b/src/sdk/main/src/FeeDataType.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -21,38 +21,38 @@ #include -namespace Hedera +namespace Hiero { //----- const std::unordered_map gProtobufSubTypeToFeeDataType = { - {proto::SubType::DEFAULT, FeeDataType::DEFAULT }, - { proto::SubType::TOKEN_FUNGIBLE_COMMON, FeeDataType::TOKEN_FUNGIBLE_COMMON }, - { proto::SubType::TOKEN_NON_FUNGIBLE_UNIQUE, FeeDataType::TOKEN_NON_FUNGIBLE_UNIQUE }, - { proto::SubType::TOKEN_FUNGIBLE_COMMON_WITH_CUSTOM_FEES, FeeDataType::TOKEN_FUNGIBLE_COMMON_WITH_CUSTOM_FEES}, + { proto::SubType::DEFAULT, FeeDataType::DEFAULT }, + { proto::SubType::TOKEN_FUNGIBLE_COMMON, FeeDataType::TOKEN_FUNGIBLE_COMMON }, + { proto::SubType::TOKEN_NON_FUNGIBLE_UNIQUE, FeeDataType::TOKEN_NON_FUNGIBLE_UNIQUE }, + { proto::SubType::TOKEN_FUNGIBLE_COMMON_WITH_CUSTOM_FEES, FeeDataType::TOKEN_FUNGIBLE_COMMON_WITH_CUSTOM_FEES }, { proto::SubType::TOKEN_NON_FUNGIBLE_UNIQUE_WITH_CUSTOM_FEES, - FeeDataType::TOKEN_NON_FUNGIBLE_UNIQUE_WITH_CUSTOM_FEES }, - { proto::SubType::SCHEDULE_CREATE_CONTRACT_CALL, FeeDataType::SCHEDULE_CREATE_CONTRACT_CALL } + FeeDataType::TOKEN_NON_FUNGIBLE_UNIQUE_WITH_CUSTOM_FEES }, + { proto::SubType::SCHEDULE_CREATE_CONTRACT_CALL, FeeDataType::SCHEDULE_CREATE_CONTRACT_CALL } }; //----- const std::unordered_map gFeeDataTypeToProtobufSubType = { - {FeeDataType::DEFAULT, proto::SubType::DEFAULT }, - { FeeDataType::TOKEN_FUNGIBLE_COMMON, proto::SubType::TOKEN_FUNGIBLE_COMMON }, - { FeeDataType::TOKEN_NON_FUNGIBLE_UNIQUE, proto::SubType::TOKEN_NON_FUNGIBLE_UNIQUE }, - { FeeDataType::TOKEN_FUNGIBLE_COMMON_WITH_CUSTOM_FEES, proto::SubType::TOKEN_FUNGIBLE_COMMON_WITH_CUSTOM_FEES}, + { FeeDataType::DEFAULT, proto::SubType::DEFAULT }, + { FeeDataType::TOKEN_FUNGIBLE_COMMON, proto::SubType::TOKEN_FUNGIBLE_COMMON }, + { FeeDataType::TOKEN_NON_FUNGIBLE_UNIQUE, proto::SubType::TOKEN_NON_FUNGIBLE_UNIQUE }, + { FeeDataType::TOKEN_FUNGIBLE_COMMON_WITH_CUSTOM_FEES, proto::SubType::TOKEN_FUNGIBLE_COMMON_WITH_CUSTOM_FEES }, { FeeDataType::TOKEN_NON_FUNGIBLE_UNIQUE_WITH_CUSTOM_FEES, - proto::SubType::TOKEN_NON_FUNGIBLE_UNIQUE_WITH_CUSTOM_FEES }, - { FeeDataType::SCHEDULE_CREATE_CONTRACT_CALL, proto::SubType::SCHEDULE_CREATE_CONTRACT_CALL }, + proto::SubType::TOKEN_NON_FUNGIBLE_UNIQUE_WITH_CUSTOM_FEES }, + { FeeDataType::SCHEDULE_CREATE_CONTRACT_CALL, proto::SubType::SCHEDULE_CREATE_CONTRACT_CALL }, }; //----- const std::unordered_map gFeeDataTypeToString = { - {FeeDataType::DEFAULT, "DEFAULT" }, - { FeeDataType::TOKEN_FUNGIBLE_COMMON, "TOKEN_FUNGIBLE_COMMON" }, - { FeeDataType::TOKEN_NON_FUNGIBLE_UNIQUE, "TOKEN_NON_FUNGIBLE_UNIQUE" }, - { FeeDataType::TOKEN_FUNGIBLE_COMMON_WITH_CUSTOM_FEES, "TOKEN_FUNGIBLE_COMMON_WITH_CUSTOM_FEES" }, - { FeeDataType::TOKEN_NON_FUNGIBLE_UNIQUE_WITH_CUSTOM_FEES, "TOKEN_NON_FUNGIBLE_UNIQUE_WITH_CUSTOM_FEES"}, - { FeeDataType::SCHEDULE_CREATE_CONTRACT_CALL, "SCHEDULE_CREATE_CONTRACT_CALL" }, + { FeeDataType::DEFAULT, "DEFAULT" }, + { FeeDataType::TOKEN_FUNGIBLE_COMMON, "TOKEN_FUNGIBLE_COMMON" }, + { FeeDataType::TOKEN_NON_FUNGIBLE_UNIQUE, "TOKEN_NON_FUNGIBLE_UNIQUE" }, + { FeeDataType::TOKEN_FUNGIBLE_COMMON_WITH_CUSTOM_FEES, "TOKEN_FUNGIBLE_COMMON_WITH_CUSTOM_FEES" }, + { FeeDataType::TOKEN_NON_FUNGIBLE_UNIQUE_WITH_CUSTOM_FEES, "TOKEN_NON_FUNGIBLE_UNIQUE_WITH_CUSTOM_FEES" }, + { FeeDataType::SCHEDULE_CREATE_CONTRACT_CALL, "SCHEDULE_CREATE_CONTRACT_CALL" }, }; -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/FeeSchedule.cc b/src/sdk/main/src/FeeSchedule.cc index 8b35e566b..6b4b1b688 100644 --- a/src/sdk/main/src/FeeSchedule.cc +++ b/src/sdk/main/src/FeeSchedule.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- FeeSchedule FeeSchedule::fromProtobuf(const proto::FeeSchedule& proto) @@ -83,4 +83,4 @@ std::string FeeSchedule::toString() const return json.dump(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/FeeSchedules.cc b/src/sdk/main/src/FeeSchedules.cc index 77c25c9ff..7d78ed570 100644 --- a/src/sdk/main/src/FeeSchedules.cc +++ b/src/sdk/main/src/FeeSchedules.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- FeeSchedules FeeSchedules::fromProtobuf(const proto::CurrentAndNextFeeSchedule& proto) @@ -75,4 +75,4 @@ std::string FeeSchedules::toString() const return json.dump(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/FileAppendTransaction.cc b/src/sdk/main/src/FileAppendTransaction.cc index ec0d51db2..a2f84f13f 100644 --- a/src/sdk/main/src/FileAppendTransaction.cc +++ b/src/sdk/main/src/FileAppendTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- FileAppendTransaction::FileAppendTransaction() @@ -135,4 +135,4 @@ proto::FileAppendTransactionBody* FileAppendTransaction::build(int chunk) const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/FileContentsQuery.cc b/src/sdk/main/src/FileContentsQuery.cc index 7d979d9c4..594167972 100644 --- a/src/sdk/main/src/FileContentsQuery.cc +++ b/src/sdk/main/src/FileContentsQuery.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- FileContentsQuery& FileContentsQuery::setFileId(const FileId& fileId) @@ -75,4 +75,4 @@ proto::ResponseHeader FileContentsQuery::mapResponseHeader(const proto::Response return response.filegetcontents().header(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/FileCreateTransaction.cc b/src/sdk/main/src/FileCreateTransaction.cc index 407c2eac2..19615ae30 100644 --- a/src/sdk/main/src/FileCreateTransaction.cc +++ b/src/sdk/main/src/FileCreateTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- FileCreateTransaction::FileCreateTransaction() @@ -158,4 +158,4 @@ proto::FileCreateTransactionBody* FileCreateTransaction::build() const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/FileDeleteTransaction.cc b/src/sdk/main/src/FileDeleteTransaction.cc index 0de64f23c..b88292370 100644 --- a/src/sdk/main/src/FileDeleteTransaction.cc +++ b/src/sdk/main/src/FileDeleteTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- FileDeleteTransaction::FileDeleteTransaction(const proto::TransactionBody& transactionBody) @@ -97,4 +97,4 @@ proto::FileDeleteTransactionBody* FileDeleteTransaction::build() const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/FileId.cc b/src/sdk/main/src/FileId.cc index 112c2d017..920b477fe 100644 --- a/src/sdk/main/src/FileId.cc +++ b/src/sdk/main/src/FileId.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- const FileId FileId::ADDRESS_BOOK = FileId(0ULL, 0ULL, 102ULL); @@ -139,4 +139,4 @@ std::vector FileId::toBytes() const return internal::Utilities::stringToByteVector(toProtobuf()->SerializeAsString()); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/FileInfo.cc b/src/sdk/main/src/FileInfo.cc index 975d49919..2876dcba8 100644 --- a/src/sdk/main/src/FileInfo.cc +++ b/src/sdk/main/src/FileInfo.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- FileInfo FileInfo::fromProtobuf(const proto::FileGetInfoResponse_FileInfo& proto) @@ -105,4 +105,4 @@ std::ostream& operator<<(std::ostream& os, const FileInfo& info) return os; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/FileInfoQuery.cc b/src/sdk/main/src/FileInfoQuery.cc index 9a4fdd34c..2c8a48394 100644 --- a/src/sdk/main/src/FileInfoQuery.cc +++ b/src/sdk/main/src/FileInfoQuery.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- FileInfoQuery& FileInfoQuery::setFileId(const FileId& fileId) @@ -75,4 +75,4 @@ proto::ResponseHeader FileInfoQuery::mapResponseHeader(const proto::Response& re return response.filegetinfo().header(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/FileUpdateTransaction.cc b/src/sdk/main/src/FileUpdateTransaction.cc index 47fd34df0..e49bb77c0 100644 --- a/src/sdk/main/src/FileUpdateTransaction.cc +++ b/src/sdk/main/src/FileUpdateTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- FileUpdateTransaction::FileUpdateTransaction(const proto::TransactionBody& transactionBody) @@ -188,4 +188,4 @@ proto::FileUpdateTransactionBody* FileUpdateTransaction::build() const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/FreezeTransaction.cc b/src/sdk/main/src/FreezeTransaction.cc index 44ab7d79c..b9eaea07c 100644 --- a/src/sdk/main/src/FreezeTransaction.cc +++ b/src/sdk/main/src/FreezeTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- FreezeTransaction::FreezeTransaction(const proto::TransactionBody& transactionBody) @@ -149,4 +149,4 @@ proto::FreezeTransactionBody* FreezeTransaction::build() const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/FreezeType.cc b/src/sdk/main/src/FreezeType.cc index f5ae43552..1f8837ed1 100644 --- a/src/sdk/main/src/FreezeType.cc +++ b/src/sdk/main/src/FreezeType.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -21,36 +21,36 @@ #include -namespace Hedera +namespace Hiero { //----- const std::unordered_map gProtobufFreezeTypeToFreezeType = { - {proto::FreezeType::UNKNOWN_FREEZE_TYPE, FreezeType::UNKNOWN_FREEZE_TYPE}, - { proto::FreezeType::FREEZE_ONLY, FreezeType::FREEZE_ONLY }, - { proto::FreezeType::PREPARE_UPGRADE, FreezeType::PREPARE_UPGRADE }, - { proto::FreezeType::FREEZE_UPGRADE, FreezeType::FREEZE_UPGRADE }, - { proto::FreezeType::FREEZE_ABORT, FreezeType::FREEZE_ABORT }, - { proto::FreezeType::TELEMETRY_UPGRADE, FreezeType::TELEMETRY_UPGRADE }, + { proto::FreezeType::UNKNOWN_FREEZE_TYPE, FreezeType::UNKNOWN_FREEZE_TYPE }, + { proto::FreezeType::FREEZE_ONLY, FreezeType::FREEZE_ONLY }, + { proto::FreezeType::PREPARE_UPGRADE, FreezeType::PREPARE_UPGRADE }, + { proto::FreezeType::FREEZE_UPGRADE, FreezeType::FREEZE_UPGRADE }, + { proto::FreezeType::FREEZE_ABORT, FreezeType::FREEZE_ABORT }, + { proto::FreezeType::TELEMETRY_UPGRADE, FreezeType::TELEMETRY_UPGRADE }, }; //----- const std::unordered_map gFreezeTypeToProtobufFreezeType = { - {FreezeType::UNKNOWN_FREEZE_TYPE, proto::FreezeType::UNKNOWN_FREEZE_TYPE}, - { FreezeType::FREEZE_ONLY, proto::FreezeType::FREEZE_ONLY }, - { FreezeType::PREPARE_UPGRADE, proto::FreezeType::PREPARE_UPGRADE }, - { FreezeType::FREEZE_UPGRADE, proto::FreezeType::FREEZE_UPGRADE }, - { FreezeType::FREEZE_ABORT, proto::FreezeType::FREEZE_ABORT }, - { FreezeType::TELEMETRY_UPGRADE, proto::FreezeType::TELEMETRY_UPGRADE }, + { FreezeType::UNKNOWN_FREEZE_TYPE, proto::FreezeType::UNKNOWN_FREEZE_TYPE }, + { FreezeType::FREEZE_ONLY, proto::FreezeType::FREEZE_ONLY }, + { FreezeType::PREPARE_UPGRADE, proto::FreezeType::PREPARE_UPGRADE }, + { FreezeType::FREEZE_UPGRADE, proto::FreezeType::FREEZE_UPGRADE }, + { FreezeType::FREEZE_ABORT, proto::FreezeType::FREEZE_ABORT }, + { FreezeType::TELEMETRY_UPGRADE, proto::FreezeType::TELEMETRY_UPGRADE }, }; //----- const std::unordered_map gFreezeTypeToString = { - {FreezeType::UNKNOWN_FREEZE_TYPE, "UNKNOWN_FREEZE_TYPE"}, - { FreezeType::FREEZE_ONLY, "FREEZE_ONLY" }, - { FreezeType::PREPARE_UPGRADE, "PREPARE_UPGRADE" }, - { FreezeType::FREEZE_UPGRADE, "FREEZE_UPGRADE" }, - { FreezeType::FREEZE_ABORT, "FREEZE_ABORT" }, - { FreezeType::TELEMETRY_UPGRADE, "TELEMETRY_UPGRADE" }, + { FreezeType::UNKNOWN_FREEZE_TYPE, "UNKNOWN_FREEZE_TYPE" }, + { FreezeType::FREEZE_ONLY, "FREEZE_ONLY" }, + { FreezeType::PREPARE_UPGRADE, "PREPARE_UPGRADE" }, + { FreezeType::FREEZE_UPGRADE, "FREEZE_UPGRADE" }, + { FreezeType::FREEZE_ABORT, "FREEZE_ABORT" }, + { FreezeType::TELEMETRY_UPGRADE, "TELEMETRY_UPGRADE" }, }; -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/Hbar.cc b/src/sdk/main/src/Hbar.cc index cc0aefc16..a00fe6f5c 100644 --- a/src/sdk/main/src/Hbar.cc +++ b/src/sdk/main/src/Hbar.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ namespace Const const std::regex FROM_STRING_PATTERN("^((?:\\+|\\-)?\\d+(?:\\.\\d+)?)(\\ (tℏ|μℏ|mℏ|ℏ|kℏ|Mℏ|Gℏ))?$"); } -namespace Hedera +namespace Hiero { //----- std::string Hbar::toString() const @@ -106,4 +106,4 @@ HbarUnit Hbar::getUnit(const std::string& symbolString) "\" was not recognized"); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/HbarAllowance.cc b/src/sdk/main/src/HbarAllowance.cc index fbacc90e7..60393055c 100644 --- a/src/sdk/main/src/HbarAllowance.cc +++ b/src/sdk/main/src/HbarAllowance.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ #include -namespace Hedera +namespace Hiero { //----- HbarAllowance::HbarAllowance(AccountId owner, AccountId spender, const Hbar& amount) @@ -67,4 +67,4 @@ std::unique_ptr HbarAllowance::toProtobuf() const return proto; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/HbarTransfer.cc b/src/sdk/main/src/HbarTransfer.cc index ab5dcac95..e66400345 100644 --- a/src/sdk/main/src/HbarTransfer.cc +++ b/src/sdk/main/src/HbarTransfer.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- HbarTransfer::HbarTransfer(AccountId accountId, const Hbar& amount, bool approval) @@ -90,4 +90,4 @@ std::ostream& operator<<(std::ostream& os, const HbarTransfer& transfer) return os; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/IPv4Address.cc b/src/sdk/main/src/IPv4Address.cc index d9b30f525..863591c2e 100644 --- a/src/sdk/main/src/IPv4Address.cc +++ b/src/sdk/main/src/IPv4Address.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include -namespace Hedera +namespace Hiero { //----- IPv4Address IPv4Address::fromBytes(const std::vector& bytes) @@ -70,4 +70,4 @@ bool IPv4Address::isEmpty() const return mAddress.empty(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/Key.cc b/src/sdk/main/src/Key.cc index 7a62484ad..0fe9d730f 100644 --- a/src/sdk/main/src/Key.cc +++ b/src/sdk/main/src/Key.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include -namespace Hedera +namespace Hiero { //----- std::unique_ptr Key::fromProtobuf(const proto::Key& key) @@ -54,4 +54,4 @@ std::vector Key::toBytes() const return internal::Utilities::stringToByteVector(toProtobufKey()->SerializeAsString()); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/KeyList.cc b/src/sdk/main/src/KeyList.cc index 556dd4218..7c0d034a7 100644 --- a/src/sdk/main/src/KeyList.cc +++ b/src/sdk/main/src/KeyList.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- KeyList KeyList::fromProtobuf(const proto::KeyList& proto) @@ -186,4 +186,4 @@ void KeyList::clear() mKeys.clear(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/LedgerId.cc b/src/sdk/main/src/LedgerId.cc index 52a8eec2e..08ae18a58 100644 --- a/src/sdk/main/src/LedgerId.cc +++ b/src/sdk/main/src/LedgerId.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include -namespace Hedera +namespace Hiero { //----- const LedgerId LedgerId::MAINNET = LedgerId({ std::byte(0x00) }); @@ -95,4 +95,4 @@ std::string LedgerId::toString() const } } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/Logger.cc b/src/sdk/main/src/Logger.cc index 42d88518e..4e4e29acc 100644 --- a/src/sdk/main/src/Logger.cc +++ b/src/sdk/main/src/Logger.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,10 +19,10 @@ */ #include "Logger.h" -namespace Hedera +namespace Hiero { //----- -Logger::Logger(Hedera::Logger::LoggingLevel level) +Logger::Logger(Hiero::Logger::LoggingLevel level) : mCurrentLevel(level) , mPreviousLevel(level) { @@ -116,4 +116,4 @@ Logger& Logger::setSilent(bool silent) return *this; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/Mnemonic.cc b/src/sdk/main/src/Mnemonic.cc index 0092e7df9..fffcc2f99 100644 --- a/src/sdk/main/src/Mnemonic.cc +++ b/src/sdk/main/src/Mnemonic.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- const std::vector Mnemonic::BIP39_WORD_LIST = { @@ -439,4 +439,4 @@ std::string Mnemonic::getWordFromIndex(uint16_t index) const return std::string(wordList.at(index)); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/MnemonicBIP39.cc b/src/sdk/main/src/MnemonicBIP39.cc index d6171f1e7..1ee172b74 100644 --- a/src/sdk/main/src/MnemonicBIP39.cc +++ b/src/sdk/main/src/MnemonicBIP39.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ #include -namespace Hedera +namespace Hiero { namespace { diff --git a/src/sdk/main/src/NetworkVersionInfo.cc b/src/sdk/main/src/NetworkVersionInfo.cc index f871daba5..c81e18e49 100644 --- a/src/sdk/main/src/NetworkVersionInfo.cc +++ b/src/sdk/main/src/NetworkVersionInfo.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- NetworkVersionInfo::NetworkVersionInfo(const SemanticVersion& hapi, const SemanticVersion& hedera) @@ -78,4 +78,4 @@ std::ostream& operator<<(std::ostream& os, const NetworkVersionInfo& info) return os; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/NetworkVersionInfoQuery.cc b/src/sdk/main/src/NetworkVersionInfoQuery.cc index 20433941d..5b6ced60f 100644 --- a/src/sdk/main/src/NetworkVersionInfoQuery.cc +++ b/src/sdk/main/src/NetworkVersionInfoQuery.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- NetworkVersionInfo NetworkVersionInfoQuery::mapResponse(const proto::Response& response) const @@ -70,4 +70,4 @@ proto::ResponseHeader NetworkVersionInfoQuery::mapResponseHeader(const proto::Re return response.networkgetversioninfo().header(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/NftId.cc b/src/sdk/main/src/NftId.cc index b7112d3c5..287e60676 100644 --- a/src/sdk/main/src/NftId.cc +++ b/src/sdk/main/src/NftId.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- NftId::NftId(TokenId id, const uint64_t& serialNumber) @@ -85,4 +85,4 @@ std::string NftId::toString() const return mTokenId.toString() + '/' + std::to_string(mSerialNum); } -} // namespace Hedera \ No newline at end of file +} // namespace Hiero \ No newline at end of file diff --git a/src/sdk/main/src/NodeAddress.cc b/src/sdk/main/src/NodeAddress.cc index 7a63645fd..4bc71d704 100644 --- a/src/sdk/main/src/NodeAddress.cc +++ b/src/sdk/main/src/NodeAddress.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- NodeAddress NodeAddress::fromProtobuf(const proto::NodeAddress& protoNodeAddress) @@ -161,4 +161,4 @@ NodeAddress& NodeAddress::setDescription(std::string_view description) return *this; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/NodeAddressBook.cc b/src/sdk/main/src/NodeAddressBook.cc index dd5d54a22..e2d5ef70f 100644 --- a/src/sdk/main/src/NodeAddressBook.cc +++ b/src/sdk/main/src/NodeAddressBook.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include -namespace Hedera +namespace Hiero { //----- NodeAddressBook NodeAddressBook::fromProtobuf(const proto::NodeAddressBook& proto) @@ -69,4 +69,4 @@ NodeAddressBook& NodeAddressBook::setNodeAddresses(const std::vector #include -namespace Hedera +namespace Hiero { //----- NodeCreateTransaction::NodeCreateTransaction(const proto::TransactionBody& transactionBody) @@ -195,4 +195,4 @@ aproto::NodeCreateTransactionBody* NodeCreateTransaction::build() const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/NodeDeleteTransaction.cc b/src/sdk/main/src/NodeDeleteTransaction.cc index 562f556ea..b6c3b1be4 100644 --- a/src/sdk/main/src/NodeDeleteTransaction.cc +++ b/src/sdk/main/src/NodeDeleteTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- NodeDeleteTransaction::NodeDeleteTransaction(const proto::TransactionBody& transactionBody) @@ -97,4 +97,4 @@ aproto::NodeDeleteTransactionBody* NodeDeleteTransaction::build() const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/NodeUpdateTransaction.cc b/src/sdk/main/src/NodeUpdateTransaction.cc index 414c5cc66..8c824fe5d 100644 --- a/src/sdk/main/src/NodeUpdateTransaction.cc +++ b/src/sdk/main/src/NodeUpdateTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- NodeUpdateTransaction::NodeUpdateTransaction(const proto::TransactionBody& transactionBody) @@ -214,4 +214,4 @@ aproto::NodeUpdateTransactionBody* NodeUpdateTransaction::build() const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/PendingAirdropId.cc b/src/sdk/main/src/PendingAirdropId.cc index f640fa5fd..3d3bf628e 100644 --- a/src/sdk/main/src/PendingAirdropId.cc +++ b/src/sdk/main/src/PendingAirdropId.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ #include -namespace Hedera +namespace Hiero { //----- PendingAirdropId::PendingAirdropId(AccountId sender, AccountId receiver, TokenId tokenId) @@ -103,4 +103,4 @@ std::string PendingAirdropId::toString() const (mNft.has_value() ? mNft.value().mTokenId.toString() : std::string("")); } -} // namespace Hedera \ No newline at end of file +} // namespace Hiero \ No newline at end of file diff --git a/src/sdk/main/src/PendingAirdropRecord.cc b/src/sdk/main/src/PendingAirdropRecord.cc index 1e4b6b35e..47a1048cc 100644 --- a/src/sdk/main/src/PendingAirdropRecord.cc +++ b/src/sdk/main/src/PendingAirdropRecord.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- PendingAirdropRecord::PendingAirdropRecord(PendingAirdropId pendingAirdropId, uint64_t amount) @@ -64,4 +64,4 @@ std::string PendingAirdropRecord::toString() const return mPendingAirdropId.toString() + " " + std::to_string(mAmount); } -} // namespace Hedera \ No newline at end of file +} // namespace Hiero \ No newline at end of file diff --git a/src/sdk/main/src/PrivateKey.cc b/src/sdk/main/src/PrivateKey.cc index ac8801603..487ae05e1 100644 --- a/src/sdk/main/src/PrivateKey.cc +++ b/src/sdk/main/src/PrivateKey.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -35,7 +35,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- PrivateKey::~PrivateKey() = default; @@ -288,4 +288,4 @@ internal::OpenSSLUtils::EVP_PKEY PrivateKey::getInternalKey() const return mImpl->mKey; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/PrngTransaction.cc b/src/sdk/main/src/PrngTransaction.cc index 87b26f07b..ef6956378 100644 --- a/src/sdk/main/src/PrngTransaction.cc +++ b/src/sdk/main/src/PrngTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- PrngTransaction::PrngTransaction(const proto::TransactionBody& transactionBody) @@ -91,4 +91,4 @@ proto::UtilPrngTransactionBody* PrngTransaction::build() const return body.release(); } -} // namespace Hedera \ No newline at end of file +} // namespace Hiero \ No newline at end of file diff --git a/src/sdk/main/src/ProxyStaker.cc b/src/sdk/main/src/ProxyStaker.cc index bd75e4751..b902dc91c 100644 --- a/src/sdk/main/src/ProxyStaker.cc +++ b/src/sdk/main/src/ProxyStaker.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- ProxyStaker::ProxyStaker(AccountId accountId, int64_t amount) @@ -77,4 +77,4 @@ std::ostream& operator<<(std::ostream& os, const ProxyStaker& staker) return os; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/PublicKey.cc b/src/sdk/main/src/PublicKey.cc index 050f49290..3afdec032 100644 --- a/src/sdk/main/src/PublicKey.cc +++ b/src/sdk/main/src/PublicKey.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ #include -namespace Hedera +namespace Hiero { //----- PublicKey::~PublicKey() = default; @@ -163,4 +163,4 @@ internal::OpenSSLUtils::EVP_PKEY PublicKey::getInternalKey() const return mImpl->mKey; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/Query.cc b/src/sdk/main/src/Query.cc index 54c05bb90..deb4dd957 100644 --- a/src/sdk/main/src/Query.cc +++ b/src/sdk/main/src/Query.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -60,7 +60,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- template @@ -399,4 +399,4 @@ template class Query; template class Query; template class Query; -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/RequestType.cc b/src/sdk/main/src/RequestType.cc index 03b10eb29..a55ffe338 100644 --- a/src/sdk/main/src/RequestType.cc +++ b/src/sdk/main/src/RequestType.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -21,240 +21,240 @@ #include -namespace Hedera +namespace Hiero { //----- const std::unordered_map gProtobufHederaFunctionalityToRequestType = { - {proto::HederaFunctionality::NONE, RequestType::NONE }, - { proto::HederaFunctionality::CryptoTransfer, RequestType::CRYPTO_TRANSFER }, - { proto::HederaFunctionality::CryptoUpdate, RequestType::CRYPTO_UPDATE }, - { proto::HederaFunctionality::CryptoDelete, RequestType::CRYPTO_DELETE }, - { proto::HederaFunctionality::CryptoAddLiveHash, RequestType::CRYPTO_ADD_LIVE_HASH }, - { proto::HederaFunctionality::CryptoDeleteLiveHash, RequestType::CRYPTO_DELETE_LIVE_HASH }, - { proto::HederaFunctionality::ContractCall, RequestType::CONTRACT_CALL }, - { proto::HederaFunctionality::ContractCreate, RequestType::CONTRACT_CREATE }, - { proto::HederaFunctionality::ContractUpdate, RequestType::CONTRACT_UPDATE }, - { proto::HederaFunctionality::FileCreate, RequestType::FILE_CREATE }, - { proto::HederaFunctionality::FileAppend, RequestType::FILE_APPEND }, - { proto::HederaFunctionality::FileUpdate, RequestType::FILE_UPDATE }, - { proto::HederaFunctionality::FileDelete, RequestType::FILE_DELETE }, - { proto::HederaFunctionality::CryptoGetAccountBalance, RequestType::CRYPTO_GET_ACCOUNT_BALANCE }, - { proto::HederaFunctionality::CryptoGetAccountRecords, RequestType::CRYPTO_GET_ACCOUNT_RECORDS }, - { proto::HederaFunctionality::CryptoGetInfo, RequestType::CRYPTO_GET_INFO }, - { proto::HederaFunctionality::ContractCallLocal, RequestType::CONTRACT_CALL_LOCAL }, - { proto::HederaFunctionality::ContractGetInfo, RequestType::CONTRACT_GET_INFO }, - { proto::HederaFunctionality::ContractGetBytecode, RequestType::CONTRACT_GET_BYTECODE }, - { proto::HederaFunctionality::GetBySolidityID, RequestType::GET_BY_SOLIDITY_ID }, - { proto::HederaFunctionality::GetByKey, RequestType::GET_BY_KEY }, - { proto::HederaFunctionality::CryptoGetLiveHash, RequestType::CRYPTO_GET_LIVE_HASH }, - { proto::HederaFunctionality::CryptoGetStakers, RequestType::CRYPTO_GET_STAKERS }, - { proto::HederaFunctionality::FileGetContents, RequestType::FILE_GET_CONTENTS }, - { proto::HederaFunctionality::FileGetInfo, RequestType::FILE_GET_INFO }, - { proto::HederaFunctionality::TransactionGetRecord, RequestType::TRANSACTION_GET_RECORD }, - { proto::HederaFunctionality::ContractGetRecords, RequestType::CONTRACT_GET_RECORDS }, - { proto::HederaFunctionality::CryptoCreate, RequestType::CRYPTO_CREATE }, - { proto::HederaFunctionality::SystemDelete, RequestType::SYSTEM_DELETE }, - { proto::HederaFunctionality::SystemUndelete, RequestType::SYSTEM_UNDELETE }, - { proto::HederaFunctionality::ContractDelete, RequestType::CONTRACT_DELETE }, - { proto::HederaFunctionality::Freeze, RequestType::FREEZE }, - { proto::HederaFunctionality::CreateTransactionRecord, RequestType::CREATE_TRANSACTION_RECORD }, - { proto::HederaFunctionality::CryptoAccountAutoRenew, RequestType::CRYPTO_ACCOUNT_AUTO_RENEW }, - { proto::HederaFunctionality::ContractAutoRenew, RequestType::CONTRACT_AUTO_RENEW }, - { proto::HederaFunctionality::GetVersionInfo, RequestType::GET_VERSION_INFO }, - { proto::HederaFunctionality::TransactionGetReceipt, RequestType::TRANSACTION_GET_RECEIPT }, - { proto::HederaFunctionality::ConsensusCreateTopic, RequestType::CONSENSUS_CREATE_TOPIC }, - { proto::HederaFunctionality::ConsensusUpdateTopic, RequestType::CONSENSUS_UPDATE_TOPIC }, - { proto::HederaFunctionality::ConsensusDeleteTopic, RequestType::CONSENSUS_DELETE_TOPIC }, - { proto::HederaFunctionality::ConsensusGetTopicInfo, RequestType::CONSENSUS_GET_TOPIC_INFO }, - { proto::HederaFunctionality::ConsensusSubmitMessage, RequestType::CONSENSUS_SUBMIT_MESSAGE }, - { proto::HederaFunctionality::UncheckedSubmit, RequestType::UNCHECKED_SUBMIT }, - { proto::HederaFunctionality::TokenCreate, RequestType::TOKEN_CREATE }, - { proto::HederaFunctionality::TokenGetInfo, RequestType::TOKEN_GET_INFO }, - { proto::HederaFunctionality::TokenFreezeAccount, RequestType::TOKEN_FREEZE_ACCOUNT }, - { proto::HederaFunctionality::TokenUnfreezeAccount, RequestType::TOKEN_UNFREEZE_ACCOUNT }, - { proto::HederaFunctionality::TokenGrantKycToAccount, RequestType::TOKEN_GRANT_KYC_TO_ACCOUNT }, - { proto::HederaFunctionality::TokenRevokeKycFromAccount, RequestType::TOKEN_REVOKE_KYC_FROM_ACCOUNT}, - { proto::HederaFunctionality::TokenDelete, RequestType::TOKEN_DELETE }, - { proto::HederaFunctionality::TokenUpdate, RequestType::TOKEN_UPDATE }, - { proto::HederaFunctionality::TokenMint, RequestType::TOKEN_MINT }, - { proto::HederaFunctionality::TokenBurn, RequestType::TOKEN_BURN }, - { proto::HederaFunctionality::TokenAccountWipe, RequestType::TOKEN_ACCOUNT_WIPE }, - { proto::HederaFunctionality::TokenAssociateToAccount, RequestType::TOKEN_ASSOCIATE_TO_ACCOUNT }, - { proto::HederaFunctionality::TokenDissociateFromAccount, RequestType::TOKEN_DISSOCIATE_FROM_ACCOUNT}, - { proto::HederaFunctionality::ScheduleCreate, RequestType::SCHEDULE_CREATE }, - { proto::HederaFunctionality::ScheduleDelete, RequestType::SCHEDULE_DELETE }, - { proto::HederaFunctionality::ScheduleSign, RequestType::SCHEDULE_SIGN }, - { proto::HederaFunctionality::ScheduleGetInfo, RequestType::SCHEDULE_GET_INFO }, - { proto::HederaFunctionality::TokenGetAccountNftInfos, RequestType::TOKEN_GET_ACCOUNT_NFT_INFOS }, - { proto::HederaFunctionality::TokenGetNftInfo, RequestType::TOKEN_GET_NFT_INFO }, - { proto::HederaFunctionality::TokenGetNftInfos, RequestType::TOKEN_GET_NFT_INFOS }, - { proto::HederaFunctionality::TokenFeeScheduleUpdate, RequestType::TOKEN_FEE_SCHEDULE_UPDATE }, - { proto::HederaFunctionality::NetworkGetExecutionTime, RequestType::NETWORK_GET_EXECUTION_TIME }, - { proto::HederaFunctionality::TokenPause, RequestType::TOKEN_PAUSE }, - { proto::HederaFunctionality::TokenUnpause, RequestType::TOKEN_UNPAUSE }, - { proto::HederaFunctionality::CryptoApproveAllowance, RequestType::CRYPTO_APPROVE_ALLOWANCE }, - { proto::HederaFunctionality::CryptoDeleteAllowance, RequestType::CRYPTO_DELETE_ALLOWANCE }, - { proto::HederaFunctionality::GetAccountDetails, RequestType::GET_ACCOUNT_DETAILS }, - { proto::HederaFunctionality::EthereumTransaction, RequestType::ETHEREUM_TRANSACTION }, - { proto::HederaFunctionality::NodeStakeUpdate, RequestType::NODE_STAKE_UPDATE }, - { proto::HederaFunctionality::UtilPrng, RequestType::UTIL_PRNG }, - { proto::HederaFunctionality::TokenUpdateNfts, RequestType::TOKEN_UPDATE_NFTS }, + { proto::HederaFunctionality::NONE, RequestType::NONE }, + { proto::HederaFunctionality::CryptoTransfer, RequestType::CRYPTO_TRANSFER }, + { proto::HederaFunctionality::CryptoUpdate, RequestType::CRYPTO_UPDATE }, + { proto::HederaFunctionality::CryptoDelete, RequestType::CRYPTO_DELETE }, + { proto::HederaFunctionality::CryptoAddLiveHash, RequestType::CRYPTO_ADD_LIVE_HASH }, + { proto::HederaFunctionality::CryptoDeleteLiveHash, RequestType::CRYPTO_DELETE_LIVE_HASH }, + { proto::HederaFunctionality::ContractCall, RequestType::CONTRACT_CALL }, + { proto::HederaFunctionality::ContractCreate, RequestType::CONTRACT_CREATE }, + { proto::HederaFunctionality::ContractUpdate, RequestType::CONTRACT_UPDATE }, + { proto::HederaFunctionality::FileCreate, RequestType::FILE_CREATE }, + { proto::HederaFunctionality::FileAppend, RequestType::FILE_APPEND }, + { proto::HederaFunctionality::FileUpdate, RequestType::FILE_UPDATE }, + { proto::HederaFunctionality::FileDelete, RequestType::FILE_DELETE }, + { proto::HederaFunctionality::CryptoGetAccountBalance, RequestType::CRYPTO_GET_ACCOUNT_BALANCE }, + { proto::HederaFunctionality::CryptoGetAccountRecords, RequestType::CRYPTO_GET_ACCOUNT_RECORDS }, + { proto::HederaFunctionality::CryptoGetInfo, RequestType::CRYPTO_GET_INFO }, + { proto::HederaFunctionality::ContractCallLocal, RequestType::CONTRACT_CALL_LOCAL }, + { proto::HederaFunctionality::ContractGetInfo, RequestType::CONTRACT_GET_INFO }, + { proto::HederaFunctionality::ContractGetBytecode, RequestType::CONTRACT_GET_BYTECODE }, + { proto::HederaFunctionality::GetBySolidityID, RequestType::GET_BY_SOLIDITY_ID }, + { proto::HederaFunctionality::GetByKey, RequestType::GET_BY_KEY }, + { proto::HederaFunctionality::CryptoGetLiveHash, RequestType::CRYPTO_GET_LIVE_HASH }, + { proto::HederaFunctionality::CryptoGetStakers, RequestType::CRYPTO_GET_STAKERS }, + { proto::HederaFunctionality::FileGetContents, RequestType::FILE_GET_CONTENTS }, + { proto::HederaFunctionality::FileGetInfo, RequestType::FILE_GET_INFO }, + { proto::HederaFunctionality::TransactionGetRecord, RequestType::TRANSACTION_GET_RECORD }, + { proto::HederaFunctionality::ContractGetRecords, RequestType::CONTRACT_GET_RECORDS }, + { proto::HederaFunctionality::CryptoCreate, RequestType::CRYPTO_CREATE }, + { proto::HederaFunctionality::SystemDelete, RequestType::SYSTEM_DELETE }, + { proto::HederaFunctionality::SystemUndelete, RequestType::SYSTEM_UNDELETE }, + { proto::HederaFunctionality::ContractDelete, RequestType::CONTRACT_DELETE }, + { proto::HederaFunctionality::Freeze, RequestType::FREEZE }, + { proto::HederaFunctionality::CreateTransactionRecord, RequestType::CREATE_TRANSACTION_RECORD }, + { proto::HederaFunctionality::CryptoAccountAutoRenew, RequestType::CRYPTO_ACCOUNT_AUTO_RENEW }, + { proto::HederaFunctionality::ContractAutoRenew, RequestType::CONTRACT_AUTO_RENEW }, + { proto::HederaFunctionality::GetVersionInfo, RequestType::GET_VERSION_INFO }, + { proto::HederaFunctionality::TransactionGetReceipt, RequestType::TRANSACTION_GET_RECEIPT }, + { proto::HederaFunctionality::ConsensusCreateTopic, RequestType::CONSENSUS_CREATE_TOPIC }, + { proto::HederaFunctionality::ConsensusUpdateTopic, RequestType::CONSENSUS_UPDATE_TOPIC }, + { proto::HederaFunctionality::ConsensusDeleteTopic, RequestType::CONSENSUS_DELETE_TOPIC }, + { proto::HederaFunctionality::ConsensusGetTopicInfo, RequestType::CONSENSUS_GET_TOPIC_INFO }, + { proto::HederaFunctionality::ConsensusSubmitMessage, RequestType::CONSENSUS_SUBMIT_MESSAGE }, + { proto::HederaFunctionality::UncheckedSubmit, RequestType::UNCHECKED_SUBMIT }, + { proto::HederaFunctionality::TokenCreate, RequestType::TOKEN_CREATE }, + { proto::HederaFunctionality::TokenGetInfo, RequestType::TOKEN_GET_INFO }, + { proto::HederaFunctionality::TokenFreezeAccount, RequestType::TOKEN_FREEZE_ACCOUNT }, + { proto::HederaFunctionality::TokenUnfreezeAccount, RequestType::TOKEN_UNFREEZE_ACCOUNT }, + { proto::HederaFunctionality::TokenGrantKycToAccount, RequestType::TOKEN_GRANT_KYC_TO_ACCOUNT }, + { proto::HederaFunctionality::TokenRevokeKycFromAccount, RequestType::TOKEN_REVOKE_KYC_FROM_ACCOUNT }, + { proto::HederaFunctionality::TokenDelete, RequestType::TOKEN_DELETE }, + { proto::HederaFunctionality::TokenUpdate, RequestType::TOKEN_UPDATE }, + { proto::HederaFunctionality::TokenMint, RequestType::TOKEN_MINT }, + { proto::HederaFunctionality::TokenBurn, RequestType::TOKEN_BURN }, + { proto::HederaFunctionality::TokenAccountWipe, RequestType::TOKEN_ACCOUNT_WIPE }, + { proto::HederaFunctionality::TokenAssociateToAccount, RequestType::TOKEN_ASSOCIATE_TO_ACCOUNT }, + { proto::HederaFunctionality::TokenDissociateFromAccount, RequestType::TOKEN_DISSOCIATE_FROM_ACCOUNT }, + { proto::HederaFunctionality::ScheduleCreate, RequestType::SCHEDULE_CREATE }, + { proto::HederaFunctionality::ScheduleDelete, RequestType::SCHEDULE_DELETE }, + { proto::HederaFunctionality::ScheduleSign, RequestType::SCHEDULE_SIGN }, + { proto::HederaFunctionality::ScheduleGetInfo, RequestType::SCHEDULE_GET_INFO }, + { proto::HederaFunctionality::TokenGetAccountNftInfos, RequestType::TOKEN_GET_ACCOUNT_NFT_INFOS }, + { proto::HederaFunctionality::TokenGetNftInfo, RequestType::TOKEN_GET_NFT_INFO }, + { proto::HederaFunctionality::TokenGetNftInfos, RequestType::TOKEN_GET_NFT_INFOS }, + { proto::HederaFunctionality::TokenFeeScheduleUpdate, RequestType::TOKEN_FEE_SCHEDULE_UPDATE }, + { proto::HederaFunctionality::NetworkGetExecutionTime, RequestType::NETWORK_GET_EXECUTION_TIME }, + { proto::HederaFunctionality::TokenPause, RequestType::TOKEN_PAUSE }, + { proto::HederaFunctionality::TokenUnpause, RequestType::TOKEN_UNPAUSE }, + { proto::HederaFunctionality::CryptoApproveAllowance, RequestType::CRYPTO_APPROVE_ALLOWANCE }, + { proto::HederaFunctionality::CryptoDeleteAllowance, RequestType::CRYPTO_DELETE_ALLOWANCE }, + { proto::HederaFunctionality::GetAccountDetails, RequestType::GET_ACCOUNT_DETAILS }, + { proto::HederaFunctionality::EthereumTransaction, RequestType::ETHEREUM_TRANSACTION }, + { proto::HederaFunctionality::NodeStakeUpdate, RequestType::NODE_STAKE_UPDATE }, + { proto::HederaFunctionality::UtilPrng, RequestType::UTIL_PRNG }, + { proto::HederaFunctionality::TokenUpdateNfts, RequestType::TOKEN_UPDATE_NFTS }, }; //----- const std::unordered_map gRequestTypeToProtobufHederaFunctionality = { - {RequestType::NONE, proto::HederaFunctionality::NONE }, - { RequestType::CRYPTO_TRANSFER, proto::HederaFunctionality::CryptoTransfer }, - { RequestType::CRYPTO_UPDATE, proto::HederaFunctionality::CryptoUpdate }, - { RequestType::CRYPTO_DELETE, proto::HederaFunctionality::CryptoDelete }, - { RequestType::CRYPTO_ADD_LIVE_HASH, proto::HederaFunctionality::CryptoAddLiveHash }, - { RequestType::CRYPTO_DELETE_LIVE_HASH, proto::HederaFunctionality::CryptoDeleteLiveHash }, - { RequestType::CONTRACT_CALL, proto::HederaFunctionality::ContractCall }, - { RequestType::CONTRACT_CREATE, proto::HederaFunctionality::ContractCreate }, - { RequestType::CONTRACT_UPDATE, proto::HederaFunctionality::ContractUpdate }, - { RequestType::FILE_CREATE, proto::HederaFunctionality::FileCreate }, - { RequestType::FILE_APPEND, proto::HederaFunctionality::FileAppend }, - { RequestType::FILE_UPDATE, proto::HederaFunctionality::FileUpdate }, - { RequestType::FILE_DELETE, proto::HederaFunctionality::FileDelete }, - { RequestType::CRYPTO_GET_ACCOUNT_BALANCE, proto::HederaFunctionality::CryptoGetAccountBalance }, - { RequestType::CRYPTO_GET_ACCOUNT_RECORDS, proto::HederaFunctionality::CryptoGetAccountRecords }, - { RequestType::CRYPTO_GET_INFO, proto::HederaFunctionality::CryptoGetInfo }, - { RequestType::CONTRACT_CALL_LOCAL, proto::HederaFunctionality::ContractCallLocal }, - { RequestType::CONTRACT_GET_INFO, proto::HederaFunctionality::ContractGetInfo }, - { RequestType::CONTRACT_GET_BYTECODE, proto::HederaFunctionality::ContractGetBytecode }, - { RequestType::GET_BY_SOLIDITY_ID, proto::HederaFunctionality::GetBySolidityID }, - { RequestType::GET_BY_KEY, proto::HederaFunctionality::GetByKey }, - { RequestType::CRYPTO_GET_LIVE_HASH, proto::HederaFunctionality::CryptoGetLiveHash }, - { RequestType::CRYPTO_GET_STAKERS, proto::HederaFunctionality::CryptoGetStakers }, - { RequestType::FILE_GET_CONTENTS, proto::HederaFunctionality::FileGetContents }, - { RequestType::FILE_GET_INFO, proto::HederaFunctionality::FileGetInfo }, - { RequestType::TRANSACTION_GET_RECORD, proto::HederaFunctionality::TransactionGetRecord }, - { RequestType::CONTRACT_GET_RECORDS, proto::HederaFunctionality::ContractGetRecords }, - { RequestType::CRYPTO_CREATE, proto::HederaFunctionality::CryptoCreate }, - { RequestType::SYSTEM_DELETE, proto::HederaFunctionality::SystemDelete }, - { RequestType::SYSTEM_UNDELETE, proto::HederaFunctionality::SystemUndelete }, - { RequestType::CONTRACT_DELETE, proto::HederaFunctionality::ContractDelete }, - { RequestType::FREEZE, proto::HederaFunctionality::Freeze }, - { RequestType::CREATE_TRANSACTION_RECORD, proto::HederaFunctionality::CreateTransactionRecord }, - { RequestType::CRYPTO_ACCOUNT_AUTO_RENEW, proto::HederaFunctionality::CryptoAccountAutoRenew }, - { RequestType::CONTRACT_AUTO_RENEW, proto::HederaFunctionality::ContractAutoRenew }, - { RequestType::GET_VERSION_INFO, proto::HederaFunctionality::GetVersionInfo }, - { RequestType::TRANSACTION_GET_RECEIPT, proto::HederaFunctionality::TransactionGetReceipt }, - { RequestType::CONSENSUS_CREATE_TOPIC, proto::HederaFunctionality::ConsensusCreateTopic }, - { RequestType::CONSENSUS_UPDATE_TOPIC, proto::HederaFunctionality::ConsensusUpdateTopic }, - { RequestType::CONSENSUS_DELETE_TOPIC, proto::HederaFunctionality::ConsensusDeleteTopic }, - { RequestType::CONSENSUS_GET_TOPIC_INFO, proto::HederaFunctionality::ConsensusGetTopicInfo }, - { RequestType::CONSENSUS_SUBMIT_MESSAGE, proto::HederaFunctionality::ConsensusSubmitMessage }, - { RequestType::UNCHECKED_SUBMIT, proto::HederaFunctionality::UncheckedSubmit }, - { RequestType::TOKEN_CREATE, proto::HederaFunctionality::TokenCreate }, - { RequestType::TOKEN_GET_INFO, proto::HederaFunctionality::TokenGetInfo }, - { RequestType::TOKEN_FREEZE_ACCOUNT, proto::HederaFunctionality::TokenFreezeAccount }, - { RequestType::TOKEN_UNFREEZE_ACCOUNT, proto::HederaFunctionality::TokenUnfreezeAccount }, - { RequestType::TOKEN_GRANT_KYC_TO_ACCOUNT, proto::HederaFunctionality::TokenGrantKycToAccount }, - { RequestType::TOKEN_REVOKE_KYC_FROM_ACCOUNT, proto::HederaFunctionality::TokenRevokeKycFromAccount }, - { RequestType::TOKEN_DELETE, proto::HederaFunctionality::TokenDelete }, - { RequestType::TOKEN_UPDATE, proto::HederaFunctionality::TokenUpdate }, - { RequestType::TOKEN_MINT, proto::HederaFunctionality::TokenMint }, - { RequestType::TOKEN_BURN, proto::HederaFunctionality::TokenBurn }, - { RequestType::TOKEN_ACCOUNT_WIPE, proto::HederaFunctionality::TokenAccountWipe }, - { RequestType::TOKEN_ASSOCIATE_TO_ACCOUNT, proto::HederaFunctionality::TokenAssociateToAccount }, - { RequestType::TOKEN_DISSOCIATE_FROM_ACCOUNT, proto::HederaFunctionality::TokenDissociateFromAccount}, - { RequestType::SCHEDULE_CREATE, proto::HederaFunctionality::ScheduleCreate }, - { RequestType::SCHEDULE_DELETE, proto::HederaFunctionality::ScheduleDelete }, - { RequestType::SCHEDULE_SIGN, proto::HederaFunctionality::ScheduleSign }, - { RequestType::SCHEDULE_GET_INFO, proto::HederaFunctionality::ScheduleGetInfo }, - { RequestType::TOKEN_GET_ACCOUNT_NFT_INFOS, proto::HederaFunctionality::TokenGetAccountNftInfos }, - { RequestType::TOKEN_GET_NFT_INFO, proto::HederaFunctionality::TokenGetNftInfo }, - { RequestType::TOKEN_GET_NFT_INFOS, proto::HederaFunctionality::TokenGetNftInfos }, - { RequestType::TOKEN_FEE_SCHEDULE_UPDATE, proto::HederaFunctionality::TokenFeeScheduleUpdate }, - { RequestType::NETWORK_GET_EXECUTION_TIME, proto::HederaFunctionality::NetworkGetExecutionTime }, - { RequestType::TOKEN_PAUSE, proto::HederaFunctionality::TokenPause }, - { RequestType::TOKEN_UNPAUSE, proto::HederaFunctionality::TokenUnpause }, - { RequestType::CRYPTO_APPROVE_ALLOWANCE, proto::HederaFunctionality::CryptoApproveAllowance }, - { RequestType::CRYPTO_DELETE_ALLOWANCE, proto::HederaFunctionality::CryptoDeleteAllowance }, - { RequestType::GET_ACCOUNT_DETAILS, proto::HederaFunctionality::GetAccountDetails }, - { RequestType::ETHEREUM_TRANSACTION, proto::HederaFunctionality::EthereumTransaction }, - { RequestType::NODE_STAKE_UPDATE, proto::HederaFunctionality::NodeStakeUpdate }, - { RequestType::UTIL_PRNG, proto::HederaFunctionality::UtilPrng }, - { RequestType::TOKEN_UPDATE_NFTS, proto::HederaFunctionality::TokenUpdateNfts }, + { RequestType::NONE, proto::HederaFunctionality::NONE }, + { RequestType::CRYPTO_TRANSFER, proto::HederaFunctionality::CryptoTransfer }, + { RequestType::CRYPTO_UPDATE, proto::HederaFunctionality::CryptoUpdate }, + { RequestType::CRYPTO_DELETE, proto::HederaFunctionality::CryptoDelete }, + { RequestType::CRYPTO_ADD_LIVE_HASH, proto::HederaFunctionality::CryptoAddLiveHash }, + { RequestType::CRYPTO_DELETE_LIVE_HASH, proto::HederaFunctionality::CryptoDeleteLiveHash }, + { RequestType::CONTRACT_CALL, proto::HederaFunctionality::ContractCall }, + { RequestType::CONTRACT_CREATE, proto::HederaFunctionality::ContractCreate }, + { RequestType::CONTRACT_UPDATE, proto::HederaFunctionality::ContractUpdate }, + { RequestType::FILE_CREATE, proto::HederaFunctionality::FileCreate }, + { RequestType::FILE_APPEND, proto::HederaFunctionality::FileAppend }, + { RequestType::FILE_UPDATE, proto::HederaFunctionality::FileUpdate }, + { RequestType::FILE_DELETE, proto::HederaFunctionality::FileDelete }, + { RequestType::CRYPTO_GET_ACCOUNT_BALANCE, proto::HederaFunctionality::CryptoGetAccountBalance }, + { RequestType::CRYPTO_GET_ACCOUNT_RECORDS, proto::HederaFunctionality::CryptoGetAccountRecords }, + { RequestType::CRYPTO_GET_INFO, proto::HederaFunctionality::CryptoGetInfo }, + { RequestType::CONTRACT_CALL_LOCAL, proto::HederaFunctionality::ContractCallLocal }, + { RequestType::CONTRACT_GET_INFO, proto::HederaFunctionality::ContractGetInfo }, + { RequestType::CONTRACT_GET_BYTECODE, proto::HederaFunctionality::ContractGetBytecode }, + { RequestType::GET_BY_SOLIDITY_ID, proto::HederaFunctionality::GetBySolidityID }, + { RequestType::GET_BY_KEY, proto::HederaFunctionality::GetByKey }, + { RequestType::CRYPTO_GET_LIVE_HASH, proto::HederaFunctionality::CryptoGetLiveHash }, + { RequestType::CRYPTO_GET_STAKERS, proto::HederaFunctionality::CryptoGetStakers }, + { RequestType::FILE_GET_CONTENTS, proto::HederaFunctionality::FileGetContents }, + { RequestType::FILE_GET_INFO, proto::HederaFunctionality::FileGetInfo }, + { RequestType::TRANSACTION_GET_RECORD, proto::HederaFunctionality::TransactionGetRecord }, + { RequestType::CONTRACT_GET_RECORDS, proto::HederaFunctionality::ContractGetRecords }, + { RequestType::CRYPTO_CREATE, proto::HederaFunctionality::CryptoCreate }, + { RequestType::SYSTEM_DELETE, proto::HederaFunctionality::SystemDelete }, + { RequestType::SYSTEM_UNDELETE, proto::HederaFunctionality::SystemUndelete }, + { RequestType::CONTRACT_DELETE, proto::HederaFunctionality::ContractDelete }, + { RequestType::FREEZE, proto::HederaFunctionality::Freeze }, + { RequestType::CREATE_TRANSACTION_RECORD, proto::HederaFunctionality::CreateTransactionRecord }, + { RequestType::CRYPTO_ACCOUNT_AUTO_RENEW, proto::HederaFunctionality::CryptoAccountAutoRenew }, + { RequestType::CONTRACT_AUTO_RENEW, proto::HederaFunctionality::ContractAutoRenew }, + { RequestType::GET_VERSION_INFO, proto::HederaFunctionality::GetVersionInfo }, + { RequestType::TRANSACTION_GET_RECEIPT, proto::HederaFunctionality::TransactionGetReceipt }, + { RequestType::CONSENSUS_CREATE_TOPIC, proto::HederaFunctionality::ConsensusCreateTopic }, + { RequestType::CONSENSUS_UPDATE_TOPIC, proto::HederaFunctionality::ConsensusUpdateTopic }, + { RequestType::CONSENSUS_DELETE_TOPIC, proto::HederaFunctionality::ConsensusDeleteTopic }, + { RequestType::CONSENSUS_GET_TOPIC_INFO, proto::HederaFunctionality::ConsensusGetTopicInfo }, + { RequestType::CONSENSUS_SUBMIT_MESSAGE, proto::HederaFunctionality::ConsensusSubmitMessage }, + { RequestType::UNCHECKED_SUBMIT, proto::HederaFunctionality::UncheckedSubmit }, + { RequestType::TOKEN_CREATE, proto::HederaFunctionality::TokenCreate }, + { RequestType::TOKEN_GET_INFO, proto::HederaFunctionality::TokenGetInfo }, + { RequestType::TOKEN_FREEZE_ACCOUNT, proto::HederaFunctionality::TokenFreezeAccount }, + { RequestType::TOKEN_UNFREEZE_ACCOUNT, proto::HederaFunctionality::TokenUnfreezeAccount }, + { RequestType::TOKEN_GRANT_KYC_TO_ACCOUNT, proto::HederaFunctionality::TokenGrantKycToAccount }, + { RequestType::TOKEN_REVOKE_KYC_FROM_ACCOUNT, proto::HederaFunctionality::TokenRevokeKycFromAccount }, + { RequestType::TOKEN_DELETE, proto::HederaFunctionality::TokenDelete }, + { RequestType::TOKEN_UPDATE, proto::HederaFunctionality::TokenUpdate }, + { RequestType::TOKEN_MINT, proto::HederaFunctionality::TokenMint }, + { RequestType::TOKEN_BURN, proto::HederaFunctionality::TokenBurn }, + { RequestType::TOKEN_ACCOUNT_WIPE, proto::HederaFunctionality::TokenAccountWipe }, + { RequestType::TOKEN_ASSOCIATE_TO_ACCOUNT, proto::HederaFunctionality::TokenAssociateToAccount }, + { RequestType::TOKEN_DISSOCIATE_FROM_ACCOUNT, proto::HederaFunctionality::TokenDissociateFromAccount }, + { RequestType::SCHEDULE_CREATE, proto::HederaFunctionality::ScheduleCreate }, + { RequestType::SCHEDULE_DELETE, proto::HederaFunctionality::ScheduleDelete }, + { RequestType::SCHEDULE_SIGN, proto::HederaFunctionality::ScheduleSign }, + { RequestType::SCHEDULE_GET_INFO, proto::HederaFunctionality::ScheduleGetInfo }, + { RequestType::TOKEN_GET_ACCOUNT_NFT_INFOS, proto::HederaFunctionality::TokenGetAccountNftInfos }, + { RequestType::TOKEN_GET_NFT_INFO, proto::HederaFunctionality::TokenGetNftInfo }, + { RequestType::TOKEN_GET_NFT_INFOS, proto::HederaFunctionality::TokenGetNftInfos }, + { RequestType::TOKEN_FEE_SCHEDULE_UPDATE, proto::HederaFunctionality::TokenFeeScheduleUpdate }, + { RequestType::NETWORK_GET_EXECUTION_TIME, proto::HederaFunctionality::NetworkGetExecutionTime }, + { RequestType::TOKEN_PAUSE, proto::HederaFunctionality::TokenPause }, + { RequestType::TOKEN_UNPAUSE, proto::HederaFunctionality::TokenUnpause }, + { RequestType::CRYPTO_APPROVE_ALLOWANCE, proto::HederaFunctionality::CryptoApproveAllowance }, + { RequestType::CRYPTO_DELETE_ALLOWANCE, proto::HederaFunctionality::CryptoDeleteAllowance }, + { RequestType::GET_ACCOUNT_DETAILS, proto::HederaFunctionality::GetAccountDetails }, + { RequestType::ETHEREUM_TRANSACTION, proto::HederaFunctionality::EthereumTransaction }, + { RequestType::NODE_STAKE_UPDATE, proto::HederaFunctionality::NodeStakeUpdate }, + { RequestType::UTIL_PRNG, proto::HederaFunctionality::UtilPrng }, + { RequestType::TOKEN_UPDATE_NFTS, proto::HederaFunctionality::TokenUpdateNfts }, }; //----- const std::unordered_map gRequestTypeToString = { - {RequestType::NONE, "NONE" }, - { RequestType::CRYPTO_TRANSFER, "CRYPTO_TRANSFER" }, - { RequestType::CRYPTO_UPDATE, "CRYPTO_UPDATE" }, - { RequestType::CRYPTO_DELETE, "CRYPTO_DELETE" }, - { RequestType::CRYPTO_ADD_LIVE_HASH, "CRYPTO_ADD_LIVE_HASH" }, - { RequestType::CRYPTO_DELETE_LIVE_HASH, "CRYPTO_DELETE_LIVE_HASH" }, - { RequestType::CONTRACT_CALL, "CONTRACT_CALL" }, - { RequestType::CONTRACT_CREATE, "CONTRACT_CREATE" }, - { RequestType::CONTRACT_UPDATE, "CONTRACT_UPDATE" }, - { RequestType::FILE_CREATE, "FILE_CREATE" }, - { RequestType::FILE_APPEND, "FILE_APPEND" }, - { RequestType::FILE_UPDATE, "FILE_UPDATE" }, - { RequestType::FILE_DELETE, "FILE_DELETE" }, - { RequestType::CRYPTO_GET_ACCOUNT_BALANCE, "CRYPTO_GET_ACCOUNT_BALANCE" }, - { RequestType::CRYPTO_GET_ACCOUNT_RECORDS, "CRYPTO_GET_ACCOUNT_RECORDS" }, - { RequestType::CRYPTO_GET_INFO, "CRYPTO_GET_INFO" }, - { RequestType::CONTRACT_CALL_LOCAL, "CONTRACT_CALL_LOCAL" }, - { RequestType::CONTRACT_GET_INFO, "CONTRACT_GET_INFO" }, - { RequestType::CONTRACT_GET_BYTECODE, "CONTRACT_GET_BYTECODE" }, - { RequestType::GET_BY_SOLIDITY_ID, "GET_BY_SOLIDITY_ID" }, - { RequestType::GET_BY_KEY, "GET_BY_KEY" }, - { RequestType::CRYPTO_GET_LIVE_HASH, "CRYPTO_GET_LIVE_HASH" }, - { RequestType::CRYPTO_GET_STAKERS, "CRYPTO_GET_STAKERS" }, - { RequestType::FILE_GET_CONTENTS, "FILE_GET_CONTENTS" }, - { RequestType::FILE_GET_INFO, "FILE_GET_INFO" }, - { RequestType::TRANSACTION_GET_RECORD, "TRANSACTION_GET_RECORD" }, - { RequestType::CONTRACT_GET_RECORDS, "CONTRACT_GET_RECORDS" }, - { RequestType::CRYPTO_CREATE, "CRYPTO_CREATE" }, - { RequestType::SYSTEM_DELETE, "SYSTEM_DELETE" }, - { RequestType::SYSTEM_UNDELETE, "SYSTEM_UNDELETE" }, - { RequestType::CONTRACT_DELETE, "CONTRACT_DELETE" }, - { RequestType::FREEZE, "FREEZE" }, - { RequestType::CREATE_TRANSACTION_RECORD, "CREATE_TRANSACTION_RECORD" }, - { RequestType::CRYPTO_ACCOUNT_AUTO_RENEW, "CRYPTO_ACCOUNT_AUTO_RENEW" }, - { RequestType::CONTRACT_AUTO_RENEW, "CONTRACT_AUTO_RENEW" }, - { RequestType::GET_VERSION_INFO, "GET_VERSION_INFO" }, - { RequestType::TRANSACTION_GET_RECEIPT, "TRANSACTION_GET_RECEIPT" }, - { RequestType::CONSENSUS_CREATE_TOPIC, "CONSENSUS_CREATE_TOPIC" }, - { RequestType::CONSENSUS_UPDATE_TOPIC, "CONSENSUS_UPDATE_TOPIC" }, - { RequestType::CONSENSUS_DELETE_TOPIC, "CONSENSUS_DELETE_TOPIC" }, - { RequestType::CONSENSUS_GET_TOPIC_INFO, "CONSENSUS_GET_TOPIC_INFO" }, - { RequestType::CONSENSUS_SUBMIT_MESSAGE, "CONSENSUS_SUBMIT_MESSAGE" }, - { RequestType::UNCHECKED_SUBMIT, "UNCHECKED_SUBMIT" }, - { RequestType::TOKEN_CREATE, "TOKEN_CREATE" }, - { RequestType::TOKEN_GET_INFO, "TOKEN_GET_INFO" }, - { RequestType::TOKEN_FREEZE_ACCOUNT, "TOKEN_FREEZE_ACCOUNT" }, - { RequestType::TOKEN_UNFREEZE_ACCOUNT, "TOKEN_UNFREEZE_ACCOUNT" }, - { RequestType::TOKEN_GRANT_KYC_TO_ACCOUNT, "TOKEN_GRANT_KYC_TO_ACCOUNT" }, - { RequestType::TOKEN_REVOKE_KYC_FROM_ACCOUNT, "TOKEN_REVOKE_KYC_FROM_ACCOUNT"}, - { RequestType::TOKEN_DELETE, "TOKEN_DELETE" }, - { RequestType::TOKEN_UPDATE, "TOKEN_UPDATE" }, - { RequestType::TOKEN_MINT, "TOKEN_MINT" }, - { RequestType::TOKEN_BURN, "TOKEN_BURN" }, - { RequestType::TOKEN_ACCOUNT_WIPE, "TOKEN_ACCOUNT_WIPE" }, - { RequestType::TOKEN_ASSOCIATE_TO_ACCOUNT, "TOKEN_ASSOCIATE_TO_ACCOUNT" }, - { RequestType::TOKEN_DISSOCIATE_FROM_ACCOUNT, "TOKEN_DISSOCIATE_FROM_ACCOUNT"}, - { RequestType::SCHEDULE_CREATE, "SCHEDULE_CREATE" }, - { RequestType::SCHEDULE_DELETE, "SCHEDULE_DELETE" }, - { RequestType::SCHEDULE_SIGN, "SCHEDULE_SIGN" }, - { RequestType::SCHEDULE_GET_INFO, "SCHEDULE_GET_INFO" }, - { RequestType::TOKEN_GET_ACCOUNT_NFT_INFOS, "TOKEN_GET_ACCOUNT_NFT_INFOS" }, - { RequestType::TOKEN_GET_NFT_INFO, "TOKEN_GET_NFT_INFO" }, - { RequestType::TOKEN_GET_NFT_INFOS, "TOKEN_GET_NFT_INFOS" }, - { RequestType::TOKEN_FEE_SCHEDULE_UPDATE, "TOKEN_FEE_SCHEDULE_UPDATE" }, - { RequestType::NETWORK_GET_EXECUTION_TIME, "NETWORK_GET_EXECUTION_TIME" }, - { RequestType::TOKEN_PAUSE, "TOKEN_PAUSE" }, - { RequestType::TOKEN_UNPAUSE, "TOKEN_UNPAUSE" }, - { RequestType::CRYPTO_APPROVE_ALLOWANCE, "CRYPTO_APPROVE_ALLOWANCE" }, - { RequestType::CRYPTO_DELETE_ALLOWANCE, "CRYPTO_DELETE_ALLOWANCE" }, - { RequestType::GET_ACCOUNT_DETAILS, "GET_ACCOUNT_DETAILS" }, - { RequestType::ETHEREUM_TRANSACTION, "ETHEREUM_TRANSACTION" }, - { RequestType::NODE_STAKE_UPDATE, "NODE_STAKE_UPDATE" }, - { RequestType::UTIL_PRNG, "UTIL_PRNG" }, - { RequestType::TOKEN_UPDATE_NFTS, "TOKEN_UPDATE_NFTS" }, + { RequestType::NONE, "NONE" }, + { RequestType::CRYPTO_TRANSFER, "CRYPTO_TRANSFER" }, + { RequestType::CRYPTO_UPDATE, "CRYPTO_UPDATE" }, + { RequestType::CRYPTO_DELETE, "CRYPTO_DELETE" }, + { RequestType::CRYPTO_ADD_LIVE_HASH, "CRYPTO_ADD_LIVE_HASH" }, + { RequestType::CRYPTO_DELETE_LIVE_HASH, "CRYPTO_DELETE_LIVE_HASH" }, + { RequestType::CONTRACT_CALL, "CONTRACT_CALL" }, + { RequestType::CONTRACT_CREATE, "CONTRACT_CREATE" }, + { RequestType::CONTRACT_UPDATE, "CONTRACT_UPDATE" }, + { RequestType::FILE_CREATE, "FILE_CREATE" }, + { RequestType::FILE_APPEND, "FILE_APPEND" }, + { RequestType::FILE_UPDATE, "FILE_UPDATE" }, + { RequestType::FILE_DELETE, "FILE_DELETE" }, + { RequestType::CRYPTO_GET_ACCOUNT_BALANCE, "CRYPTO_GET_ACCOUNT_BALANCE" }, + { RequestType::CRYPTO_GET_ACCOUNT_RECORDS, "CRYPTO_GET_ACCOUNT_RECORDS" }, + { RequestType::CRYPTO_GET_INFO, "CRYPTO_GET_INFO" }, + { RequestType::CONTRACT_CALL_LOCAL, "CONTRACT_CALL_LOCAL" }, + { RequestType::CONTRACT_GET_INFO, "CONTRACT_GET_INFO" }, + { RequestType::CONTRACT_GET_BYTECODE, "CONTRACT_GET_BYTECODE" }, + { RequestType::GET_BY_SOLIDITY_ID, "GET_BY_SOLIDITY_ID" }, + { RequestType::GET_BY_KEY, "GET_BY_KEY" }, + { RequestType::CRYPTO_GET_LIVE_HASH, "CRYPTO_GET_LIVE_HASH" }, + { RequestType::CRYPTO_GET_STAKERS, "CRYPTO_GET_STAKERS" }, + { RequestType::FILE_GET_CONTENTS, "FILE_GET_CONTENTS" }, + { RequestType::FILE_GET_INFO, "FILE_GET_INFO" }, + { RequestType::TRANSACTION_GET_RECORD, "TRANSACTION_GET_RECORD" }, + { RequestType::CONTRACT_GET_RECORDS, "CONTRACT_GET_RECORDS" }, + { RequestType::CRYPTO_CREATE, "CRYPTO_CREATE" }, + { RequestType::SYSTEM_DELETE, "SYSTEM_DELETE" }, + { RequestType::SYSTEM_UNDELETE, "SYSTEM_UNDELETE" }, + { RequestType::CONTRACT_DELETE, "CONTRACT_DELETE" }, + { RequestType::FREEZE, "FREEZE" }, + { RequestType::CREATE_TRANSACTION_RECORD, "CREATE_TRANSACTION_RECORD" }, + { RequestType::CRYPTO_ACCOUNT_AUTO_RENEW, "CRYPTO_ACCOUNT_AUTO_RENEW" }, + { RequestType::CONTRACT_AUTO_RENEW, "CONTRACT_AUTO_RENEW" }, + { RequestType::GET_VERSION_INFO, "GET_VERSION_INFO" }, + { RequestType::TRANSACTION_GET_RECEIPT, "TRANSACTION_GET_RECEIPT" }, + { RequestType::CONSENSUS_CREATE_TOPIC, "CONSENSUS_CREATE_TOPIC" }, + { RequestType::CONSENSUS_UPDATE_TOPIC, "CONSENSUS_UPDATE_TOPIC" }, + { RequestType::CONSENSUS_DELETE_TOPIC, "CONSENSUS_DELETE_TOPIC" }, + { RequestType::CONSENSUS_GET_TOPIC_INFO, "CONSENSUS_GET_TOPIC_INFO" }, + { RequestType::CONSENSUS_SUBMIT_MESSAGE, "CONSENSUS_SUBMIT_MESSAGE" }, + { RequestType::UNCHECKED_SUBMIT, "UNCHECKED_SUBMIT" }, + { RequestType::TOKEN_CREATE, "TOKEN_CREATE" }, + { RequestType::TOKEN_GET_INFO, "TOKEN_GET_INFO" }, + { RequestType::TOKEN_FREEZE_ACCOUNT, "TOKEN_FREEZE_ACCOUNT" }, + { RequestType::TOKEN_UNFREEZE_ACCOUNT, "TOKEN_UNFREEZE_ACCOUNT" }, + { RequestType::TOKEN_GRANT_KYC_TO_ACCOUNT, "TOKEN_GRANT_KYC_TO_ACCOUNT" }, + { RequestType::TOKEN_REVOKE_KYC_FROM_ACCOUNT, "TOKEN_REVOKE_KYC_FROM_ACCOUNT" }, + { RequestType::TOKEN_DELETE, "TOKEN_DELETE" }, + { RequestType::TOKEN_UPDATE, "TOKEN_UPDATE" }, + { RequestType::TOKEN_MINT, "TOKEN_MINT" }, + { RequestType::TOKEN_BURN, "TOKEN_BURN" }, + { RequestType::TOKEN_ACCOUNT_WIPE, "TOKEN_ACCOUNT_WIPE" }, + { RequestType::TOKEN_ASSOCIATE_TO_ACCOUNT, "TOKEN_ASSOCIATE_TO_ACCOUNT" }, + { RequestType::TOKEN_DISSOCIATE_FROM_ACCOUNT, "TOKEN_DISSOCIATE_FROM_ACCOUNT" }, + { RequestType::SCHEDULE_CREATE, "SCHEDULE_CREATE" }, + { RequestType::SCHEDULE_DELETE, "SCHEDULE_DELETE" }, + { RequestType::SCHEDULE_SIGN, "SCHEDULE_SIGN" }, + { RequestType::SCHEDULE_GET_INFO, "SCHEDULE_GET_INFO" }, + { RequestType::TOKEN_GET_ACCOUNT_NFT_INFOS, "TOKEN_GET_ACCOUNT_NFT_INFOS" }, + { RequestType::TOKEN_GET_NFT_INFO, "TOKEN_GET_NFT_INFO" }, + { RequestType::TOKEN_GET_NFT_INFOS, "TOKEN_GET_NFT_INFOS" }, + { RequestType::TOKEN_FEE_SCHEDULE_UPDATE, "TOKEN_FEE_SCHEDULE_UPDATE" }, + { RequestType::NETWORK_GET_EXECUTION_TIME, "NETWORK_GET_EXECUTION_TIME" }, + { RequestType::TOKEN_PAUSE, "TOKEN_PAUSE" }, + { RequestType::TOKEN_UNPAUSE, "TOKEN_UNPAUSE" }, + { RequestType::CRYPTO_APPROVE_ALLOWANCE, "CRYPTO_APPROVE_ALLOWANCE" }, + { RequestType::CRYPTO_DELETE_ALLOWANCE, "CRYPTO_DELETE_ALLOWANCE" }, + { RequestType::GET_ACCOUNT_DETAILS, "GET_ACCOUNT_DETAILS" }, + { RequestType::ETHEREUM_TRANSACTION, "ETHEREUM_TRANSACTION" }, + { RequestType::NODE_STAKE_UPDATE, "NODE_STAKE_UPDATE" }, + { RequestType::UTIL_PRNG, "UTIL_PRNG" }, + { RequestType::TOKEN_UPDATE_NFTS, "TOKEN_UPDATE_NFTS" }, }; -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/ScheduleCreateTransaction.cc b/src/sdk/main/src/ScheduleCreateTransaction.cc index 6731b2acb..de4ce6590 100644 --- a/src/sdk/main/src/ScheduleCreateTransaction.cc +++ b/src/sdk/main/src/ScheduleCreateTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- struct ScheduleCreateTransaction::ScheduleCreateTransactionImpl @@ -300,4 +300,4 @@ proto::ScheduleCreateTransactionBody* ScheduleCreateTransaction::build() const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/ScheduleDeleteTransaction.cc b/src/sdk/main/src/ScheduleDeleteTransaction.cc index 623b9aeeb..8ee096f1e 100644 --- a/src/sdk/main/src/ScheduleDeleteTransaction.cc +++ b/src/sdk/main/src/ScheduleDeleteTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- ScheduleDeleteTransaction::ScheduleDeleteTransaction(const proto::TransactionBody& transactionBody) @@ -105,4 +105,4 @@ proto::ScheduleDeleteTransactionBody* ScheduleDeleteTransaction::build() const return body.release(); } -} // namespace Hedera \ No newline at end of file +} // namespace Hiero \ No newline at end of file diff --git a/src/sdk/main/src/ScheduleId.cc b/src/sdk/main/src/ScheduleId.cc index d7806d2e2..562b75cfc 100644 --- a/src/sdk/main/src/ScheduleId.cc +++ b/src/sdk/main/src/ScheduleId.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- ScheduleId::ScheduleId(uint64_t num) @@ -117,4 +117,4 @@ std::vector ScheduleId::toBytes() const return internal::Utilities::stringToByteVector(toProtobuf()->SerializeAsString()); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/ScheduleInfo.cc b/src/sdk/main/src/ScheduleInfo.cc index 66e373820..5a25c756a 100644 --- a/src/sdk/main/src/ScheduleInfo.cc +++ b/src/sdk/main/src/ScheduleInfo.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- ScheduleInfo ScheduleInfo::fromProtobuf(const proto::ScheduleInfo& proto) @@ -181,4 +181,4 @@ std::ostream& operator<<(std::ostream& os, const ScheduleInfo& info) return os; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/ScheduleInfoQuery.cc b/src/sdk/main/src/ScheduleInfoQuery.cc index b126c6045..466bfc711 100644 --- a/src/sdk/main/src/ScheduleInfoQuery.cc +++ b/src/sdk/main/src/ScheduleInfoQuery.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- ScheduleInfoQuery& ScheduleInfoQuery::setScheduleId(const ScheduleId& scheduleId) @@ -75,4 +75,4 @@ proto::ResponseHeader ScheduleInfoQuery::mapResponseHeader(const proto::Response return response.schedulegetinfo().header(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/ScheduleSignTransaction.cc b/src/sdk/main/src/ScheduleSignTransaction.cc index 516bbcdc8..278d97e43 100644 --- a/src/sdk/main/src/ScheduleSignTransaction.cc +++ b/src/sdk/main/src/ScheduleSignTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- ScheduleSignTransaction::ScheduleSignTransaction(const proto::TransactionBody& transactionBody) @@ -113,4 +113,4 @@ proto::ScheduleSignTransactionBody* ScheduleSignTransaction::build() const return body.release(); } -} // namespace Hedera \ No newline at end of file +} // namespace Hiero \ No newline at end of file diff --git a/src/sdk/main/src/SemanticVersion.cc b/src/sdk/main/src/SemanticVersion.cc index 3051f1c4d..0f2cff65f 100644 --- a/src/sdk/main/src/SemanticVersion.cc +++ b/src/sdk/main/src/SemanticVersion.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include -namespace Hedera +namespace Hiero { //----- SemanticVersion::SemanticVersion(int major, int minor, int patch, std::string_view pre, std::string_view build) @@ -91,4 +91,4 @@ std::string SemanticVersion::toString() const return str; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/StakingInfo.cc b/src/sdk/main/src/StakingInfo.cc index 16cfb855f..9c3b183bd 100644 --- a/src/sdk/main/src/StakingInfo.cc +++ b/src/sdk/main/src/StakingInfo.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- StakingInfo StakingInfo::fromProtobuf(const proto::StakingInfo& proto) @@ -126,4 +126,4 @@ std::ostream& operator<<(std::ostream& os, const StakingInfo& info) return os; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/Status.cc b/src/sdk/main/src/Status.cc index 36b5b1158..850bfed2f 100644 --- a/src/sdk/main/src/Status.cc +++ b/src/sdk/main/src/Status.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -21,1008 +21,1008 @@ #include -namespace Hedera +namespace Hiero { //----- const std::unordered_map gProtobufResponseCodeToStatus = { - {proto::ResponseCodeEnum::OK, Status::OK }, - { proto::ResponseCodeEnum::INVALID_TRANSACTION, Status::INVALID_TRANSACTION }, - { proto::ResponseCodeEnum::PAYER_ACCOUNT_NOT_FOUND, Status::PAYER_ACCOUNT_NOT_FOUND }, - { proto::ResponseCodeEnum::INVALID_NODE_ACCOUNT, Status::INVALID_NODE_ACCOUNT }, - { proto::ResponseCodeEnum::TRANSACTION_EXPIRED, Status::TRANSACTION_EXPIRED }, - { proto::ResponseCodeEnum::INVALID_TRANSACTION_START, Status::INVALID_TRANSACTION_START }, - { proto::ResponseCodeEnum::INVALID_TRANSACTION_DURATION, Status::INVALID_TRANSACTION_DURATION }, - { proto::ResponseCodeEnum::INVALID_SIGNATURE, Status::INVALID_SIGNATURE }, - { proto::ResponseCodeEnum::MEMO_TOO_LONG, Status::MEMO_TOO_LONG }, - { proto::ResponseCodeEnum::INSUFFICIENT_TX_FEE, Status::INSUFFICIENT_TX_FEE }, - { proto::ResponseCodeEnum::INSUFFICIENT_PAYER_BALANCE, Status::INSUFFICIENT_PAYER_BALANCE }, - { proto::ResponseCodeEnum::DUPLICATE_TRANSACTION, Status::DUPLICATE_TRANSACTION }, - { proto::ResponseCodeEnum::BUSY, Status::BUSY }, - { proto::ResponseCodeEnum::NOT_SUPPORTED, Status::NOT_SUPPORTED }, - { proto::ResponseCodeEnum::INVALID_FILE_ID, Status::INVALID_FILE_ID }, - { proto::ResponseCodeEnum::INVALID_ACCOUNT_ID, Status::INVALID_ACCOUNT_ID }, - { proto::ResponseCodeEnum::INVALID_CONTRACT_ID, Status::INVALID_CONTRACT_ID }, - { proto::ResponseCodeEnum::INVALID_TRANSACTION_ID, Status::INVALID_TRANSACTION_ID }, - { proto::ResponseCodeEnum::RECEIPT_NOT_FOUND, Status::RECEIPT_NOT_FOUND }, - { proto::ResponseCodeEnum::RECORD_NOT_FOUND, Status::RECORD_NOT_FOUND }, - { proto::ResponseCodeEnum::INVALID_SOLIDITY_ID, Status::INVALID_SOLIDITY_ID }, - { proto::ResponseCodeEnum::UNKNOWN, Status::UNKNOWN }, - { proto::ResponseCodeEnum::SUCCESS, Status::SUCCESS }, - { proto::ResponseCodeEnum::FAIL_INVALID, Status::FAIL_INVALID }, - { proto::ResponseCodeEnum::FAIL_FEE, Status::FAIL_FEE }, - { proto::ResponseCodeEnum::FAIL_BALANCE, Status::FAIL_BALANCE }, - { proto::ResponseCodeEnum::KEY_REQUIRED, Status::KEY_REQUIRED }, - { proto::ResponseCodeEnum::BAD_ENCODING, Status::BAD_ENCODING }, - { proto::ResponseCodeEnum::INSUFFICIENT_ACCOUNT_BALANCE, Status::INSUFFICIENT_ACCOUNT_BALANCE }, - { proto::ResponseCodeEnum::INVALID_SOLIDITY_ADDRESS, Status::INVALID_SOLIDITY_ADDRESS }, - { proto::ResponseCodeEnum::INSUFFICIENT_GAS, Status::INSUFFICIENT_GAS }, - { proto::ResponseCodeEnum::CONTRACT_SIZE_LIMIT_EXCEEDED, Status::CONTRACT_SIZE_LIMIT_EXCEEDED }, - { proto::ResponseCodeEnum::LOCAL_CALL_MODIFICATION_EXCEPTION, Status::LOCAL_CALL_MODIFICATION_EXCEPTION }, - { proto::ResponseCodeEnum::CONTRACT_REVERT_EXECUTED, Status::CONTRACT_REVERT_EXECUTED }, - { proto::ResponseCodeEnum::CONTRACT_EXECUTION_EXCEPTION, Status::CONTRACT_EXECUTION_EXCEPTION }, - { proto::ResponseCodeEnum::INVALID_RECEIVING_NODE_ACCOUNT, Status::INVALID_RECEIVING_NODE_ACCOUNT }, - { proto::ResponseCodeEnum::MISSING_QUERY_HEADER, Status::MISSING_QUERY_HEADER }, - { proto::ResponseCodeEnum::ACCOUNT_UPDATE_FAILED, Status::ACCOUNT_UPDATE_FAILED }, - { proto::ResponseCodeEnum::INVALID_KEY_ENCODING, Status::INVALID_KEY_ENCODING }, - { proto::ResponseCodeEnum::NULL_SOLIDITY_ADDRESS, Status::NULL_SOLIDITY_ADDRESS }, - { proto::ResponseCodeEnum::CONTRACT_UPDATE_FAILED, Status::CONTRACT_UPDATE_FAILED }, - { proto::ResponseCodeEnum::INVALID_QUERY_HEADER, Status::INVALID_QUERY_HEADER }, - { proto::ResponseCodeEnum::INVALID_FEE_SUBMITTED, Status::INVALID_FEE_SUBMITTED }, - { proto::ResponseCodeEnum::INVALID_PAYER_SIGNATURE, Status::INVALID_PAYER_SIGNATURE }, - { proto::ResponseCodeEnum::KEY_NOT_PROVIDED, Status::KEY_NOT_PROVIDED }, - { proto::ResponseCodeEnum::INVALID_EXPIRATION_TIME, Status::INVALID_EXPIRATION_TIME }, - { proto::ResponseCodeEnum::NO_WACL_KEY, Status::NO_WACL_KEY }, - { proto::ResponseCodeEnum::FILE_CONTENT_EMPTY, Status::FILE_CONTENT_EMPTY }, - { proto::ResponseCodeEnum::INVALID_ACCOUNT_AMOUNTS, Status::INVALID_ACCOUNT_AMOUNTS }, - { proto::ResponseCodeEnum::EMPTY_TRANSACTION_BODY, Status::EMPTY_TRANSACTION_BODY }, - { proto::ResponseCodeEnum::INVALID_TRANSACTION_BODY, Status::INVALID_TRANSACTION_BODY }, - { proto::ResponseCodeEnum::INVALID_SIGNATURE_TYPE_MISMATCHING_KEY, Status::INVALID_SIGNATURE_TYPE_MISMATCHING_KEY }, - { proto::ResponseCodeEnum::INVALID_SIGNATURE_COUNT_MISMATCHING_KEY, Status::INVALID_SIGNATURE_COUNT_MISMATCHING_KEY}, - { proto::ResponseCodeEnum::EMPTY_LIVE_HASH_BODY, Status::EMPTY_LIVE_HASH_BODY }, - { proto::ResponseCodeEnum::EMPTY_LIVE_HASH, Status::EMPTY_LIVE_HASH }, - { proto::ResponseCodeEnum::EMPTY_LIVE_HASH_KEYS, Status::EMPTY_LIVE_HASH_KEYS }, - { proto::ResponseCodeEnum::INVALID_LIVE_HASH_SIZE, Status::INVALID_LIVE_HASH_SIZE }, - { proto::ResponseCodeEnum::EMPTY_QUERY_BODY, Status::EMPTY_QUERY_BODY }, - { proto::ResponseCodeEnum::EMPTY_LIVE_HASH_QUERY, Status::EMPTY_LIVE_HASH_QUERY }, - { proto::ResponseCodeEnum::LIVE_HASH_NOT_FOUND, Status::LIVE_HASH_NOT_FOUND }, - { proto::ResponseCodeEnum::ACCOUNT_ID_DOES_NOT_EXIST, Status::ACCOUNT_ID_DOES_NOT_EXIST }, - { proto::ResponseCodeEnum::LIVE_HASH_ALREADY_EXISTS, Status::LIVE_HASH_ALREADY_EXISTS }, - { proto::ResponseCodeEnum::INVALID_FILE_WACL, Status::INVALID_FILE_WACL }, - { proto::ResponseCodeEnum::SERIALIZATION_FAILED, Status::SERIALIZATION_FAILED }, - { proto::ResponseCodeEnum::TRANSACTION_OVERSIZE, Status::TRANSACTION_OVERSIZE }, - { proto::ResponseCodeEnum::TRANSACTION_TOO_MANY_LAYERS, Status::TRANSACTION_TOO_MANY_LAYERS }, - { proto::ResponseCodeEnum::CONTRACT_DELETED, Status::CONTRACT_DELETED }, - { proto::ResponseCodeEnum::PLATFORM_NOT_ACTIVE, Status::PLATFORM_NOT_ACTIVE }, - { proto::ResponseCodeEnum::KEY_PREFIX_MISMATCH, Status::KEY_PREFIX_MISMATCH }, - { proto::ResponseCodeEnum::PLATFORM_TRANSACTION_NOT_CREATED, Status::PLATFORM_TRANSACTION_NOT_CREATED }, - { proto::ResponseCodeEnum::INVALID_RENEWAL_PERIOD, Status::INVALID_RENEWAL_PERIOD }, - { proto::ResponseCodeEnum::INVALID_PAYER_ACCOUNT_ID, Status::INVALID_PAYER_ACCOUNT_ID }, - { proto::ResponseCodeEnum::ACCOUNT_DELETED, Status::ACCOUNT_DELETED }, - { proto::ResponseCodeEnum::FILE_DELETED, Status::FILE_DELETED }, - { proto::ResponseCodeEnum::ACCOUNT_REPEATED_IN_ACCOUNT_AMOUNTS, Status::ACCOUNT_REPEATED_IN_ACCOUNT_AMOUNTS }, - { proto::ResponseCodeEnum::SETTING_NEGATIVE_ACCOUNT_BALANCE, Status::SETTING_NEGATIVE_ACCOUNT_BALANCE }, - { proto::ResponseCodeEnum::OBTAINER_REQUIRED, Status::OBTAINER_REQUIRED }, - { proto::ResponseCodeEnum::OBTAINER_SAME_CONTRACT_ID, Status::OBTAINER_SAME_CONTRACT_ID }, - { proto::ResponseCodeEnum::OBTAINER_DOES_NOT_EXIST, Status::OBTAINER_DOES_NOT_EXIST }, - { proto::ResponseCodeEnum::MODIFYING_IMMUTABLE_CONTRACT, Status::MODIFYING_IMMUTABLE_CONTRACT }, - { proto::ResponseCodeEnum::FILE_SYSTEM_EXCEPTION, Status::FILE_SYSTEM_EXCEPTION }, - { proto::ResponseCodeEnum::AUTORENEW_DURATION_NOT_IN_RANGE, Status::AUTORENEW_DURATION_NOT_IN_RANGE }, - { proto::ResponseCodeEnum::ERROR_DECODING_BYTESTRING, Status::ERROR_DECODING_BYTESTRING }, - { proto::ResponseCodeEnum::CONTRACT_FILE_EMPTY, Status::CONTRACT_FILE_EMPTY }, - { proto::ResponseCodeEnum::CONTRACT_BYTECODE_EMPTY, Status::CONTRACT_BYTECODE_EMPTY }, - { proto::ResponseCodeEnum::INVALID_INITIAL_BALANCE, Status::INVALID_INITIAL_BALANCE }, - { proto::ResponseCodeEnum::ACCOUNT_IS_NOT_GENESIS_ACCOUNT, Status::ACCOUNT_IS_NOT_GENESIS_ACCOUNT }, - { proto::ResponseCodeEnum::PAYER_ACCOUNT_UNAUTHORIZED, Status::PAYER_ACCOUNT_UNAUTHORIZED }, - { proto::ResponseCodeEnum::INVALID_FREEZE_TRANSACTION_BODY, Status::INVALID_FREEZE_TRANSACTION_BODY }, - { proto::ResponseCodeEnum::FREEZE_TRANSACTION_BODY_NOT_FOUND, Status::FREEZE_TRANSACTION_BODY_NOT_FOUND }, - { proto::ResponseCodeEnum::TRANSFER_LIST_SIZE_LIMIT_EXCEEDED, Status::TRANSFER_LIST_SIZE_LIMIT_EXCEEDED }, - { proto::ResponseCodeEnum::RESULT_SIZE_LIMIT_EXCEEDED, Status::RESULT_SIZE_LIMIT_EXCEEDED }, - { proto::ResponseCodeEnum::NOT_SPECIAL_ACCOUNT, Status::NOT_SPECIAL_ACCOUNT }, - { proto::ResponseCodeEnum::CONTRACT_NEGATIVE_GAS, Status::CONTRACT_NEGATIVE_GAS }, - { proto::ResponseCodeEnum::CONTRACT_NEGATIVE_VALUE, Status::CONTRACT_NEGATIVE_VALUE }, - { proto::ResponseCodeEnum::INVALID_FEE_FILE, Status::INVALID_FEE_FILE }, - { proto::ResponseCodeEnum::INVALID_EXCHANGE_RATE_FILE, Status::INVALID_EXCHANGE_RATE_FILE }, - { proto::ResponseCodeEnum::INSUFFICIENT_LOCAL_CALL_GAS, Status::INSUFFICIENT_LOCAL_CALL_GAS }, - { proto::ResponseCodeEnum::ENTITY_NOT_ALLOWED_TO_DELETE, Status::ENTITY_NOT_ALLOWED_TO_DELETE }, - { proto::ResponseCodeEnum::AUTHORIZATION_FAILED, Status::AUTHORIZATION_FAILED }, - { proto::ResponseCodeEnum::FILE_UPLOADED_PROTO_INVALID, Status::FILE_UPLOADED_PROTO_INVALID }, - { proto::ResponseCodeEnum::FILE_UPLOADED_PROTO_NOT_SAVED_TO_DISK, Status::FILE_UPLOADED_PROTO_NOT_SAVED_TO_DISK }, - { proto::ResponseCodeEnum::FEE_SCHEDULE_FILE_PART_UPLOADED, Status::FEE_SCHEDULE_FILE_PART_UPLOADED }, - { proto::ResponseCodeEnum::EXCHANGE_RATE_CHANGE_LIMIT_EXCEEDED, Status::EXCHANGE_RATE_CHANGE_LIMIT_EXCEEDED }, - { proto::ResponseCodeEnum::MAX_CONTRACT_STORAGE_EXCEEDED, Status::MAX_CONTRACT_STORAGE_EXCEEDED }, - { proto::ResponseCodeEnum::TRANSFER_ACCOUNT_SAME_AS_DELETE_ACCOUNT, Status::TRANSFER_ACCOUNT_SAME_AS_DELETE_ACCOUNT}, - { proto::ResponseCodeEnum::TOTAL_LEDGER_BALANCE_INVALID, Status::TOTAL_LEDGER_BALANCE_INVALID }, - { proto::ResponseCodeEnum::EXPIRATION_REDUCTION_NOT_ALLOWED, Status::EXPIRATION_REDUCTION_NOT_ALLOWED }, - { proto::ResponseCodeEnum::MAX_GAS_LIMIT_EXCEEDED, Status::MAX_GAS_LIMIT_EXCEEDED }, - { proto::ResponseCodeEnum::MAX_FILE_SIZE_EXCEEDED, Status::MAX_FILE_SIZE_EXCEEDED }, - { proto::ResponseCodeEnum::RECEIVER_SIG_REQUIRED, Status::RECEIVER_SIG_REQUIRED }, - { proto::ResponseCodeEnum::INVALID_TOPIC_ID, Status::INVALID_TOPIC_ID }, - { proto::ResponseCodeEnum::INVALID_ADMIN_KEY, Status::INVALID_ADMIN_KEY }, - { proto::ResponseCodeEnum::INVALID_SUBMIT_KEY, Status::INVALID_SUBMIT_KEY }, - { proto::ResponseCodeEnum::UNAUTHORIZED, Status::UNAUTHORIZED }, - { proto::ResponseCodeEnum::INVALID_TOPIC_MESSAGE, Status::INVALID_TOPIC_MESSAGE }, - { proto::ResponseCodeEnum::INVALID_AUTORENEW_ACCOUNT, Status::INVALID_AUTORENEW_ACCOUNT }, - { proto::ResponseCodeEnum::AUTORENEW_ACCOUNT_NOT_ALLOWED, Status::AUTORENEW_ACCOUNT_NOT_ALLOWED }, - { proto::ResponseCodeEnum::TOPIC_EXPIRED, Status::TOPIC_EXPIRED }, - { proto::ResponseCodeEnum::INVALID_CHUNK_NUMBER, Status::INVALID_CHUNK_NUMBER }, - { proto::ResponseCodeEnum::INVALID_CHUNK_TRANSACTION_ID, Status::INVALID_CHUNK_TRANSACTION_ID }, - { proto::ResponseCodeEnum::ACCOUNT_FROZEN_FOR_TOKEN, Status::ACCOUNT_FROZEN_FOR_TOKEN }, - { proto::ResponseCodeEnum::TOKENS_PER_ACCOUNT_LIMIT_EXCEEDED, Status::TOKENS_PER_ACCOUNT_LIMIT_EXCEEDED }, - { proto::ResponseCodeEnum::INVALID_TOKEN_ID, Status::INVALID_TOKEN_ID }, - { proto::ResponseCodeEnum::INVALID_TOKEN_DECIMALS, Status::INVALID_TOKEN_DECIMALS }, - { proto::ResponseCodeEnum::INVALID_TOKEN_INITIAL_SUPPLY, Status::INVALID_TOKEN_INITIAL_SUPPLY }, - { proto::ResponseCodeEnum::INVALID_TREASURY_ACCOUNT_FOR_TOKEN, Status::INVALID_TREASURY_ACCOUNT_FOR_TOKEN }, - { proto::ResponseCodeEnum::INVALID_TOKEN_SYMBOL, Status::INVALID_TOKEN_SYMBOL }, - { proto::ResponseCodeEnum::TOKEN_HAS_NO_FREEZE_KEY, Status::TOKEN_HAS_NO_FREEZE_KEY }, - { proto::ResponseCodeEnum::TRANSFERS_NOT_ZERO_SUM_FOR_TOKEN, Status::TRANSFERS_NOT_ZERO_SUM_FOR_TOKEN }, - { proto::ResponseCodeEnum::MISSING_TOKEN_SYMBOL, Status::MISSING_TOKEN_SYMBOL }, - { proto::ResponseCodeEnum::TOKEN_SYMBOL_TOO_LONG, Status::TOKEN_SYMBOL_TOO_LONG }, - { proto::ResponseCodeEnum::ACCOUNT_KYC_NOT_GRANTED_FOR_TOKEN, Status::ACCOUNT_KYC_NOT_GRANTED_FOR_TOKEN }, - { proto::ResponseCodeEnum::TOKEN_HAS_NO_KYC_KEY, Status::TOKEN_HAS_NO_KYC_KEY }, - { proto::ResponseCodeEnum::INSUFFICIENT_TOKEN_BALANCE, Status::INSUFFICIENT_TOKEN_BALANCE }, - { proto::ResponseCodeEnum::TOKEN_WAS_DELETED, Status::TOKEN_WAS_DELETED }, - { proto::ResponseCodeEnum::TOKEN_HAS_NO_SUPPLY_KEY, Status::TOKEN_HAS_NO_SUPPLY_KEY }, - { proto::ResponseCodeEnum::TOKEN_HAS_NO_WIPE_KEY, Status::TOKEN_HAS_NO_WIPE_KEY }, - { proto::ResponseCodeEnum::INVALID_TOKEN_MINT_AMOUNT, Status::INVALID_TOKEN_MINT_AMOUNT }, - { proto::ResponseCodeEnum::INVALID_TOKEN_BURN_AMOUNT, Status::INVALID_TOKEN_BURN_AMOUNT }, - { proto::ResponseCodeEnum::TOKEN_NOT_ASSOCIATED_TO_ACCOUNT, Status::TOKEN_NOT_ASSOCIATED_TO_ACCOUNT }, - { proto::ResponseCodeEnum::CANNOT_WIPE_TOKEN_TREASURY_ACCOUNT, Status::CANNOT_WIPE_TOKEN_TREASURY_ACCOUNT }, - { proto::ResponseCodeEnum::INVALID_KYC_KEY, Status::INVALID_KYC_KEY }, - { proto::ResponseCodeEnum::INVALID_WIPE_KEY, Status::INVALID_WIPE_KEY }, - { proto::ResponseCodeEnum::INVALID_FREEZE_KEY, Status::INVALID_FREEZE_KEY }, - { proto::ResponseCodeEnum::INVALID_SUPPLY_KEY, Status::INVALID_SUPPLY_KEY }, - { proto::ResponseCodeEnum::MISSING_TOKEN_NAME, Status::MISSING_TOKEN_NAME }, - { proto::ResponseCodeEnum::TOKEN_NAME_TOO_LONG, Status::TOKEN_NAME_TOO_LONG }, - { proto::ResponseCodeEnum::INVALID_WIPING_AMOUNT, Status::INVALID_WIPING_AMOUNT }, - { proto::ResponseCodeEnum::TOKEN_IS_IMMUTABLE, Status::TOKEN_IS_IMMUTABLE }, - { proto::ResponseCodeEnum::TOKEN_ALREADY_ASSOCIATED_TO_ACCOUNT, Status::TOKEN_ALREADY_ASSOCIATED_TO_ACCOUNT }, + { proto::ResponseCodeEnum::OK, Status::OK }, + { proto::ResponseCodeEnum::INVALID_TRANSACTION, Status::INVALID_TRANSACTION }, + { proto::ResponseCodeEnum::PAYER_ACCOUNT_NOT_FOUND, Status::PAYER_ACCOUNT_NOT_FOUND }, + { proto::ResponseCodeEnum::INVALID_NODE_ACCOUNT, Status::INVALID_NODE_ACCOUNT }, + { proto::ResponseCodeEnum::TRANSACTION_EXPIRED, Status::TRANSACTION_EXPIRED }, + { proto::ResponseCodeEnum::INVALID_TRANSACTION_START, Status::INVALID_TRANSACTION_START }, + { proto::ResponseCodeEnum::INVALID_TRANSACTION_DURATION, Status::INVALID_TRANSACTION_DURATION }, + { proto::ResponseCodeEnum::INVALID_SIGNATURE, Status::INVALID_SIGNATURE }, + { proto::ResponseCodeEnum::MEMO_TOO_LONG, Status::MEMO_TOO_LONG }, + { proto::ResponseCodeEnum::INSUFFICIENT_TX_FEE, Status::INSUFFICIENT_TX_FEE }, + { proto::ResponseCodeEnum::INSUFFICIENT_PAYER_BALANCE, Status::INSUFFICIENT_PAYER_BALANCE }, + { proto::ResponseCodeEnum::DUPLICATE_TRANSACTION, Status::DUPLICATE_TRANSACTION }, + { proto::ResponseCodeEnum::BUSY, Status::BUSY }, + { proto::ResponseCodeEnum::NOT_SUPPORTED, Status::NOT_SUPPORTED }, + { proto::ResponseCodeEnum::INVALID_FILE_ID, Status::INVALID_FILE_ID }, + { proto::ResponseCodeEnum::INVALID_ACCOUNT_ID, Status::INVALID_ACCOUNT_ID }, + { proto::ResponseCodeEnum::INVALID_CONTRACT_ID, Status::INVALID_CONTRACT_ID }, + { proto::ResponseCodeEnum::INVALID_TRANSACTION_ID, Status::INVALID_TRANSACTION_ID }, + { proto::ResponseCodeEnum::RECEIPT_NOT_FOUND, Status::RECEIPT_NOT_FOUND }, + { proto::ResponseCodeEnum::RECORD_NOT_FOUND, Status::RECORD_NOT_FOUND }, + { proto::ResponseCodeEnum::INVALID_SOLIDITY_ID, Status::INVALID_SOLIDITY_ID }, + { proto::ResponseCodeEnum::UNKNOWN, Status::UNKNOWN }, + { proto::ResponseCodeEnum::SUCCESS, Status::SUCCESS }, + { proto::ResponseCodeEnum::FAIL_INVALID, Status::FAIL_INVALID }, + { proto::ResponseCodeEnum::FAIL_FEE, Status::FAIL_FEE }, + { proto::ResponseCodeEnum::FAIL_BALANCE, Status::FAIL_BALANCE }, + { proto::ResponseCodeEnum::KEY_REQUIRED, Status::KEY_REQUIRED }, + { proto::ResponseCodeEnum::BAD_ENCODING, Status::BAD_ENCODING }, + { proto::ResponseCodeEnum::INSUFFICIENT_ACCOUNT_BALANCE, Status::INSUFFICIENT_ACCOUNT_BALANCE }, + { proto::ResponseCodeEnum::INVALID_SOLIDITY_ADDRESS, Status::INVALID_SOLIDITY_ADDRESS }, + { proto::ResponseCodeEnum::INSUFFICIENT_GAS, Status::INSUFFICIENT_GAS }, + { proto::ResponseCodeEnum::CONTRACT_SIZE_LIMIT_EXCEEDED, Status::CONTRACT_SIZE_LIMIT_EXCEEDED }, + { proto::ResponseCodeEnum::LOCAL_CALL_MODIFICATION_EXCEPTION, Status::LOCAL_CALL_MODIFICATION_EXCEPTION }, + { proto::ResponseCodeEnum::CONTRACT_REVERT_EXECUTED, Status::CONTRACT_REVERT_EXECUTED }, + { proto::ResponseCodeEnum::CONTRACT_EXECUTION_EXCEPTION, Status::CONTRACT_EXECUTION_EXCEPTION }, + { proto::ResponseCodeEnum::INVALID_RECEIVING_NODE_ACCOUNT, Status::INVALID_RECEIVING_NODE_ACCOUNT }, + { proto::ResponseCodeEnum::MISSING_QUERY_HEADER, Status::MISSING_QUERY_HEADER }, + { proto::ResponseCodeEnum::ACCOUNT_UPDATE_FAILED, Status::ACCOUNT_UPDATE_FAILED }, + { proto::ResponseCodeEnum::INVALID_KEY_ENCODING, Status::INVALID_KEY_ENCODING }, + { proto::ResponseCodeEnum::NULL_SOLIDITY_ADDRESS, Status::NULL_SOLIDITY_ADDRESS }, + { proto::ResponseCodeEnum::CONTRACT_UPDATE_FAILED, Status::CONTRACT_UPDATE_FAILED }, + { proto::ResponseCodeEnum::INVALID_QUERY_HEADER, Status::INVALID_QUERY_HEADER }, + { proto::ResponseCodeEnum::INVALID_FEE_SUBMITTED, Status::INVALID_FEE_SUBMITTED }, + { proto::ResponseCodeEnum::INVALID_PAYER_SIGNATURE, Status::INVALID_PAYER_SIGNATURE }, + { proto::ResponseCodeEnum::KEY_NOT_PROVIDED, Status::KEY_NOT_PROVIDED }, + { proto::ResponseCodeEnum::INVALID_EXPIRATION_TIME, Status::INVALID_EXPIRATION_TIME }, + { proto::ResponseCodeEnum::NO_WACL_KEY, Status::NO_WACL_KEY }, + { proto::ResponseCodeEnum::FILE_CONTENT_EMPTY, Status::FILE_CONTENT_EMPTY }, + { proto::ResponseCodeEnum::INVALID_ACCOUNT_AMOUNTS, Status::INVALID_ACCOUNT_AMOUNTS }, + { proto::ResponseCodeEnum::EMPTY_TRANSACTION_BODY, Status::EMPTY_TRANSACTION_BODY }, + { proto::ResponseCodeEnum::INVALID_TRANSACTION_BODY, Status::INVALID_TRANSACTION_BODY }, + { proto::ResponseCodeEnum::INVALID_SIGNATURE_TYPE_MISMATCHING_KEY, Status::INVALID_SIGNATURE_TYPE_MISMATCHING_KEY }, + { proto::ResponseCodeEnum::INVALID_SIGNATURE_COUNT_MISMATCHING_KEY, Status::INVALID_SIGNATURE_COUNT_MISMATCHING_KEY }, + { proto::ResponseCodeEnum::EMPTY_LIVE_HASH_BODY, Status::EMPTY_LIVE_HASH_BODY }, + { proto::ResponseCodeEnum::EMPTY_LIVE_HASH, Status::EMPTY_LIVE_HASH }, + { proto::ResponseCodeEnum::EMPTY_LIVE_HASH_KEYS, Status::EMPTY_LIVE_HASH_KEYS }, + { proto::ResponseCodeEnum::INVALID_LIVE_HASH_SIZE, Status::INVALID_LIVE_HASH_SIZE }, + { proto::ResponseCodeEnum::EMPTY_QUERY_BODY, Status::EMPTY_QUERY_BODY }, + { proto::ResponseCodeEnum::EMPTY_LIVE_HASH_QUERY, Status::EMPTY_LIVE_HASH_QUERY }, + { proto::ResponseCodeEnum::LIVE_HASH_NOT_FOUND, Status::LIVE_HASH_NOT_FOUND }, + { proto::ResponseCodeEnum::ACCOUNT_ID_DOES_NOT_EXIST, Status::ACCOUNT_ID_DOES_NOT_EXIST }, + { proto::ResponseCodeEnum::LIVE_HASH_ALREADY_EXISTS, Status::LIVE_HASH_ALREADY_EXISTS }, + { proto::ResponseCodeEnum::INVALID_FILE_WACL, Status::INVALID_FILE_WACL }, + { proto::ResponseCodeEnum::SERIALIZATION_FAILED, Status::SERIALIZATION_FAILED }, + { proto::ResponseCodeEnum::TRANSACTION_OVERSIZE, Status::TRANSACTION_OVERSIZE }, + { proto::ResponseCodeEnum::TRANSACTION_TOO_MANY_LAYERS, Status::TRANSACTION_TOO_MANY_LAYERS }, + { proto::ResponseCodeEnum::CONTRACT_DELETED, Status::CONTRACT_DELETED }, + { proto::ResponseCodeEnum::PLATFORM_NOT_ACTIVE, Status::PLATFORM_NOT_ACTIVE }, + { proto::ResponseCodeEnum::KEY_PREFIX_MISMATCH, Status::KEY_PREFIX_MISMATCH }, + { proto::ResponseCodeEnum::PLATFORM_TRANSACTION_NOT_CREATED, Status::PLATFORM_TRANSACTION_NOT_CREATED }, + { proto::ResponseCodeEnum::INVALID_RENEWAL_PERIOD, Status::INVALID_RENEWAL_PERIOD }, + { proto::ResponseCodeEnum::INVALID_PAYER_ACCOUNT_ID, Status::INVALID_PAYER_ACCOUNT_ID }, + { proto::ResponseCodeEnum::ACCOUNT_DELETED, Status::ACCOUNT_DELETED }, + { proto::ResponseCodeEnum::FILE_DELETED, Status::FILE_DELETED }, + { proto::ResponseCodeEnum::ACCOUNT_REPEATED_IN_ACCOUNT_AMOUNTS, Status::ACCOUNT_REPEATED_IN_ACCOUNT_AMOUNTS }, + { proto::ResponseCodeEnum::SETTING_NEGATIVE_ACCOUNT_BALANCE, Status::SETTING_NEGATIVE_ACCOUNT_BALANCE }, + { proto::ResponseCodeEnum::OBTAINER_REQUIRED, Status::OBTAINER_REQUIRED }, + { proto::ResponseCodeEnum::OBTAINER_SAME_CONTRACT_ID, Status::OBTAINER_SAME_CONTRACT_ID }, + { proto::ResponseCodeEnum::OBTAINER_DOES_NOT_EXIST, Status::OBTAINER_DOES_NOT_EXIST }, + { proto::ResponseCodeEnum::MODIFYING_IMMUTABLE_CONTRACT, Status::MODIFYING_IMMUTABLE_CONTRACT }, + { proto::ResponseCodeEnum::FILE_SYSTEM_EXCEPTION, Status::FILE_SYSTEM_EXCEPTION }, + { proto::ResponseCodeEnum::AUTORENEW_DURATION_NOT_IN_RANGE, Status::AUTORENEW_DURATION_NOT_IN_RANGE }, + { proto::ResponseCodeEnum::ERROR_DECODING_BYTESTRING, Status::ERROR_DECODING_BYTESTRING }, + { proto::ResponseCodeEnum::CONTRACT_FILE_EMPTY, Status::CONTRACT_FILE_EMPTY }, + { proto::ResponseCodeEnum::CONTRACT_BYTECODE_EMPTY, Status::CONTRACT_BYTECODE_EMPTY }, + { proto::ResponseCodeEnum::INVALID_INITIAL_BALANCE, Status::INVALID_INITIAL_BALANCE }, + { proto::ResponseCodeEnum::ACCOUNT_IS_NOT_GENESIS_ACCOUNT, Status::ACCOUNT_IS_NOT_GENESIS_ACCOUNT }, + { proto::ResponseCodeEnum::PAYER_ACCOUNT_UNAUTHORIZED, Status::PAYER_ACCOUNT_UNAUTHORIZED }, + { proto::ResponseCodeEnum::INVALID_FREEZE_TRANSACTION_BODY, Status::INVALID_FREEZE_TRANSACTION_BODY }, + { proto::ResponseCodeEnum::FREEZE_TRANSACTION_BODY_NOT_FOUND, Status::FREEZE_TRANSACTION_BODY_NOT_FOUND }, + { proto::ResponseCodeEnum::TRANSFER_LIST_SIZE_LIMIT_EXCEEDED, Status::TRANSFER_LIST_SIZE_LIMIT_EXCEEDED }, + { proto::ResponseCodeEnum::RESULT_SIZE_LIMIT_EXCEEDED, Status::RESULT_SIZE_LIMIT_EXCEEDED }, + { proto::ResponseCodeEnum::NOT_SPECIAL_ACCOUNT, Status::NOT_SPECIAL_ACCOUNT }, + { proto::ResponseCodeEnum::CONTRACT_NEGATIVE_GAS, Status::CONTRACT_NEGATIVE_GAS }, + { proto::ResponseCodeEnum::CONTRACT_NEGATIVE_VALUE, Status::CONTRACT_NEGATIVE_VALUE }, + { proto::ResponseCodeEnum::INVALID_FEE_FILE, Status::INVALID_FEE_FILE }, + { proto::ResponseCodeEnum::INVALID_EXCHANGE_RATE_FILE, Status::INVALID_EXCHANGE_RATE_FILE }, + { proto::ResponseCodeEnum::INSUFFICIENT_LOCAL_CALL_GAS, Status::INSUFFICIENT_LOCAL_CALL_GAS }, + { proto::ResponseCodeEnum::ENTITY_NOT_ALLOWED_TO_DELETE, Status::ENTITY_NOT_ALLOWED_TO_DELETE }, + { proto::ResponseCodeEnum::AUTHORIZATION_FAILED, Status::AUTHORIZATION_FAILED }, + { proto::ResponseCodeEnum::FILE_UPLOADED_PROTO_INVALID, Status::FILE_UPLOADED_PROTO_INVALID }, + { proto::ResponseCodeEnum::FILE_UPLOADED_PROTO_NOT_SAVED_TO_DISK, Status::FILE_UPLOADED_PROTO_NOT_SAVED_TO_DISK }, + { proto::ResponseCodeEnum::FEE_SCHEDULE_FILE_PART_UPLOADED, Status::FEE_SCHEDULE_FILE_PART_UPLOADED }, + { proto::ResponseCodeEnum::EXCHANGE_RATE_CHANGE_LIMIT_EXCEEDED, Status::EXCHANGE_RATE_CHANGE_LIMIT_EXCEEDED }, + { proto::ResponseCodeEnum::MAX_CONTRACT_STORAGE_EXCEEDED, Status::MAX_CONTRACT_STORAGE_EXCEEDED }, + { proto::ResponseCodeEnum::TRANSFER_ACCOUNT_SAME_AS_DELETE_ACCOUNT, Status::TRANSFER_ACCOUNT_SAME_AS_DELETE_ACCOUNT }, + { proto::ResponseCodeEnum::TOTAL_LEDGER_BALANCE_INVALID, Status::TOTAL_LEDGER_BALANCE_INVALID }, + { proto::ResponseCodeEnum::EXPIRATION_REDUCTION_NOT_ALLOWED, Status::EXPIRATION_REDUCTION_NOT_ALLOWED }, + { proto::ResponseCodeEnum::MAX_GAS_LIMIT_EXCEEDED, Status::MAX_GAS_LIMIT_EXCEEDED }, + { proto::ResponseCodeEnum::MAX_FILE_SIZE_EXCEEDED, Status::MAX_FILE_SIZE_EXCEEDED }, + { proto::ResponseCodeEnum::RECEIVER_SIG_REQUIRED, Status::RECEIVER_SIG_REQUIRED }, + { proto::ResponseCodeEnum::INVALID_TOPIC_ID, Status::INVALID_TOPIC_ID }, + { proto::ResponseCodeEnum::INVALID_ADMIN_KEY, Status::INVALID_ADMIN_KEY }, + { proto::ResponseCodeEnum::INVALID_SUBMIT_KEY, Status::INVALID_SUBMIT_KEY }, + { proto::ResponseCodeEnum::UNAUTHORIZED, Status::UNAUTHORIZED }, + { proto::ResponseCodeEnum::INVALID_TOPIC_MESSAGE, Status::INVALID_TOPIC_MESSAGE }, + { proto::ResponseCodeEnum::INVALID_AUTORENEW_ACCOUNT, Status::INVALID_AUTORENEW_ACCOUNT }, + { proto::ResponseCodeEnum::AUTORENEW_ACCOUNT_NOT_ALLOWED, Status::AUTORENEW_ACCOUNT_NOT_ALLOWED }, + { proto::ResponseCodeEnum::TOPIC_EXPIRED, Status::TOPIC_EXPIRED }, + { proto::ResponseCodeEnum::INVALID_CHUNK_NUMBER, Status::INVALID_CHUNK_NUMBER }, + { proto::ResponseCodeEnum::INVALID_CHUNK_TRANSACTION_ID, Status::INVALID_CHUNK_TRANSACTION_ID }, + { proto::ResponseCodeEnum::ACCOUNT_FROZEN_FOR_TOKEN, Status::ACCOUNT_FROZEN_FOR_TOKEN }, + { proto::ResponseCodeEnum::TOKENS_PER_ACCOUNT_LIMIT_EXCEEDED, Status::TOKENS_PER_ACCOUNT_LIMIT_EXCEEDED }, + { proto::ResponseCodeEnum::INVALID_TOKEN_ID, Status::INVALID_TOKEN_ID }, + { proto::ResponseCodeEnum::INVALID_TOKEN_DECIMALS, Status::INVALID_TOKEN_DECIMALS }, + { proto::ResponseCodeEnum::INVALID_TOKEN_INITIAL_SUPPLY, Status::INVALID_TOKEN_INITIAL_SUPPLY }, + { proto::ResponseCodeEnum::INVALID_TREASURY_ACCOUNT_FOR_TOKEN, Status::INVALID_TREASURY_ACCOUNT_FOR_TOKEN }, + { proto::ResponseCodeEnum::INVALID_TOKEN_SYMBOL, Status::INVALID_TOKEN_SYMBOL }, + { proto::ResponseCodeEnum::TOKEN_HAS_NO_FREEZE_KEY, Status::TOKEN_HAS_NO_FREEZE_KEY }, + { proto::ResponseCodeEnum::TRANSFERS_NOT_ZERO_SUM_FOR_TOKEN, Status::TRANSFERS_NOT_ZERO_SUM_FOR_TOKEN }, + { proto::ResponseCodeEnum::MISSING_TOKEN_SYMBOL, Status::MISSING_TOKEN_SYMBOL }, + { proto::ResponseCodeEnum::TOKEN_SYMBOL_TOO_LONG, Status::TOKEN_SYMBOL_TOO_LONG }, + { proto::ResponseCodeEnum::ACCOUNT_KYC_NOT_GRANTED_FOR_TOKEN, Status::ACCOUNT_KYC_NOT_GRANTED_FOR_TOKEN }, + { proto::ResponseCodeEnum::TOKEN_HAS_NO_KYC_KEY, Status::TOKEN_HAS_NO_KYC_KEY }, + { proto::ResponseCodeEnum::INSUFFICIENT_TOKEN_BALANCE, Status::INSUFFICIENT_TOKEN_BALANCE }, + { proto::ResponseCodeEnum::TOKEN_WAS_DELETED, Status::TOKEN_WAS_DELETED }, + { proto::ResponseCodeEnum::TOKEN_HAS_NO_SUPPLY_KEY, Status::TOKEN_HAS_NO_SUPPLY_KEY }, + { proto::ResponseCodeEnum::TOKEN_HAS_NO_WIPE_KEY, Status::TOKEN_HAS_NO_WIPE_KEY }, + { proto::ResponseCodeEnum::INVALID_TOKEN_MINT_AMOUNT, Status::INVALID_TOKEN_MINT_AMOUNT }, + { proto::ResponseCodeEnum::INVALID_TOKEN_BURN_AMOUNT, Status::INVALID_TOKEN_BURN_AMOUNT }, + { proto::ResponseCodeEnum::TOKEN_NOT_ASSOCIATED_TO_ACCOUNT, Status::TOKEN_NOT_ASSOCIATED_TO_ACCOUNT }, + { proto::ResponseCodeEnum::CANNOT_WIPE_TOKEN_TREASURY_ACCOUNT, Status::CANNOT_WIPE_TOKEN_TREASURY_ACCOUNT }, + { proto::ResponseCodeEnum::INVALID_KYC_KEY, Status::INVALID_KYC_KEY }, + { proto::ResponseCodeEnum::INVALID_WIPE_KEY, Status::INVALID_WIPE_KEY }, + { proto::ResponseCodeEnum::INVALID_FREEZE_KEY, Status::INVALID_FREEZE_KEY }, + { proto::ResponseCodeEnum::INVALID_SUPPLY_KEY, Status::INVALID_SUPPLY_KEY }, + { proto::ResponseCodeEnum::MISSING_TOKEN_NAME, Status::MISSING_TOKEN_NAME }, + { proto::ResponseCodeEnum::TOKEN_NAME_TOO_LONG, Status::TOKEN_NAME_TOO_LONG }, + { proto::ResponseCodeEnum::INVALID_WIPING_AMOUNT, Status::INVALID_WIPING_AMOUNT }, + { proto::ResponseCodeEnum::TOKEN_IS_IMMUTABLE, Status::TOKEN_IS_IMMUTABLE }, + { proto::ResponseCodeEnum::TOKEN_ALREADY_ASSOCIATED_TO_ACCOUNT, Status::TOKEN_ALREADY_ASSOCIATED_TO_ACCOUNT }, { proto::ResponseCodeEnum::TRANSACTION_REQUIRES_ZERO_TOKEN_BALANCES, - Status::TRANSACTION_REQUIRES_ZERO_TOKEN_BALANCES }, - { proto::ResponseCodeEnum::ACCOUNT_IS_TREASURY, Status::ACCOUNT_IS_TREASURY }, - { proto::ResponseCodeEnum::TOKEN_ID_REPEATED_IN_TOKEN_LIST, Status::TOKEN_ID_REPEATED_IN_TOKEN_LIST }, - { proto::ResponseCodeEnum::TOKEN_TRANSFER_LIST_SIZE_LIMIT_EXCEEDED, Status::TOKEN_TRANSFER_LIST_SIZE_LIMIT_EXCEEDED}, - { proto::ResponseCodeEnum::EMPTY_TOKEN_TRANSFER_BODY, Status::EMPTY_TOKEN_TRANSFER_BODY }, - { proto::ResponseCodeEnum::EMPTY_TOKEN_TRANSFER_ACCOUNT_AMOUNTS, Status::EMPTY_TOKEN_TRANSFER_ACCOUNT_AMOUNTS }, - { proto::ResponseCodeEnum::INVALID_SCHEDULE_ID, Status::INVALID_SCHEDULE_ID }, - { proto::ResponseCodeEnum::SCHEDULE_IS_IMMUTABLE, Status::SCHEDULE_IS_IMMUTABLE }, - { proto::ResponseCodeEnum::INVALID_SCHEDULE_PAYER_ID, Status::INVALID_SCHEDULE_PAYER_ID }, - { proto::ResponseCodeEnum::INVALID_SCHEDULE_ACCOUNT_ID, Status::INVALID_SCHEDULE_ACCOUNT_ID }, - { proto::ResponseCodeEnum::NO_NEW_VALID_SIGNATURES, Status::NO_NEW_VALID_SIGNATURES }, - { proto::ResponseCodeEnum::UNRESOLVABLE_REQUIRED_SIGNERS, Status::UNRESOLVABLE_REQUIRED_SIGNERS }, - { proto::ResponseCodeEnum::SCHEDULED_TRANSACTION_NOT_IN_WHITELIST, Status::SCHEDULED_TRANSACTION_NOT_IN_WHITELIST }, - { proto::ResponseCodeEnum::SOME_SIGNATURES_WERE_INVALID, Status::SOME_SIGNATURES_WERE_INVALID }, - { proto::ResponseCodeEnum::TRANSACTION_ID_FIELD_NOT_ALLOWED, Status::TRANSACTION_ID_FIELD_NOT_ALLOWED }, - { proto::ResponseCodeEnum::IDENTICAL_SCHEDULE_ALREADY_CREATED, Status::IDENTICAL_SCHEDULE_ALREADY_CREATED }, - { proto::ResponseCodeEnum::INVALID_ZERO_BYTE_IN_STRING, Status::INVALID_ZERO_BYTE_IN_STRING }, - { proto::ResponseCodeEnum::SCHEDULE_ALREADY_DELETED, Status::SCHEDULE_ALREADY_DELETED }, - { proto::ResponseCodeEnum::SCHEDULE_ALREADY_EXECUTED, Status::SCHEDULE_ALREADY_EXECUTED }, - { proto::ResponseCodeEnum::MESSAGE_SIZE_TOO_LARGE, Status::MESSAGE_SIZE_TOO_LARGE }, - { proto::ResponseCodeEnum::OPERATION_REPEATED_IN_BUCKET_GROUPS, Status::OPERATION_REPEATED_IN_BUCKET_GROUPS }, - { proto::ResponseCodeEnum::BUCKET_CAPACITY_OVERFLOW, Status::BUCKET_CAPACITY_OVERFLOW }, + Status::TRANSACTION_REQUIRES_ZERO_TOKEN_BALANCES }, + { proto::ResponseCodeEnum::ACCOUNT_IS_TREASURY, Status::ACCOUNT_IS_TREASURY }, + { proto::ResponseCodeEnum::TOKEN_ID_REPEATED_IN_TOKEN_LIST, Status::TOKEN_ID_REPEATED_IN_TOKEN_LIST }, + { proto::ResponseCodeEnum::TOKEN_TRANSFER_LIST_SIZE_LIMIT_EXCEEDED, Status::TOKEN_TRANSFER_LIST_SIZE_LIMIT_EXCEEDED }, + { proto::ResponseCodeEnum::EMPTY_TOKEN_TRANSFER_BODY, Status::EMPTY_TOKEN_TRANSFER_BODY }, + { proto::ResponseCodeEnum::EMPTY_TOKEN_TRANSFER_ACCOUNT_AMOUNTS, Status::EMPTY_TOKEN_TRANSFER_ACCOUNT_AMOUNTS }, + { proto::ResponseCodeEnum::INVALID_SCHEDULE_ID, Status::INVALID_SCHEDULE_ID }, + { proto::ResponseCodeEnum::SCHEDULE_IS_IMMUTABLE, Status::SCHEDULE_IS_IMMUTABLE }, + { proto::ResponseCodeEnum::INVALID_SCHEDULE_PAYER_ID, Status::INVALID_SCHEDULE_PAYER_ID }, + { proto::ResponseCodeEnum::INVALID_SCHEDULE_ACCOUNT_ID, Status::INVALID_SCHEDULE_ACCOUNT_ID }, + { proto::ResponseCodeEnum::NO_NEW_VALID_SIGNATURES, Status::NO_NEW_VALID_SIGNATURES }, + { proto::ResponseCodeEnum::UNRESOLVABLE_REQUIRED_SIGNERS, Status::UNRESOLVABLE_REQUIRED_SIGNERS }, + { proto::ResponseCodeEnum::SCHEDULED_TRANSACTION_NOT_IN_WHITELIST, Status::SCHEDULED_TRANSACTION_NOT_IN_WHITELIST }, + { proto::ResponseCodeEnum::SOME_SIGNATURES_WERE_INVALID, Status::SOME_SIGNATURES_WERE_INVALID }, + { proto::ResponseCodeEnum::TRANSACTION_ID_FIELD_NOT_ALLOWED, Status::TRANSACTION_ID_FIELD_NOT_ALLOWED }, + { proto::ResponseCodeEnum::IDENTICAL_SCHEDULE_ALREADY_CREATED, Status::IDENTICAL_SCHEDULE_ALREADY_CREATED }, + { proto::ResponseCodeEnum::INVALID_ZERO_BYTE_IN_STRING, Status::INVALID_ZERO_BYTE_IN_STRING }, + { proto::ResponseCodeEnum::SCHEDULE_ALREADY_DELETED, Status::SCHEDULE_ALREADY_DELETED }, + { proto::ResponseCodeEnum::SCHEDULE_ALREADY_EXECUTED, Status::SCHEDULE_ALREADY_EXECUTED }, + { proto::ResponseCodeEnum::MESSAGE_SIZE_TOO_LARGE, Status::MESSAGE_SIZE_TOO_LARGE }, + { proto::ResponseCodeEnum::OPERATION_REPEATED_IN_BUCKET_GROUPS, Status::OPERATION_REPEATED_IN_BUCKET_GROUPS }, + { proto::ResponseCodeEnum::BUCKET_CAPACITY_OVERFLOW, Status::BUCKET_CAPACITY_OVERFLOW }, { proto::ResponseCodeEnum::NODE_CAPACITY_NOT_SUFFICIENT_FOR_OPERATION, - Status::NODE_CAPACITY_NOT_SUFFICIENT_FOR_OPERATION }, - { proto::ResponseCodeEnum::BUCKET_HAS_NO_THROTTLE_GROUPS, Status::BUCKET_HAS_NO_THROTTLE_GROUPS }, - { proto::ResponseCodeEnum::THROTTLE_GROUP_HAS_ZERO_OPS_PER_SEC, Status::THROTTLE_GROUP_HAS_ZERO_OPS_PER_SEC }, - { proto::ResponseCodeEnum::SUCCESS_BUT_MISSING_EXPECTED_OPERATION, Status::SUCCESS_BUT_MISSING_EXPECTED_OPERATION }, - { proto::ResponseCodeEnum::UNPARSEABLE_THROTTLE_DEFINITIONS, Status::UNPARSEABLE_THROTTLE_DEFINITIONS }, - { proto::ResponseCodeEnum::INVALID_THROTTLE_DEFINITIONS, Status::INVALID_THROTTLE_DEFINITIONS }, - { proto::ResponseCodeEnum::ACCOUNT_EXPIRED_AND_PENDING_REMOVAL, Status::ACCOUNT_EXPIRED_AND_PENDING_REMOVAL }, - { proto::ResponseCodeEnum::INVALID_TOKEN_MAX_SUPPLY, Status::INVALID_TOKEN_MAX_SUPPLY }, - { proto::ResponseCodeEnum::INVALID_TOKEN_NFT_SERIAL_NUMBER, Status::INVALID_TOKEN_NFT_SERIAL_NUMBER }, - { proto::ResponseCodeEnum::INVALID_NFT_ID, Status::INVALID_NFT_ID }, - { proto::ResponseCodeEnum::METADATA_TOO_LONG, Status::METADATA_TOO_LONG }, - { proto::ResponseCodeEnum::BATCH_SIZE_LIMIT_EXCEEDED, Status::BATCH_SIZE_LIMIT_EXCEEDED }, - { proto::ResponseCodeEnum::INVALID_QUERY_RANGE, Status::INVALID_QUERY_RANGE }, - { proto::ResponseCodeEnum::FRACTION_DIVIDES_BY_ZERO, Status::FRACTION_DIVIDES_BY_ZERO }, - { proto::ResponseCodeEnum::CUSTOM_FEES_LIST_TOO_LONG, Status::CUSTOM_FEES_LIST_TOO_LONG }, - { proto::ResponseCodeEnum::INVALID_CUSTOM_FEE_COLLECTOR, Status::INVALID_CUSTOM_FEE_COLLECTOR }, - { proto::ResponseCodeEnum::INVALID_TOKEN_ID_IN_CUSTOM_FEES, Status::INVALID_TOKEN_ID_IN_CUSTOM_FEES }, - { proto::ResponseCodeEnum::TOKEN_NOT_ASSOCIATED_TO_FEE_COLLECTOR, Status::TOKEN_NOT_ASSOCIATED_TO_FEE_COLLECTOR }, - { proto::ResponseCodeEnum::TOKEN_MAX_SUPPLY_REACHED, Status::TOKEN_MAX_SUPPLY_REACHED }, - { proto::ResponseCodeEnum::SENDER_DOES_NOT_OWN_NFT_SERIAL_NO, Status::SENDER_DOES_NOT_OWN_NFT_SERIAL_NO }, - { proto::ResponseCodeEnum::CUSTOM_FEE_NOT_FULLY_SPECIFIED, Status::CUSTOM_FEE_NOT_FULLY_SPECIFIED }, - { proto::ResponseCodeEnum::CUSTOM_FEE_MUST_BE_POSITIVE, Status::CUSTOM_FEE_MUST_BE_POSITIVE }, - { proto::ResponseCodeEnum::TOKEN_HAS_NO_FEE_SCHEDULE_KEY, Status::TOKEN_HAS_NO_FEE_SCHEDULE_KEY }, - { proto::ResponseCodeEnum::CUSTOM_FEE_OUTSIDE_NUMERIC_RANGE, Status::CUSTOM_FEE_OUTSIDE_NUMERIC_RANGE }, - { proto::ResponseCodeEnum::ROYALTY_FRACTION_CANNOT_EXCEED_ONE, Status::ROYALTY_FRACTION_CANNOT_EXCEED_ONE }, + Status::NODE_CAPACITY_NOT_SUFFICIENT_FOR_OPERATION }, + { proto::ResponseCodeEnum::BUCKET_HAS_NO_THROTTLE_GROUPS, Status::BUCKET_HAS_NO_THROTTLE_GROUPS }, + { proto::ResponseCodeEnum::THROTTLE_GROUP_HAS_ZERO_OPS_PER_SEC, Status::THROTTLE_GROUP_HAS_ZERO_OPS_PER_SEC }, + { proto::ResponseCodeEnum::SUCCESS_BUT_MISSING_EXPECTED_OPERATION, Status::SUCCESS_BUT_MISSING_EXPECTED_OPERATION }, + { proto::ResponseCodeEnum::UNPARSEABLE_THROTTLE_DEFINITIONS, Status::UNPARSEABLE_THROTTLE_DEFINITIONS }, + { proto::ResponseCodeEnum::INVALID_THROTTLE_DEFINITIONS, Status::INVALID_THROTTLE_DEFINITIONS }, + { proto::ResponseCodeEnum::ACCOUNT_EXPIRED_AND_PENDING_REMOVAL, Status::ACCOUNT_EXPIRED_AND_PENDING_REMOVAL }, + { proto::ResponseCodeEnum::INVALID_TOKEN_MAX_SUPPLY, Status::INVALID_TOKEN_MAX_SUPPLY }, + { proto::ResponseCodeEnum::INVALID_TOKEN_NFT_SERIAL_NUMBER, Status::INVALID_TOKEN_NFT_SERIAL_NUMBER }, + { proto::ResponseCodeEnum::INVALID_NFT_ID, Status::INVALID_NFT_ID }, + { proto::ResponseCodeEnum::METADATA_TOO_LONG, Status::METADATA_TOO_LONG }, + { proto::ResponseCodeEnum::BATCH_SIZE_LIMIT_EXCEEDED, Status::BATCH_SIZE_LIMIT_EXCEEDED }, + { proto::ResponseCodeEnum::INVALID_QUERY_RANGE, Status::INVALID_QUERY_RANGE }, + { proto::ResponseCodeEnum::FRACTION_DIVIDES_BY_ZERO, Status::FRACTION_DIVIDES_BY_ZERO }, + { proto::ResponseCodeEnum::CUSTOM_FEES_LIST_TOO_LONG, Status::CUSTOM_FEES_LIST_TOO_LONG }, + { proto::ResponseCodeEnum::INVALID_CUSTOM_FEE_COLLECTOR, Status::INVALID_CUSTOM_FEE_COLLECTOR }, + { proto::ResponseCodeEnum::INVALID_TOKEN_ID_IN_CUSTOM_FEES, Status::INVALID_TOKEN_ID_IN_CUSTOM_FEES }, + { proto::ResponseCodeEnum::TOKEN_NOT_ASSOCIATED_TO_FEE_COLLECTOR, Status::TOKEN_NOT_ASSOCIATED_TO_FEE_COLLECTOR }, + { proto::ResponseCodeEnum::TOKEN_MAX_SUPPLY_REACHED, Status::TOKEN_MAX_SUPPLY_REACHED }, + { proto::ResponseCodeEnum::SENDER_DOES_NOT_OWN_NFT_SERIAL_NO, Status::SENDER_DOES_NOT_OWN_NFT_SERIAL_NO }, + { proto::ResponseCodeEnum::CUSTOM_FEE_NOT_FULLY_SPECIFIED, Status::CUSTOM_FEE_NOT_FULLY_SPECIFIED }, + { proto::ResponseCodeEnum::CUSTOM_FEE_MUST_BE_POSITIVE, Status::CUSTOM_FEE_MUST_BE_POSITIVE }, + { proto::ResponseCodeEnum::TOKEN_HAS_NO_FEE_SCHEDULE_KEY, Status::TOKEN_HAS_NO_FEE_SCHEDULE_KEY }, + { proto::ResponseCodeEnum::CUSTOM_FEE_OUTSIDE_NUMERIC_RANGE, Status::CUSTOM_FEE_OUTSIDE_NUMERIC_RANGE }, + { proto::ResponseCodeEnum::ROYALTY_FRACTION_CANNOT_EXCEED_ONE, Status::ROYALTY_FRACTION_CANNOT_EXCEED_ONE }, { proto::ResponseCodeEnum::FRACTIONAL_FEE_MAX_AMOUNT_LESS_THAN_MIN_AMOUNT, - Status::FRACTIONAL_FEE_MAX_AMOUNT_LESS_THAN_MIN_AMOUNT }, - { proto::ResponseCodeEnum::CUSTOM_SCHEDULE_ALREADY_HAS_NO_FEES, Status::CUSTOM_SCHEDULE_ALREADY_HAS_NO_FEES }, + Status::FRACTIONAL_FEE_MAX_AMOUNT_LESS_THAN_MIN_AMOUNT }, + { proto::ResponseCodeEnum::CUSTOM_SCHEDULE_ALREADY_HAS_NO_FEES, Status::CUSTOM_SCHEDULE_ALREADY_HAS_NO_FEES }, { proto::ResponseCodeEnum::CUSTOM_FEE_DENOMINATION_MUST_BE_FUNGIBLE_COMMON, - Status::CUSTOM_FEE_DENOMINATION_MUST_BE_FUNGIBLE_COMMON }, + Status::CUSTOM_FEE_DENOMINATION_MUST_BE_FUNGIBLE_COMMON }, { proto::ResponseCodeEnum::CUSTOM_FRACTIONAL_FEE_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON, - Status::CUSTOM_FRACTIONAL_FEE_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON }, - { proto::ResponseCodeEnum::INVALID_CUSTOM_FEE_SCHEDULE_KEY, Status::INVALID_CUSTOM_FEE_SCHEDULE_KEY }, - { proto::ResponseCodeEnum::INVALID_TOKEN_MINT_METADATA, Status::INVALID_TOKEN_MINT_METADATA }, - { proto::ResponseCodeEnum::INVALID_TOKEN_BURN_METADATA, Status::INVALID_TOKEN_BURN_METADATA }, - { proto::ResponseCodeEnum::CURRENT_TREASURY_STILL_OWNS_NFTS, Status::CURRENT_TREASURY_STILL_OWNS_NFTS }, - { proto::ResponseCodeEnum::ACCOUNT_STILL_OWNS_NFTS, Status::ACCOUNT_STILL_OWNS_NFTS }, - { proto::ResponseCodeEnum::TREASURY_MUST_OWN_BURNED_NFT, Status::TREASURY_MUST_OWN_BURNED_NFT }, - { proto::ResponseCodeEnum::ACCOUNT_DOES_NOT_OWN_WIPED_NFT, Status::ACCOUNT_DOES_NOT_OWN_WIPED_NFT }, + Status::CUSTOM_FRACTIONAL_FEE_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON }, + { proto::ResponseCodeEnum::INVALID_CUSTOM_FEE_SCHEDULE_KEY, Status::INVALID_CUSTOM_FEE_SCHEDULE_KEY }, + { proto::ResponseCodeEnum::INVALID_TOKEN_MINT_METADATA, Status::INVALID_TOKEN_MINT_METADATA }, + { proto::ResponseCodeEnum::INVALID_TOKEN_BURN_METADATA, Status::INVALID_TOKEN_BURN_METADATA }, + { proto::ResponseCodeEnum::CURRENT_TREASURY_STILL_OWNS_NFTS, Status::CURRENT_TREASURY_STILL_OWNS_NFTS }, + { proto::ResponseCodeEnum::ACCOUNT_STILL_OWNS_NFTS, Status::ACCOUNT_STILL_OWNS_NFTS }, + { proto::ResponseCodeEnum::TREASURY_MUST_OWN_BURNED_NFT, Status::TREASURY_MUST_OWN_BURNED_NFT }, + { proto::ResponseCodeEnum::ACCOUNT_DOES_NOT_OWN_WIPED_NFT, Status::ACCOUNT_DOES_NOT_OWN_WIPED_NFT }, { proto::ResponseCodeEnum::ACCOUNT_AMOUNT_TRANSFERS_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON, - Status::ACCOUNT_AMOUNT_TRANSFERS_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON }, + Status::ACCOUNT_AMOUNT_TRANSFERS_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON }, { proto::ResponseCodeEnum::MAX_NFTS_IN_PRICE_REGIME_HAVE_BEEN_MINTED, - Status::MAX_NFTS_IN_PRICE_REGIME_HAVE_BEEN_MINTED }, - { proto::ResponseCodeEnum::PAYER_ACCOUNT_DELETED, Status::PAYER_ACCOUNT_DELETED }, + Status::MAX_NFTS_IN_PRICE_REGIME_HAVE_BEEN_MINTED }, + { proto::ResponseCodeEnum::PAYER_ACCOUNT_DELETED, Status::PAYER_ACCOUNT_DELETED }, { proto::ResponseCodeEnum::CUSTOM_FEE_CHARGING_EXCEEDED_MAX_RECURSION_DEPTH, - Status::CUSTOM_FEE_CHARGING_EXCEEDED_MAX_RECURSION_DEPTH }, + Status::CUSTOM_FEE_CHARGING_EXCEEDED_MAX_RECURSION_DEPTH }, { proto::ResponseCodeEnum::CUSTOM_FEE_CHARGING_EXCEEDED_MAX_ACCOUNT_AMOUNTS, - Status::CUSTOM_FEE_CHARGING_EXCEEDED_MAX_ACCOUNT_AMOUNTS }, + Status::CUSTOM_FEE_CHARGING_EXCEEDED_MAX_ACCOUNT_AMOUNTS }, { proto::ResponseCodeEnum::INSUFFICIENT_SENDER_ACCOUNT_BALANCE_FOR_CUSTOM_FEE, - Status::INSUFFICIENT_SENDER_ACCOUNT_BALANCE_FOR_CUSTOM_FEE }, - { proto::ResponseCodeEnum::SERIAL_NUMBER_LIMIT_REACHED, Status::SERIAL_NUMBER_LIMIT_REACHED }, + Status::INSUFFICIENT_SENDER_ACCOUNT_BALANCE_FOR_CUSTOM_FEE }, + { proto::ResponseCodeEnum::SERIAL_NUMBER_LIMIT_REACHED, Status::SERIAL_NUMBER_LIMIT_REACHED }, { proto::ResponseCodeEnum::CUSTOM_ROYALTY_FEE_ONLY_ALLOWED_FOR_NON_FUNGIBLE_UNIQUE, - Status::CUSTOM_ROYALTY_FEE_ONLY_ALLOWED_FOR_NON_FUNGIBLE_UNIQUE }, - { proto::ResponseCodeEnum::NO_REMAINING_AUTOMATIC_ASSOCIATIONS, Status::NO_REMAINING_AUTOMATIC_ASSOCIATIONS }, + Status::CUSTOM_ROYALTY_FEE_ONLY_ALLOWED_FOR_NON_FUNGIBLE_UNIQUE }, + { proto::ResponseCodeEnum::NO_REMAINING_AUTOMATIC_ASSOCIATIONS, Status::NO_REMAINING_AUTOMATIC_ASSOCIATIONS }, { proto::ResponseCodeEnum::EXISTING_AUTOMATIC_ASSOCIATIONS_EXCEED_GIVEN_LIMIT, - Status::EXISTING_AUTOMATIC_ASSOCIATIONS_EXCEED_GIVEN_LIMIT }, + Status::EXISTING_AUTOMATIC_ASSOCIATIONS_EXCEED_GIVEN_LIMIT }, { proto::ResponseCodeEnum::REQUESTED_NUM_AUTOMATIC_ASSOCIATIONS_EXCEEDS_ASSOCIATION_LIMIT, - Status::REQUESTED_NUM_AUTOMATIC_ASSOCIATIONS_EXCEEDS_ASSOCIATION_LIMIT }, - { proto::ResponseCodeEnum::TOKEN_IS_PAUSED, Status::TOKEN_IS_PAUSED }, - { proto::ResponseCodeEnum::TOKEN_HAS_NO_PAUSE_KEY, Status::TOKEN_HAS_NO_PAUSE_KEY }, - { proto::ResponseCodeEnum::INVALID_PAUSE_KEY, Status::INVALID_PAUSE_KEY }, - { proto::ResponseCodeEnum::FREEZE_UPDATE_FILE_DOES_NOT_EXIST, Status::FREEZE_UPDATE_FILE_DOES_NOT_EXIST }, - { proto::ResponseCodeEnum::FREEZE_UPDATE_FILE_HASH_DOES_NOT_MATCH, Status::FREEZE_UPDATE_FILE_HASH_DOES_NOT_MATCH }, - { proto::ResponseCodeEnum::NO_UPGRADE_HAS_BEEN_PREPARED, Status::NO_UPGRADE_HAS_BEEN_PREPARED }, - { proto::ResponseCodeEnum::NO_FREEZE_IS_SCHEDULED, Status::NO_FREEZE_IS_SCHEDULED }, + Status::REQUESTED_NUM_AUTOMATIC_ASSOCIATIONS_EXCEEDS_ASSOCIATION_LIMIT }, + { proto::ResponseCodeEnum::TOKEN_IS_PAUSED, Status::TOKEN_IS_PAUSED }, + { proto::ResponseCodeEnum::TOKEN_HAS_NO_PAUSE_KEY, Status::TOKEN_HAS_NO_PAUSE_KEY }, + { proto::ResponseCodeEnum::INVALID_PAUSE_KEY, Status::INVALID_PAUSE_KEY }, + { proto::ResponseCodeEnum::FREEZE_UPDATE_FILE_DOES_NOT_EXIST, Status::FREEZE_UPDATE_FILE_DOES_NOT_EXIST }, + { proto::ResponseCodeEnum::FREEZE_UPDATE_FILE_HASH_DOES_NOT_MATCH, Status::FREEZE_UPDATE_FILE_HASH_DOES_NOT_MATCH }, + { proto::ResponseCodeEnum::NO_UPGRADE_HAS_BEEN_PREPARED, Status::NO_UPGRADE_HAS_BEEN_PREPARED }, + { proto::ResponseCodeEnum::NO_FREEZE_IS_SCHEDULED, Status::NO_FREEZE_IS_SCHEDULED }, { proto::ResponseCodeEnum::UPDATE_FILE_HASH_CHANGED_SINCE_PREPARE_UPGRADE, - Status::UPDATE_FILE_HASH_CHANGED_SINCE_PREPARE_UPGRADE }, - { proto::ResponseCodeEnum::FREEZE_START_TIME_MUST_BE_FUTURE, Status::FREEZE_START_TIME_MUST_BE_FUTURE }, - { proto::ResponseCodeEnum::PREPARED_UPDATE_FILE_IS_IMMUTABLE, Status::PREPARED_UPDATE_FILE_IS_IMMUTABLE }, - { proto::ResponseCodeEnum::FREEZE_ALREADY_SCHEDULED, Status::FREEZE_ALREADY_SCHEDULED }, - { proto::ResponseCodeEnum::FREEZE_UPGRADE_IN_PROGRESS, Status::FREEZE_UPGRADE_IN_PROGRESS }, - { proto::ResponseCodeEnum::UPDATE_FILE_ID_DOES_NOT_MATCH_PREPARED, Status::UPDATE_FILE_ID_DOES_NOT_MATCH_PREPARED }, + Status::UPDATE_FILE_HASH_CHANGED_SINCE_PREPARE_UPGRADE }, + { proto::ResponseCodeEnum::FREEZE_START_TIME_MUST_BE_FUTURE, Status::FREEZE_START_TIME_MUST_BE_FUTURE }, + { proto::ResponseCodeEnum::PREPARED_UPDATE_FILE_IS_IMMUTABLE, Status::PREPARED_UPDATE_FILE_IS_IMMUTABLE }, + { proto::ResponseCodeEnum::FREEZE_ALREADY_SCHEDULED, Status::FREEZE_ALREADY_SCHEDULED }, + { proto::ResponseCodeEnum::FREEZE_UPGRADE_IN_PROGRESS, Status::FREEZE_UPGRADE_IN_PROGRESS }, + { proto::ResponseCodeEnum::UPDATE_FILE_ID_DOES_NOT_MATCH_PREPARED, Status::UPDATE_FILE_ID_DOES_NOT_MATCH_PREPARED }, { proto::ResponseCodeEnum::UPDATE_FILE_HASH_DOES_NOT_MATCH_PREPARED, - Status::UPDATE_FILE_HASH_DOES_NOT_MATCH_PREPARED }, - { proto::ResponseCodeEnum::CONSENSUS_GAS_EXHAUSTED, Status::CONSENSUS_GAS_EXHAUSTED }, - { proto::ResponseCodeEnum::REVERTED_SUCCESS, Status::REVERTED_SUCCESS }, + Status::UPDATE_FILE_HASH_DOES_NOT_MATCH_PREPARED }, + { proto::ResponseCodeEnum::CONSENSUS_GAS_EXHAUSTED, Status::CONSENSUS_GAS_EXHAUSTED }, + { proto::ResponseCodeEnum::REVERTED_SUCCESS, Status::REVERTED_SUCCESS }, { proto::ResponseCodeEnum::MAX_STORAGE_IN_PRICE_REGIME_HAS_BEEN_USED, - Status::MAX_STORAGE_IN_PRICE_REGIME_HAS_BEEN_USED }, - { proto::ResponseCodeEnum::INVALID_ALIAS_KEY, Status::INVALID_ALIAS_KEY }, - { proto::ResponseCodeEnum::UNEXPECTED_TOKEN_DECIMALS, Status::UNEXPECTED_TOKEN_DECIMALS }, - { proto::ResponseCodeEnum::INVALID_TRANSFER_ACCOUNT_ID, Status::INVALID_TRANSFER_ACCOUNT_ID }, - { proto::ResponseCodeEnum::INVALID_FEE_COLLECTOR_ACCOUNT_ID, Status::INVALID_FEE_COLLECTOR_ACCOUNT_ID }, - { proto::ResponseCodeEnum::ALIAS_IS_IMMUTABLE, Status::ALIAS_IS_IMMUTABLE }, - { proto::ResponseCodeEnum::SPENDER_ACCOUNT_SAME_AS_OWNER, Status::SPENDER_ACCOUNT_SAME_AS_OWNER }, - { proto::ResponseCodeEnum::AMOUNT_EXCEEDS_TOKEN_MAX_SUPPLY, Status::AMOUNT_EXCEEDS_TOKEN_MAX_SUPPLY }, - { proto::ResponseCodeEnum::NEGATIVE_ALLOWANCE_AMOUNT, Status::NEGATIVE_ALLOWANCE_AMOUNT }, - { proto::ResponseCodeEnum::SPENDER_DOES_NOT_HAVE_ALLOWANCE, Status::SPENDER_DOES_NOT_HAVE_ALLOWANCE }, - { proto::ResponseCodeEnum::AMOUNT_EXCEEDS_ALLOWANCE, Status::AMOUNT_EXCEEDS_ALLOWANCE }, - { proto::ResponseCodeEnum::MAX_ALLOWANCES_EXCEEDED, Status::MAX_ALLOWANCES_EXCEEDED }, - { proto::ResponseCodeEnum::EMPTY_ALLOWANCES, Status::EMPTY_ALLOWANCES }, - { proto::ResponseCodeEnum::FUNGIBLE_TOKEN_IN_NFT_ALLOWANCES, Status::FUNGIBLE_TOKEN_IN_NFT_ALLOWANCES }, - { proto::ResponseCodeEnum::NFT_IN_FUNGIBLE_TOKEN_ALLOWANCES, Status::NFT_IN_FUNGIBLE_TOKEN_ALLOWANCES }, - { proto::ResponseCodeEnum::INVALID_ALLOWANCE_OWNER_ID, Status::INVALID_ALLOWANCE_OWNER_ID }, - { proto::ResponseCodeEnum::INVALID_ALLOWANCE_SPENDER_ID, Status::INVALID_ALLOWANCE_SPENDER_ID }, - { proto::ResponseCodeEnum::INVALID_DELEGATING_SPENDER, Status::INVALID_DELEGATING_SPENDER }, + Status::MAX_STORAGE_IN_PRICE_REGIME_HAS_BEEN_USED }, + { proto::ResponseCodeEnum::INVALID_ALIAS_KEY, Status::INVALID_ALIAS_KEY }, + { proto::ResponseCodeEnum::UNEXPECTED_TOKEN_DECIMALS, Status::UNEXPECTED_TOKEN_DECIMALS }, + { proto::ResponseCodeEnum::INVALID_TRANSFER_ACCOUNT_ID, Status::INVALID_TRANSFER_ACCOUNT_ID }, + { proto::ResponseCodeEnum::INVALID_FEE_COLLECTOR_ACCOUNT_ID, Status::INVALID_FEE_COLLECTOR_ACCOUNT_ID }, + { proto::ResponseCodeEnum::ALIAS_IS_IMMUTABLE, Status::ALIAS_IS_IMMUTABLE }, + { proto::ResponseCodeEnum::SPENDER_ACCOUNT_SAME_AS_OWNER, Status::SPENDER_ACCOUNT_SAME_AS_OWNER }, + { proto::ResponseCodeEnum::AMOUNT_EXCEEDS_TOKEN_MAX_SUPPLY, Status::AMOUNT_EXCEEDS_TOKEN_MAX_SUPPLY }, + { proto::ResponseCodeEnum::NEGATIVE_ALLOWANCE_AMOUNT, Status::NEGATIVE_ALLOWANCE_AMOUNT }, + { proto::ResponseCodeEnum::SPENDER_DOES_NOT_HAVE_ALLOWANCE, Status::SPENDER_DOES_NOT_HAVE_ALLOWANCE }, + { proto::ResponseCodeEnum::AMOUNT_EXCEEDS_ALLOWANCE, Status::AMOUNT_EXCEEDS_ALLOWANCE }, + { proto::ResponseCodeEnum::MAX_ALLOWANCES_EXCEEDED, Status::MAX_ALLOWANCES_EXCEEDED }, + { proto::ResponseCodeEnum::EMPTY_ALLOWANCES, Status::EMPTY_ALLOWANCES }, + { proto::ResponseCodeEnum::FUNGIBLE_TOKEN_IN_NFT_ALLOWANCES, Status::FUNGIBLE_TOKEN_IN_NFT_ALLOWANCES }, + { proto::ResponseCodeEnum::NFT_IN_FUNGIBLE_TOKEN_ALLOWANCES, Status::NFT_IN_FUNGIBLE_TOKEN_ALLOWANCES }, + { proto::ResponseCodeEnum::INVALID_ALLOWANCE_OWNER_ID, Status::INVALID_ALLOWANCE_OWNER_ID }, + { proto::ResponseCodeEnum::INVALID_ALLOWANCE_SPENDER_ID, Status::INVALID_ALLOWANCE_SPENDER_ID }, + { proto::ResponseCodeEnum::INVALID_DELEGATING_SPENDER, Status::INVALID_DELEGATING_SPENDER }, { proto::ResponseCodeEnum::DELEGATING_SPENDER_CANNOT_GRANT_APPROVE_FOR_ALL, - Status::DELEGATING_SPENDER_CANNOT_GRANT_APPROVE_FOR_ALL }, + Status::DELEGATING_SPENDER_CANNOT_GRANT_APPROVE_FOR_ALL }, { proto::ResponseCodeEnum::DELEGATING_SPENDER_DOES_NOT_HAVE_APPROVE_FOR_ALL, - Status::DELEGATING_SPENDER_DOES_NOT_HAVE_APPROVE_FOR_ALL }, + Status::DELEGATING_SPENDER_DOES_NOT_HAVE_APPROVE_FOR_ALL }, { proto::ResponseCodeEnum::SCHEDULE_EXPIRATION_TIME_TOO_FAR_IN_FUTURE, - Status::SCHEDULE_EXPIRATION_TIME_TOO_FAR_IN_FUTURE }, + Status::SCHEDULE_EXPIRATION_TIME_TOO_FAR_IN_FUTURE }, { proto::ResponseCodeEnum::SCHEDULE_EXPIRATION_TIME_MUST_BE_HIGHER_THAN_CONSENSUS_TIME, - Status::SCHEDULE_EXPIRATION_TIME_MUST_BE_HIGHER_THAN_CONSENSUS_TIME }, - { proto::ResponseCodeEnum::SCHEDULE_FUTURE_THROTTLE_EXCEEDED, Status::SCHEDULE_FUTURE_THROTTLE_EXCEEDED }, - { proto::ResponseCodeEnum::SCHEDULE_FUTURE_GAS_LIMIT_EXCEEDED, Status::SCHEDULE_FUTURE_GAS_LIMIT_EXCEEDED }, - { proto::ResponseCodeEnum::INVALID_ETHEREUM_TRANSACTION, Status::INVALID_ETHEREUM_TRANSACTION }, - { proto::ResponseCodeEnum::WRONG_CHAIN_ID, Status::WRONG_CHAIN_ID }, - { proto::ResponseCodeEnum::WRONG_NONCE, Status::WRONG_NONCE }, - { proto::ResponseCodeEnum::ACCESS_LIST_UNSUPPORTED, Status::ACCESS_LIST_UNSUPPORTED }, - { proto::ResponseCodeEnum::SCHEDULE_PENDING_EXPIRATION, Status::SCHEDULE_PENDING_EXPIRATION }, - { proto::ResponseCodeEnum::CONTRACT_IS_TOKEN_TREASURY, Status::CONTRACT_IS_TOKEN_TREASURY }, - { proto::ResponseCodeEnum::CONTRACT_HAS_NON_ZERO_TOKEN_BALANCES, Status::CONTRACT_HAS_NON_ZERO_TOKEN_BALANCES }, - { proto::ResponseCodeEnum::CONTRACT_EXPIRED_AND_PENDING_REMOVAL, Status::CONTRACT_EXPIRED_AND_PENDING_REMOVAL }, - { proto::ResponseCodeEnum::CONTRACT_HAS_NO_AUTO_RENEW_ACCOUNT, Status::CONTRACT_HAS_NO_AUTO_RENEW_ACCOUNT }, + Status::SCHEDULE_EXPIRATION_TIME_MUST_BE_HIGHER_THAN_CONSENSUS_TIME }, + { proto::ResponseCodeEnum::SCHEDULE_FUTURE_THROTTLE_EXCEEDED, Status::SCHEDULE_FUTURE_THROTTLE_EXCEEDED }, + { proto::ResponseCodeEnum::SCHEDULE_FUTURE_GAS_LIMIT_EXCEEDED, Status::SCHEDULE_FUTURE_GAS_LIMIT_EXCEEDED }, + { proto::ResponseCodeEnum::INVALID_ETHEREUM_TRANSACTION, Status::INVALID_ETHEREUM_TRANSACTION }, + { proto::ResponseCodeEnum::WRONG_CHAIN_ID, Status::WRONG_CHAIN_ID }, + { proto::ResponseCodeEnum::WRONG_NONCE, Status::WRONG_NONCE }, + { proto::ResponseCodeEnum::ACCESS_LIST_UNSUPPORTED, Status::ACCESS_LIST_UNSUPPORTED }, + { proto::ResponseCodeEnum::SCHEDULE_PENDING_EXPIRATION, Status::SCHEDULE_PENDING_EXPIRATION }, + { proto::ResponseCodeEnum::CONTRACT_IS_TOKEN_TREASURY, Status::CONTRACT_IS_TOKEN_TREASURY }, + { proto::ResponseCodeEnum::CONTRACT_HAS_NON_ZERO_TOKEN_BALANCES, Status::CONTRACT_HAS_NON_ZERO_TOKEN_BALANCES }, + { proto::ResponseCodeEnum::CONTRACT_EXPIRED_AND_PENDING_REMOVAL, Status::CONTRACT_EXPIRED_AND_PENDING_REMOVAL }, + { proto::ResponseCodeEnum::CONTRACT_HAS_NO_AUTO_RENEW_ACCOUNT, Status::CONTRACT_HAS_NO_AUTO_RENEW_ACCOUNT }, { proto::ResponseCodeEnum::PERMANENT_REMOVAL_REQUIRES_SYSTEM_INITIATION, - Status::PERMANENT_REMOVAL_REQUIRES_SYSTEM_INITIATION }, - { proto::ResponseCodeEnum::PROXY_ACCOUNT_ID_FIELD_IS_DEPRECATED, Status::PROXY_ACCOUNT_ID_FIELD_IS_DEPRECATED }, - { proto::ResponseCodeEnum::SELF_STAKING_IS_NOT_ALLOWED, Status::SELF_STAKING_IS_NOT_ALLOWED }, - { proto::ResponseCodeEnum::INVALID_STAKING_ID, Status::INVALID_STAKING_ID }, - { proto::ResponseCodeEnum::STAKING_NOT_ENABLED, Status::STAKING_NOT_ENABLED }, - { proto::ResponseCodeEnum::INVALID_PRNG_RANGE, Status::INVALID_PRNG_RANGE }, + Status::PERMANENT_REMOVAL_REQUIRES_SYSTEM_INITIATION }, + { proto::ResponseCodeEnum::PROXY_ACCOUNT_ID_FIELD_IS_DEPRECATED, Status::PROXY_ACCOUNT_ID_FIELD_IS_DEPRECATED }, + { proto::ResponseCodeEnum::SELF_STAKING_IS_NOT_ALLOWED, Status::SELF_STAKING_IS_NOT_ALLOWED }, + { proto::ResponseCodeEnum::INVALID_STAKING_ID, Status::INVALID_STAKING_ID }, + { proto::ResponseCodeEnum::STAKING_NOT_ENABLED, Status::STAKING_NOT_ENABLED }, + { proto::ResponseCodeEnum::INVALID_PRNG_RANGE, Status::INVALID_PRNG_RANGE }, { proto::ResponseCodeEnum::MAX_ENTITIES_IN_PRICE_REGIME_HAVE_BEEN_CREATED, - Status::MAX_ENTITIES_IN_PRICE_REGIME_HAVE_BEEN_CREATED }, + Status::MAX_ENTITIES_IN_PRICE_REGIME_HAVE_BEEN_CREATED }, { proto::ResponseCodeEnum::INVALID_FULL_PREFIX_SIGNATURE_FOR_PRECOMPILE, - Status::INVALID_FULL_PREFIX_SIGNATURE_FOR_PRECOMPILE }, - { proto::ResponseCodeEnum::INSUFFICIENT_BALANCES_FOR_STORAGE_RENT, Status::INSUFFICIENT_BALANCES_FOR_STORAGE_RENT }, - { proto::ResponseCodeEnum::MAX_CHILD_RECORDS_EXCEEDED, Status::MAX_CHILD_RECORDS_EXCEEDED }, - { proto::ResponseCodeEnum::INSUFFICIENT_BALANCES_FOR_RENEWAL_FEES, Status::INSUFFICIENT_BALANCES_FOR_RENEWAL_FEES }, - { proto::ResponseCodeEnum::TRANSACTION_HAS_UNKNOWN_FIELDS, Status::TRANSACTION_HAS_UNKNOWN_FIELDS }, - { proto::ResponseCodeEnum::ACCOUNT_IS_IMMUTABLE, Status::ACCOUNT_IS_IMMUTABLE }, - { proto::ResponseCodeEnum::ALIAS_ALREADY_ASSIGNED, Status::ALIAS_ALREADY_ASSIGNED }, - { proto::ResponseCodeEnum::INVALID_METADATA_KEY, Status::INVALID_METADATA_KEY }, - { proto::ResponseCodeEnum::MISSING_TOKEN_METADATA, Status::MISSING_TOKEN_METADATA }, - { proto::ResponseCodeEnum::MISSING_SERIAL_NUMBERS, Status::MISSING_SERIAL_NUMBERS }, - { proto::ResponseCodeEnum::INVALID_MAX_AUTO_ASSOCIATIONS, Status::INVALID_MAX_AUTO_ASSOCIATIONS }, - { proto::ResponseCodeEnum::TOKEN_REFERENCE_REPEATED, Status::TOKEN_REFERENCE_REPEATED }, - { proto::ResponseCodeEnum::INVALID_OWNER_ID, Status::INVALID_OWNER_ID }, - { proto::ResponseCodeEnum::EMPTY_TOKEN_REFERENCE_LIST, Status::EMPTY_TOKEN_REFERENCE_LIST }, - { proto::ResponseCodeEnum::EMPTY_PENDING_AIRDROP_ID_LIST, Status::EMPTY_PENDING_AIRDROP_ID_LIST }, - { proto::ResponseCodeEnum::PENDING_AIRDROP_ID_REPEATED, Status::PENDING_AIRDROP_ID_REPEATED }, - { proto::ResponseCodeEnum::PENDING_AIRDROP_ID_LIST_TOO_LONG, Status::PENDING_AIRDROP_ID_LIST_TOO_LONG }, - { proto::ResponseCodeEnum::PENDING_NFT_AIRDROP_ALREADY_EXISTS, Status::PENDING_NFT_AIRDROP_ALREADY_EXISTS }, - { proto::ResponseCodeEnum::ACCOUNT_HAS_PENDING_AIRDROPS, Status::ACCOUNT_HAS_PENDING_AIRDROPS }, - { proto::ResponseCodeEnum::THROTTLED_AT_CONSENSUS, Status::THROTTLED_AT_CONSENSUS }, - { proto::ResponseCodeEnum::INVALID_PENDING_AIRDROP_ID, Status::INVALID_PENDING_AIRDROP_ID }, - { proto::ResponseCodeEnum::TOKEN_AIRDROP_WITH_FALLBACK_ROYALTY, Status::TOKEN_AIRDROP_WITH_FALLBACK_ROYALTY }, - { proto::ResponseCodeEnum::INVALID_TOKEN_IN_PENDING_AIRDROP, Status::INVALID_TOKEN_IN_PENDING_AIRDROP }, - { proto::ResponseCodeEnum::NODE_DELETED, Status::NODE_DELETED }, - { proto::ResponseCodeEnum::INVALID_NODE_ID, Status::INVALID_NODE_ID }, - { proto::ResponseCodeEnum::INVALID_GOSSIP_ENDPOINT, Status::INVALID_GOSSIP_ENDPOINT }, - { proto::ResponseCodeEnum::INVALID_NODE_ACCOUNT_ID, Status::INVALID_NODE_ACCOUNT_ID }, - { proto::ResponseCodeEnum::INVALID_NODE_DESCRIPTION, Status::INVALID_NODE_DESCRIPTION }, - { proto::ResponseCodeEnum::INVALID_SERVICE_ENDPOINT, Status::INVALID_SERVICE_ENDPOINT }, - { proto::ResponseCodeEnum::INVALID_GOSSIP_CA_CERTIFICATE, Status::INVALID_GOSSIP_CA_CERTIFICATE }, - { proto::ResponseCodeEnum::INVALID_GRPC_CERTIFICATE, Status::INVALID_GRPC_CERTIFICATE }, - { proto::ResponseCodeEnum::MAX_NODES_CREATED, Status::MAX_NODES_CREATED }, - { proto::ResponseCodeEnum::IP_FQDN_CANNOT_BE_SET_FOR_SAME_ENDPOINT, Status::IP_FQDN_CANNOT_BE_SET_FOR_SAME_ENDPOINT}, - { proto::ResponseCodeEnum::GOSSIP_ENDPOINT_CANNOT_HAVE_FQDN, Status::GOSSIP_ENDPOINT_CANNOT_HAVE_FQDN }, - { proto::ResponseCodeEnum::FQDN_SIZE_TOO_LARGE, Status::FQDN_SIZE_TOO_LARGE }, - { proto::ResponseCodeEnum::INVALID_ENDPOINT, Status::INVALID_ENDPOINT }, - { proto::ResponseCodeEnum::GOSSIP_ENDPOINTS_EXCEEDED_LIMIT, Status::GOSSIP_ENDPOINTS_EXCEEDED_LIMIT } + Status::INVALID_FULL_PREFIX_SIGNATURE_FOR_PRECOMPILE }, + { proto::ResponseCodeEnum::INSUFFICIENT_BALANCES_FOR_STORAGE_RENT, Status::INSUFFICIENT_BALANCES_FOR_STORAGE_RENT }, + { proto::ResponseCodeEnum::MAX_CHILD_RECORDS_EXCEEDED, Status::MAX_CHILD_RECORDS_EXCEEDED }, + { proto::ResponseCodeEnum::INSUFFICIENT_BALANCES_FOR_RENEWAL_FEES, Status::INSUFFICIENT_BALANCES_FOR_RENEWAL_FEES }, + { proto::ResponseCodeEnum::TRANSACTION_HAS_UNKNOWN_FIELDS, Status::TRANSACTION_HAS_UNKNOWN_FIELDS }, + { proto::ResponseCodeEnum::ACCOUNT_IS_IMMUTABLE, Status::ACCOUNT_IS_IMMUTABLE }, + { proto::ResponseCodeEnum::ALIAS_ALREADY_ASSIGNED, Status::ALIAS_ALREADY_ASSIGNED }, + { proto::ResponseCodeEnum::INVALID_METADATA_KEY, Status::INVALID_METADATA_KEY }, + { proto::ResponseCodeEnum::MISSING_TOKEN_METADATA, Status::MISSING_TOKEN_METADATA }, + { proto::ResponseCodeEnum::MISSING_SERIAL_NUMBERS, Status::MISSING_SERIAL_NUMBERS }, + { proto::ResponseCodeEnum::INVALID_MAX_AUTO_ASSOCIATIONS, Status::INVALID_MAX_AUTO_ASSOCIATIONS }, + { proto::ResponseCodeEnum::TOKEN_REFERENCE_REPEATED, Status::TOKEN_REFERENCE_REPEATED }, + { proto::ResponseCodeEnum::INVALID_OWNER_ID, Status::INVALID_OWNER_ID }, + { proto::ResponseCodeEnum::EMPTY_TOKEN_REFERENCE_LIST, Status::EMPTY_TOKEN_REFERENCE_LIST }, + { proto::ResponseCodeEnum::EMPTY_PENDING_AIRDROP_ID_LIST, Status::EMPTY_PENDING_AIRDROP_ID_LIST }, + { proto::ResponseCodeEnum::PENDING_AIRDROP_ID_REPEATED, Status::PENDING_AIRDROP_ID_REPEATED }, + { proto::ResponseCodeEnum::PENDING_AIRDROP_ID_LIST_TOO_LONG, Status::PENDING_AIRDROP_ID_LIST_TOO_LONG }, + { proto::ResponseCodeEnum::PENDING_NFT_AIRDROP_ALREADY_EXISTS, Status::PENDING_NFT_AIRDROP_ALREADY_EXISTS }, + { proto::ResponseCodeEnum::ACCOUNT_HAS_PENDING_AIRDROPS, Status::ACCOUNT_HAS_PENDING_AIRDROPS }, + { proto::ResponseCodeEnum::THROTTLED_AT_CONSENSUS, Status::THROTTLED_AT_CONSENSUS }, + { proto::ResponseCodeEnum::INVALID_PENDING_AIRDROP_ID, Status::INVALID_PENDING_AIRDROP_ID }, + { proto::ResponseCodeEnum::TOKEN_AIRDROP_WITH_FALLBACK_ROYALTY, Status::TOKEN_AIRDROP_WITH_FALLBACK_ROYALTY }, + { proto::ResponseCodeEnum::INVALID_TOKEN_IN_PENDING_AIRDROP, Status::INVALID_TOKEN_IN_PENDING_AIRDROP }, + { proto::ResponseCodeEnum::NODE_DELETED, Status::NODE_DELETED }, + { proto::ResponseCodeEnum::INVALID_NODE_ID, Status::INVALID_NODE_ID }, + { proto::ResponseCodeEnum::INVALID_GOSSIP_ENDPOINT, Status::INVALID_GOSSIP_ENDPOINT }, + { proto::ResponseCodeEnum::INVALID_NODE_ACCOUNT_ID, Status::INVALID_NODE_ACCOUNT_ID }, + { proto::ResponseCodeEnum::INVALID_NODE_DESCRIPTION, Status::INVALID_NODE_DESCRIPTION }, + { proto::ResponseCodeEnum::INVALID_SERVICE_ENDPOINT, Status::INVALID_SERVICE_ENDPOINT }, + { proto::ResponseCodeEnum::INVALID_GOSSIP_CA_CERTIFICATE, Status::INVALID_GOSSIP_CA_CERTIFICATE }, + { proto::ResponseCodeEnum::INVALID_GRPC_CERTIFICATE, Status::INVALID_GRPC_CERTIFICATE }, + { proto::ResponseCodeEnum::MAX_NODES_CREATED, Status::MAX_NODES_CREATED }, + { proto::ResponseCodeEnum::IP_FQDN_CANNOT_BE_SET_FOR_SAME_ENDPOINT, Status::IP_FQDN_CANNOT_BE_SET_FOR_SAME_ENDPOINT }, + { proto::ResponseCodeEnum::GOSSIP_ENDPOINT_CANNOT_HAVE_FQDN, Status::GOSSIP_ENDPOINT_CANNOT_HAVE_FQDN }, + { proto::ResponseCodeEnum::FQDN_SIZE_TOO_LARGE, Status::FQDN_SIZE_TOO_LARGE }, + { proto::ResponseCodeEnum::INVALID_ENDPOINT, Status::INVALID_ENDPOINT }, + { proto::ResponseCodeEnum::GOSSIP_ENDPOINTS_EXCEEDED_LIMIT, Status::GOSSIP_ENDPOINTS_EXCEEDED_LIMIT } }; //----- const std::unordered_map gStatusToProtobufResponseCode = { - {Status::OK, proto::ResponseCodeEnum::OK }, - { Status::INVALID_TRANSACTION, proto::ResponseCodeEnum::INVALID_TRANSACTION }, - { Status::PAYER_ACCOUNT_NOT_FOUND, proto::ResponseCodeEnum::PAYER_ACCOUNT_NOT_FOUND }, - { Status::INVALID_NODE_ACCOUNT, proto::ResponseCodeEnum::INVALID_NODE_ACCOUNT }, - { Status::TRANSACTION_EXPIRED, proto::ResponseCodeEnum::TRANSACTION_EXPIRED }, - { Status::INVALID_TRANSACTION_START, proto::ResponseCodeEnum::INVALID_TRANSACTION_START }, - { Status::INVALID_TRANSACTION_DURATION, proto::ResponseCodeEnum::INVALID_TRANSACTION_DURATION }, - { Status::INVALID_SIGNATURE, proto::ResponseCodeEnum::INVALID_SIGNATURE }, - { Status::MEMO_TOO_LONG, proto::ResponseCodeEnum::MEMO_TOO_LONG }, - { Status::INSUFFICIENT_TX_FEE, proto::ResponseCodeEnum::INSUFFICIENT_TX_FEE }, - { Status::INSUFFICIENT_PAYER_BALANCE, proto::ResponseCodeEnum::INSUFFICIENT_PAYER_BALANCE }, - { Status::DUPLICATE_TRANSACTION, proto::ResponseCodeEnum::DUPLICATE_TRANSACTION }, - { Status::BUSY, proto::ResponseCodeEnum::BUSY }, - { Status::NOT_SUPPORTED, proto::ResponseCodeEnum::NOT_SUPPORTED }, - { Status::INVALID_FILE_ID, proto::ResponseCodeEnum::INVALID_FILE_ID }, - { Status::INVALID_ACCOUNT_ID, proto::ResponseCodeEnum::INVALID_ACCOUNT_ID }, - { Status::INVALID_CONTRACT_ID, proto::ResponseCodeEnum::INVALID_CONTRACT_ID }, - { Status::INVALID_TRANSACTION_ID, proto::ResponseCodeEnum::INVALID_TRANSACTION_ID }, - { Status::RECEIPT_NOT_FOUND, proto::ResponseCodeEnum::RECEIPT_NOT_FOUND }, - { Status::RECORD_NOT_FOUND, proto::ResponseCodeEnum::RECORD_NOT_FOUND }, - { Status::INVALID_SOLIDITY_ID, proto::ResponseCodeEnum::INVALID_SOLIDITY_ID }, - { Status::UNKNOWN, proto::ResponseCodeEnum::UNKNOWN }, - { Status::SUCCESS, proto::ResponseCodeEnum::SUCCESS }, - { Status::FAIL_INVALID, proto::ResponseCodeEnum::FAIL_INVALID }, - { Status::FAIL_FEE, proto::ResponseCodeEnum::FAIL_FEE }, - { Status::FAIL_BALANCE, proto::ResponseCodeEnum::FAIL_BALANCE }, - { Status::KEY_REQUIRED, proto::ResponseCodeEnum::KEY_REQUIRED }, - { Status::BAD_ENCODING, proto::ResponseCodeEnum::BAD_ENCODING }, - { Status::INSUFFICIENT_ACCOUNT_BALANCE, proto::ResponseCodeEnum::INSUFFICIENT_ACCOUNT_BALANCE }, - { Status::INVALID_SOLIDITY_ADDRESS, proto::ResponseCodeEnum::INVALID_SOLIDITY_ADDRESS }, - { Status::INSUFFICIENT_GAS, proto::ResponseCodeEnum::INSUFFICIENT_GAS }, - { Status::CONTRACT_SIZE_LIMIT_EXCEEDED, proto::ResponseCodeEnum::CONTRACT_SIZE_LIMIT_EXCEEDED }, - { Status::LOCAL_CALL_MODIFICATION_EXCEPTION, proto::ResponseCodeEnum::LOCAL_CALL_MODIFICATION_EXCEPTION }, - { Status::CONTRACT_REVERT_EXECUTED, proto::ResponseCodeEnum::CONTRACT_REVERT_EXECUTED }, - { Status::CONTRACT_EXECUTION_EXCEPTION, proto::ResponseCodeEnum::CONTRACT_EXECUTION_EXCEPTION }, - { Status::INVALID_RECEIVING_NODE_ACCOUNT, proto::ResponseCodeEnum::INVALID_RECEIVING_NODE_ACCOUNT }, - { Status::MISSING_QUERY_HEADER, proto::ResponseCodeEnum::MISSING_QUERY_HEADER }, - { Status::ACCOUNT_UPDATE_FAILED, proto::ResponseCodeEnum::ACCOUNT_UPDATE_FAILED }, - { Status::INVALID_KEY_ENCODING, proto::ResponseCodeEnum::INVALID_KEY_ENCODING }, - { Status::NULL_SOLIDITY_ADDRESS, proto::ResponseCodeEnum::NULL_SOLIDITY_ADDRESS }, - { Status::CONTRACT_UPDATE_FAILED, proto::ResponseCodeEnum::CONTRACT_UPDATE_FAILED }, - { Status::INVALID_QUERY_HEADER, proto::ResponseCodeEnum::INVALID_QUERY_HEADER }, - { Status::INVALID_FEE_SUBMITTED, proto::ResponseCodeEnum::INVALID_FEE_SUBMITTED }, - { Status::INVALID_PAYER_SIGNATURE, proto::ResponseCodeEnum::INVALID_PAYER_SIGNATURE }, - { Status::KEY_NOT_PROVIDED, proto::ResponseCodeEnum::KEY_NOT_PROVIDED }, - { Status::INVALID_EXPIRATION_TIME, proto::ResponseCodeEnum::INVALID_EXPIRATION_TIME }, - { Status::NO_WACL_KEY, proto::ResponseCodeEnum::NO_WACL_KEY }, - { Status::FILE_CONTENT_EMPTY, proto::ResponseCodeEnum::FILE_CONTENT_EMPTY }, - { Status::INVALID_ACCOUNT_AMOUNTS, proto::ResponseCodeEnum::INVALID_ACCOUNT_AMOUNTS }, - { Status::EMPTY_TRANSACTION_BODY, proto::ResponseCodeEnum::EMPTY_TRANSACTION_BODY }, - { Status::INVALID_TRANSACTION_BODY, proto::ResponseCodeEnum::INVALID_TRANSACTION_BODY }, - { Status::INVALID_SIGNATURE_TYPE_MISMATCHING_KEY, proto::ResponseCodeEnum::INVALID_SIGNATURE_TYPE_MISMATCHING_KEY }, - { Status::INVALID_SIGNATURE_COUNT_MISMATCHING_KEY, proto::ResponseCodeEnum::INVALID_SIGNATURE_COUNT_MISMATCHING_KEY}, - { Status::EMPTY_LIVE_HASH_BODY, proto::ResponseCodeEnum::EMPTY_LIVE_HASH_BODY }, - { Status::EMPTY_LIVE_HASH, proto::ResponseCodeEnum::EMPTY_LIVE_HASH }, - { Status::EMPTY_LIVE_HASH_KEYS, proto::ResponseCodeEnum::EMPTY_LIVE_HASH_KEYS }, - { Status::INVALID_LIVE_HASH_SIZE, proto::ResponseCodeEnum::INVALID_LIVE_HASH_SIZE }, - { Status::EMPTY_QUERY_BODY, proto::ResponseCodeEnum::EMPTY_QUERY_BODY }, - { Status::EMPTY_LIVE_HASH_QUERY, proto::ResponseCodeEnum::EMPTY_LIVE_HASH_QUERY }, - { Status::LIVE_HASH_NOT_FOUND, proto::ResponseCodeEnum::LIVE_HASH_NOT_FOUND }, - { Status::ACCOUNT_ID_DOES_NOT_EXIST, proto::ResponseCodeEnum::ACCOUNT_ID_DOES_NOT_EXIST }, - { Status::LIVE_HASH_ALREADY_EXISTS, proto::ResponseCodeEnum::LIVE_HASH_ALREADY_EXISTS }, - { Status::INVALID_FILE_WACL, proto::ResponseCodeEnum::INVALID_FILE_WACL }, - { Status::SERIALIZATION_FAILED, proto::ResponseCodeEnum::SERIALIZATION_FAILED }, - { Status::TRANSACTION_OVERSIZE, proto::ResponseCodeEnum::TRANSACTION_OVERSIZE }, - { Status::TRANSACTION_TOO_MANY_LAYERS, proto::ResponseCodeEnum::TRANSACTION_TOO_MANY_LAYERS }, - { Status::CONTRACT_DELETED, proto::ResponseCodeEnum::CONTRACT_DELETED }, - { Status::PLATFORM_NOT_ACTIVE, proto::ResponseCodeEnum::PLATFORM_NOT_ACTIVE }, - { Status::KEY_PREFIX_MISMATCH, proto::ResponseCodeEnum::KEY_PREFIX_MISMATCH }, - { Status::PLATFORM_TRANSACTION_NOT_CREATED, proto::ResponseCodeEnum::PLATFORM_TRANSACTION_NOT_CREATED }, - { Status::INVALID_RENEWAL_PERIOD, proto::ResponseCodeEnum::INVALID_RENEWAL_PERIOD }, - { Status::INVALID_PAYER_ACCOUNT_ID, proto::ResponseCodeEnum::INVALID_PAYER_ACCOUNT_ID }, - { Status::ACCOUNT_DELETED, proto::ResponseCodeEnum::ACCOUNT_DELETED }, - { Status::FILE_DELETED, proto::ResponseCodeEnum::FILE_DELETED }, - { Status::ACCOUNT_REPEATED_IN_ACCOUNT_AMOUNTS, proto::ResponseCodeEnum::ACCOUNT_REPEATED_IN_ACCOUNT_AMOUNTS }, - { Status::SETTING_NEGATIVE_ACCOUNT_BALANCE, proto::ResponseCodeEnum::SETTING_NEGATIVE_ACCOUNT_BALANCE }, - { Status::OBTAINER_REQUIRED, proto::ResponseCodeEnum::OBTAINER_REQUIRED }, - { Status::OBTAINER_SAME_CONTRACT_ID, proto::ResponseCodeEnum::OBTAINER_SAME_CONTRACT_ID }, - { Status::OBTAINER_DOES_NOT_EXIST, proto::ResponseCodeEnum::OBTAINER_DOES_NOT_EXIST }, - { Status::MODIFYING_IMMUTABLE_CONTRACT, proto::ResponseCodeEnum::MODIFYING_IMMUTABLE_CONTRACT }, - { Status::FILE_SYSTEM_EXCEPTION, proto::ResponseCodeEnum::FILE_SYSTEM_EXCEPTION }, - { Status::AUTORENEW_DURATION_NOT_IN_RANGE, proto::ResponseCodeEnum::AUTORENEW_DURATION_NOT_IN_RANGE }, - { Status::ERROR_DECODING_BYTESTRING, proto::ResponseCodeEnum::ERROR_DECODING_BYTESTRING }, - { Status::CONTRACT_FILE_EMPTY, proto::ResponseCodeEnum::CONTRACT_FILE_EMPTY }, - { Status::CONTRACT_BYTECODE_EMPTY, proto::ResponseCodeEnum::CONTRACT_BYTECODE_EMPTY }, - { Status::INVALID_INITIAL_BALANCE, proto::ResponseCodeEnum::INVALID_INITIAL_BALANCE }, - { Status::ACCOUNT_IS_NOT_GENESIS_ACCOUNT, proto::ResponseCodeEnum::ACCOUNT_IS_NOT_GENESIS_ACCOUNT }, - { Status::PAYER_ACCOUNT_UNAUTHORIZED, proto::ResponseCodeEnum::PAYER_ACCOUNT_UNAUTHORIZED }, - { Status::INVALID_FREEZE_TRANSACTION_BODY, proto::ResponseCodeEnum::INVALID_FREEZE_TRANSACTION_BODY }, - { Status::FREEZE_TRANSACTION_BODY_NOT_FOUND, proto::ResponseCodeEnum::FREEZE_TRANSACTION_BODY_NOT_FOUND }, - { Status::TRANSFER_LIST_SIZE_LIMIT_EXCEEDED, proto::ResponseCodeEnum::TRANSFER_LIST_SIZE_LIMIT_EXCEEDED }, - { Status::RESULT_SIZE_LIMIT_EXCEEDED, proto::ResponseCodeEnum::RESULT_SIZE_LIMIT_EXCEEDED }, - { Status::NOT_SPECIAL_ACCOUNT, proto::ResponseCodeEnum::NOT_SPECIAL_ACCOUNT }, - { Status::CONTRACT_NEGATIVE_GAS, proto::ResponseCodeEnum::CONTRACT_NEGATIVE_GAS }, - { Status::CONTRACT_NEGATIVE_VALUE, proto::ResponseCodeEnum::CONTRACT_NEGATIVE_VALUE }, - { Status::INVALID_FEE_FILE, proto::ResponseCodeEnum::INVALID_FEE_FILE }, - { Status::INVALID_EXCHANGE_RATE_FILE, proto::ResponseCodeEnum::INVALID_EXCHANGE_RATE_FILE }, - { Status::INSUFFICIENT_LOCAL_CALL_GAS, proto::ResponseCodeEnum::INSUFFICIENT_LOCAL_CALL_GAS }, - { Status::ENTITY_NOT_ALLOWED_TO_DELETE, proto::ResponseCodeEnum::ENTITY_NOT_ALLOWED_TO_DELETE }, - { Status::AUTHORIZATION_FAILED, proto::ResponseCodeEnum::AUTHORIZATION_FAILED }, - { Status::FILE_UPLOADED_PROTO_INVALID, proto::ResponseCodeEnum::FILE_UPLOADED_PROTO_INVALID }, - { Status::FILE_UPLOADED_PROTO_NOT_SAVED_TO_DISK, proto::ResponseCodeEnum::FILE_UPLOADED_PROTO_NOT_SAVED_TO_DISK }, - { Status::FEE_SCHEDULE_FILE_PART_UPLOADED, proto::ResponseCodeEnum::FEE_SCHEDULE_FILE_PART_UPLOADED }, - { Status::EXCHANGE_RATE_CHANGE_LIMIT_EXCEEDED, proto::ResponseCodeEnum::EXCHANGE_RATE_CHANGE_LIMIT_EXCEEDED }, - { Status::MAX_CONTRACT_STORAGE_EXCEEDED, proto::ResponseCodeEnum::MAX_CONTRACT_STORAGE_EXCEEDED }, - { Status::TRANSFER_ACCOUNT_SAME_AS_DELETE_ACCOUNT, proto::ResponseCodeEnum::TRANSFER_ACCOUNT_SAME_AS_DELETE_ACCOUNT}, - { Status::TOTAL_LEDGER_BALANCE_INVALID, proto::ResponseCodeEnum::TOTAL_LEDGER_BALANCE_INVALID }, - { Status::EXPIRATION_REDUCTION_NOT_ALLOWED, proto::ResponseCodeEnum::EXPIRATION_REDUCTION_NOT_ALLOWED }, - { Status::MAX_GAS_LIMIT_EXCEEDED, proto::ResponseCodeEnum::MAX_GAS_LIMIT_EXCEEDED }, - { Status::MAX_FILE_SIZE_EXCEEDED, proto::ResponseCodeEnum::MAX_FILE_SIZE_EXCEEDED }, - { Status::RECEIVER_SIG_REQUIRED, proto::ResponseCodeEnum::RECEIVER_SIG_REQUIRED }, - { Status::INVALID_TOPIC_ID, proto::ResponseCodeEnum::INVALID_TOPIC_ID }, - { Status::INVALID_ADMIN_KEY, proto::ResponseCodeEnum::INVALID_ADMIN_KEY }, - { Status::INVALID_SUBMIT_KEY, proto::ResponseCodeEnum::INVALID_SUBMIT_KEY }, - { Status::UNAUTHORIZED, proto::ResponseCodeEnum::UNAUTHORIZED }, - { Status::INVALID_TOPIC_MESSAGE, proto::ResponseCodeEnum::INVALID_TOPIC_MESSAGE }, - { Status::INVALID_AUTORENEW_ACCOUNT, proto::ResponseCodeEnum::INVALID_AUTORENEW_ACCOUNT }, - { Status::AUTORENEW_ACCOUNT_NOT_ALLOWED, proto::ResponseCodeEnum::AUTORENEW_ACCOUNT_NOT_ALLOWED }, - { Status::TOPIC_EXPIRED, proto::ResponseCodeEnum::TOPIC_EXPIRED }, - { Status::INVALID_CHUNK_NUMBER, proto::ResponseCodeEnum::INVALID_CHUNK_NUMBER }, - { Status::INVALID_CHUNK_TRANSACTION_ID, proto::ResponseCodeEnum::INVALID_CHUNK_TRANSACTION_ID }, - { Status::ACCOUNT_FROZEN_FOR_TOKEN, proto::ResponseCodeEnum::ACCOUNT_FROZEN_FOR_TOKEN }, - { Status::TOKENS_PER_ACCOUNT_LIMIT_EXCEEDED, proto::ResponseCodeEnum::TOKENS_PER_ACCOUNT_LIMIT_EXCEEDED }, - { Status::INVALID_TOKEN_ID, proto::ResponseCodeEnum::INVALID_TOKEN_ID }, - { Status::INVALID_TOKEN_DECIMALS, proto::ResponseCodeEnum::INVALID_TOKEN_DECIMALS }, - { Status::INVALID_TOKEN_INITIAL_SUPPLY, proto::ResponseCodeEnum::INVALID_TOKEN_INITIAL_SUPPLY }, - { Status::INVALID_TREASURY_ACCOUNT_FOR_TOKEN, proto::ResponseCodeEnum::INVALID_TREASURY_ACCOUNT_FOR_TOKEN }, - { Status::INVALID_TOKEN_SYMBOL, proto::ResponseCodeEnum::INVALID_TOKEN_SYMBOL }, - { Status::TOKEN_HAS_NO_FREEZE_KEY, proto::ResponseCodeEnum::TOKEN_HAS_NO_FREEZE_KEY }, - { Status::TRANSFERS_NOT_ZERO_SUM_FOR_TOKEN, proto::ResponseCodeEnum::TRANSFERS_NOT_ZERO_SUM_FOR_TOKEN }, - { Status::MISSING_TOKEN_SYMBOL, proto::ResponseCodeEnum::MISSING_TOKEN_SYMBOL }, - { Status::TOKEN_SYMBOL_TOO_LONG, proto::ResponseCodeEnum::TOKEN_SYMBOL_TOO_LONG }, - { Status::ACCOUNT_KYC_NOT_GRANTED_FOR_TOKEN, proto::ResponseCodeEnum::ACCOUNT_KYC_NOT_GRANTED_FOR_TOKEN }, - { Status::TOKEN_HAS_NO_KYC_KEY, proto::ResponseCodeEnum::TOKEN_HAS_NO_KYC_KEY }, - { Status::INSUFFICIENT_TOKEN_BALANCE, proto::ResponseCodeEnum::INSUFFICIENT_TOKEN_BALANCE }, - { Status::TOKEN_WAS_DELETED, proto::ResponseCodeEnum::TOKEN_WAS_DELETED }, - { Status::TOKEN_HAS_NO_SUPPLY_KEY, proto::ResponseCodeEnum::TOKEN_HAS_NO_SUPPLY_KEY }, - { Status::TOKEN_HAS_NO_WIPE_KEY, proto::ResponseCodeEnum::TOKEN_HAS_NO_WIPE_KEY }, - { Status::INVALID_TOKEN_MINT_AMOUNT, proto::ResponseCodeEnum::INVALID_TOKEN_MINT_AMOUNT }, - { Status::INVALID_TOKEN_BURN_AMOUNT, proto::ResponseCodeEnum::INVALID_TOKEN_BURN_AMOUNT }, - { Status::TOKEN_NOT_ASSOCIATED_TO_ACCOUNT, proto::ResponseCodeEnum::TOKEN_NOT_ASSOCIATED_TO_ACCOUNT }, - { Status::CANNOT_WIPE_TOKEN_TREASURY_ACCOUNT, proto::ResponseCodeEnum::CANNOT_WIPE_TOKEN_TREASURY_ACCOUNT }, - { Status::INVALID_KYC_KEY, proto::ResponseCodeEnum::INVALID_KYC_KEY }, - { Status::INVALID_WIPE_KEY, proto::ResponseCodeEnum::INVALID_WIPE_KEY }, - { Status::INVALID_FREEZE_KEY, proto::ResponseCodeEnum::INVALID_FREEZE_KEY }, - { Status::INVALID_SUPPLY_KEY, proto::ResponseCodeEnum::INVALID_SUPPLY_KEY }, - { Status::MISSING_TOKEN_NAME, proto::ResponseCodeEnum::MISSING_TOKEN_NAME }, - { Status::TOKEN_NAME_TOO_LONG, proto::ResponseCodeEnum::TOKEN_NAME_TOO_LONG }, - { Status::INVALID_WIPING_AMOUNT, proto::ResponseCodeEnum::INVALID_WIPING_AMOUNT }, - { Status::TOKEN_IS_IMMUTABLE, proto::ResponseCodeEnum::TOKEN_IS_IMMUTABLE }, - { Status::TOKEN_ALREADY_ASSOCIATED_TO_ACCOUNT, proto::ResponseCodeEnum::TOKEN_ALREADY_ASSOCIATED_TO_ACCOUNT }, + { Status::OK, proto::ResponseCodeEnum::OK }, + { Status::INVALID_TRANSACTION, proto::ResponseCodeEnum::INVALID_TRANSACTION }, + { Status::PAYER_ACCOUNT_NOT_FOUND, proto::ResponseCodeEnum::PAYER_ACCOUNT_NOT_FOUND }, + { Status::INVALID_NODE_ACCOUNT, proto::ResponseCodeEnum::INVALID_NODE_ACCOUNT }, + { Status::TRANSACTION_EXPIRED, proto::ResponseCodeEnum::TRANSACTION_EXPIRED }, + { Status::INVALID_TRANSACTION_START, proto::ResponseCodeEnum::INVALID_TRANSACTION_START }, + { Status::INVALID_TRANSACTION_DURATION, proto::ResponseCodeEnum::INVALID_TRANSACTION_DURATION }, + { Status::INVALID_SIGNATURE, proto::ResponseCodeEnum::INVALID_SIGNATURE }, + { Status::MEMO_TOO_LONG, proto::ResponseCodeEnum::MEMO_TOO_LONG }, + { Status::INSUFFICIENT_TX_FEE, proto::ResponseCodeEnum::INSUFFICIENT_TX_FEE }, + { Status::INSUFFICIENT_PAYER_BALANCE, proto::ResponseCodeEnum::INSUFFICIENT_PAYER_BALANCE }, + { Status::DUPLICATE_TRANSACTION, proto::ResponseCodeEnum::DUPLICATE_TRANSACTION }, + { Status::BUSY, proto::ResponseCodeEnum::BUSY }, + { Status::NOT_SUPPORTED, proto::ResponseCodeEnum::NOT_SUPPORTED }, + { Status::INVALID_FILE_ID, proto::ResponseCodeEnum::INVALID_FILE_ID }, + { Status::INVALID_ACCOUNT_ID, proto::ResponseCodeEnum::INVALID_ACCOUNT_ID }, + { Status::INVALID_CONTRACT_ID, proto::ResponseCodeEnum::INVALID_CONTRACT_ID }, + { Status::INVALID_TRANSACTION_ID, proto::ResponseCodeEnum::INVALID_TRANSACTION_ID }, + { Status::RECEIPT_NOT_FOUND, proto::ResponseCodeEnum::RECEIPT_NOT_FOUND }, + { Status::RECORD_NOT_FOUND, proto::ResponseCodeEnum::RECORD_NOT_FOUND }, + { Status::INVALID_SOLIDITY_ID, proto::ResponseCodeEnum::INVALID_SOLIDITY_ID }, + { Status::UNKNOWN, proto::ResponseCodeEnum::UNKNOWN }, + { Status::SUCCESS, proto::ResponseCodeEnum::SUCCESS }, + { Status::FAIL_INVALID, proto::ResponseCodeEnum::FAIL_INVALID }, + { Status::FAIL_FEE, proto::ResponseCodeEnum::FAIL_FEE }, + { Status::FAIL_BALANCE, proto::ResponseCodeEnum::FAIL_BALANCE }, + { Status::KEY_REQUIRED, proto::ResponseCodeEnum::KEY_REQUIRED }, + { Status::BAD_ENCODING, proto::ResponseCodeEnum::BAD_ENCODING }, + { Status::INSUFFICIENT_ACCOUNT_BALANCE, proto::ResponseCodeEnum::INSUFFICIENT_ACCOUNT_BALANCE }, + { Status::INVALID_SOLIDITY_ADDRESS, proto::ResponseCodeEnum::INVALID_SOLIDITY_ADDRESS }, + { Status::INSUFFICIENT_GAS, proto::ResponseCodeEnum::INSUFFICIENT_GAS }, + { Status::CONTRACT_SIZE_LIMIT_EXCEEDED, proto::ResponseCodeEnum::CONTRACT_SIZE_LIMIT_EXCEEDED }, + { Status::LOCAL_CALL_MODIFICATION_EXCEPTION, proto::ResponseCodeEnum::LOCAL_CALL_MODIFICATION_EXCEPTION }, + { Status::CONTRACT_REVERT_EXECUTED, proto::ResponseCodeEnum::CONTRACT_REVERT_EXECUTED }, + { Status::CONTRACT_EXECUTION_EXCEPTION, proto::ResponseCodeEnum::CONTRACT_EXECUTION_EXCEPTION }, + { Status::INVALID_RECEIVING_NODE_ACCOUNT, proto::ResponseCodeEnum::INVALID_RECEIVING_NODE_ACCOUNT }, + { Status::MISSING_QUERY_HEADER, proto::ResponseCodeEnum::MISSING_QUERY_HEADER }, + { Status::ACCOUNT_UPDATE_FAILED, proto::ResponseCodeEnum::ACCOUNT_UPDATE_FAILED }, + { Status::INVALID_KEY_ENCODING, proto::ResponseCodeEnum::INVALID_KEY_ENCODING }, + { Status::NULL_SOLIDITY_ADDRESS, proto::ResponseCodeEnum::NULL_SOLIDITY_ADDRESS }, + { Status::CONTRACT_UPDATE_FAILED, proto::ResponseCodeEnum::CONTRACT_UPDATE_FAILED }, + { Status::INVALID_QUERY_HEADER, proto::ResponseCodeEnum::INVALID_QUERY_HEADER }, + { Status::INVALID_FEE_SUBMITTED, proto::ResponseCodeEnum::INVALID_FEE_SUBMITTED }, + { Status::INVALID_PAYER_SIGNATURE, proto::ResponseCodeEnum::INVALID_PAYER_SIGNATURE }, + { Status::KEY_NOT_PROVIDED, proto::ResponseCodeEnum::KEY_NOT_PROVIDED }, + { Status::INVALID_EXPIRATION_TIME, proto::ResponseCodeEnum::INVALID_EXPIRATION_TIME }, + { Status::NO_WACL_KEY, proto::ResponseCodeEnum::NO_WACL_KEY }, + { Status::FILE_CONTENT_EMPTY, proto::ResponseCodeEnum::FILE_CONTENT_EMPTY }, + { Status::INVALID_ACCOUNT_AMOUNTS, proto::ResponseCodeEnum::INVALID_ACCOUNT_AMOUNTS }, + { Status::EMPTY_TRANSACTION_BODY, proto::ResponseCodeEnum::EMPTY_TRANSACTION_BODY }, + { Status::INVALID_TRANSACTION_BODY, proto::ResponseCodeEnum::INVALID_TRANSACTION_BODY }, + { Status::INVALID_SIGNATURE_TYPE_MISMATCHING_KEY, proto::ResponseCodeEnum::INVALID_SIGNATURE_TYPE_MISMATCHING_KEY }, + { Status::INVALID_SIGNATURE_COUNT_MISMATCHING_KEY, proto::ResponseCodeEnum::INVALID_SIGNATURE_COUNT_MISMATCHING_KEY }, + { Status::EMPTY_LIVE_HASH_BODY, proto::ResponseCodeEnum::EMPTY_LIVE_HASH_BODY }, + { Status::EMPTY_LIVE_HASH, proto::ResponseCodeEnum::EMPTY_LIVE_HASH }, + { Status::EMPTY_LIVE_HASH_KEYS, proto::ResponseCodeEnum::EMPTY_LIVE_HASH_KEYS }, + { Status::INVALID_LIVE_HASH_SIZE, proto::ResponseCodeEnum::INVALID_LIVE_HASH_SIZE }, + { Status::EMPTY_QUERY_BODY, proto::ResponseCodeEnum::EMPTY_QUERY_BODY }, + { Status::EMPTY_LIVE_HASH_QUERY, proto::ResponseCodeEnum::EMPTY_LIVE_HASH_QUERY }, + { Status::LIVE_HASH_NOT_FOUND, proto::ResponseCodeEnum::LIVE_HASH_NOT_FOUND }, + { Status::ACCOUNT_ID_DOES_NOT_EXIST, proto::ResponseCodeEnum::ACCOUNT_ID_DOES_NOT_EXIST }, + { Status::LIVE_HASH_ALREADY_EXISTS, proto::ResponseCodeEnum::LIVE_HASH_ALREADY_EXISTS }, + { Status::INVALID_FILE_WACL, proto::ResponseCodeEnum::INVALID_FILE_WACL }, + { Status::SERIALIZATION_FAILED, proto::ResponseCodeEnum::SERIALIZATION_FAILED }, + { Status::TRANSACTION_OVERSIZE, proto::ResponseCodeEnum::TRANSACTION_OVERSIZE }, + { Status::TRANSACTION_TOO_MANY_LAYERS, proto::ResponseCodeEnum::TRANSACTION_TOO_MANY_LAYERS }, + { Status::CONTRACT_DELETED, proto::ResponseCodeEnum::CONTRACT_DELETED }, + { Status::PLATFORM_NOT_ACTIVE, proto::ResponseCodeEnum::PLATFORM_NOT_ACTIVE }, + { Status::KEY_PREFIX_MISMATCH, proto::ResponseCodeEnum::KEY_PREFIX_MISMATCH }, + { Status::PLATFORM_TRANSACTION_NOT_CREATED, proto::ResponseCodeEnum::PLATFORM_TRANSACTION_NOT_CREATED }, + { Status::INVALID_RENEWAL_PERIOD, proto::ResponseCodeEnum::INVALID_RENEWAL_PERIOD }, + { Status::INVALID_PAYER_ACCOUNT_ID, proto::ResponseCodeEnum::INVALID_PAYER_ACCOUNT_ID }, + { Status::ACCOUNT_DELETED, proto::ResponseCodeEnum::ACCOUNT_DELETED }, + { Status::FILE_DELETED, proto::ResponseCodeEnum::FILE_DELETED }, + { Status::ACCOUNT_REPEATED_IN_ACCOUNT_AMOUNTS, proto::ResponseCodeEnum::ACCOUNT_REPEATED_IN_ACCOUNT_AMOUNTS }, + { Status::SETTING_NEGATIVE_ACCOUNT_BALANCE, proto::ResponseCodeEnum::SETTING_NEGATIVE_ACCOUNT_BALANCE }, + { Status::OBTAINER_REQUIRED, proto::ResponseCodeEnum::OBTAINER_REQUIRED }, + { Status::OBTAINER_SAME_CONTRACT_ID, proto::ResponseCodeEnum::OBTAINER_SAME_CONTRACT_ID }, + { Status::OBTAINER_DOES_NOT_EXIST, proto::ResponseCodeEnum::OBTAINER_DOES_NOT_EXIST }, + { Status::MODIFYING_IMMUTABLE_CONTRACT, proto::ResponseCodeEnum::MODIFYING_IMMUTABLE_CONTRACT }, + { Status::FILE_SYSTEM_EXCEPTION, proto::ResponseCodeEnum::FILE_SYSTEM_EXCEPTION }, + { Status::AUTORENEW_DURATION_NOT_IN_RANGE, proto::ResponseCodeEnum::AUTORENEW_DURATION_NOT_IN_RANGE }, + { Status::ERROR_DECODING_BYTESTRING, proto::ResponseCodeEnum::ERROR_DECODING_BYTESTRING }, + { Status::CONTRACT_FILE_EMPTY, proto::ResponseCodeEnum::CONTRACT_FILE_EMPTY }, + { Status::CONTRACT_BYTECODE_EMPTY, proto::ResponseCodeEnum::CONTRACT_BYTECODE_EMPTY }, + { Status::INVALID_INITIAL_BALANCE, proto::ResponseCodeEnum::INVALID_INITIAL_BALANCE }, + { Status::ACCOUNT_IS_NOT_GENESIS_ACCOUNT, proto::ResponseCodeEnum::ACCOUNT_IS_NOT_GENESIS_ACCOUNT }, + { Status::PAYER_ACCOUNT_UNAUTHORIZED, proto::ResponseCodeEnum::PAYER_ACCOUNT_UNAUTHORIZED }, + { Status::INVALID_FREEZE_TRANSACTION_BODY, proto::ResponseCodeEnum::INVALID_FREEZE_TRANSACTION_BODY }, + { Status::FREEZE_TRANSACTION_BODY_NOT_FOUND, proto::ResponseCodeEnum::FREEZE_TRANSACTION_BODY_NOT_FOUND }, + { Status::TRANSFER_LIST_SIZE_LIMIT_EXCEEDED, proto::ResponseCodeEnum::TRANSFER_LIST_SIZE_LIMIT_EXCEEDED }, + { Status::RESULT_SIZE_LIMIT_EXCEEDED, proto::ResponseCodeEnum::RESULT_SIZE_LIMIT_EXCEEDED }, + { Status::NOT_SPECIAL_ACCOUNT, proto::ResponseCodeEnum::NOT_SPECIAL_ACCOUNT }, + { Status::CONTRACT_NEGATIVE_GAS, proto::ResponseCodeEnum::CONTRACT_NEGATIVE_GAS }, + { Status::CONTRACT_NEGATIVE_VALUE, proto::ResponseCodeEnum::CONTRACT_NEGATIVE_VALUE }, + { Status::INVALID_FEE_FILE, proto::ResponseCodeEnum::INVALID_FEE_FILE }, + { Status::INVALID_EXCHANGE_RATE_FILE, proto::ResponseCodeEnum::INVALID_EXCHANGE_RATE_FILE }, + { Status::INSUFFICIENT_LOCAL_CALL_GAS, proto::ResponseCodeEnum::INSUFFICIENT_LOCAL_CALL_GAS }, + { Status::ENTITY_NOT_ALLOWED_TO_DELETE, proto::ResponseCodeEnum::ENTITY_NOT_ALLOWED_TO_DELETE }, + { Status::AUTHORIZATION_FAILED, proto::ResponseCodeEnum::AUTHORIZATION_FAILED }, + { Status::FILE_UPLOADED_PROTO_INVALID, proto::ResponseCodeEnum::FILE_UPLOADED_PROTO_INVALID }, + { Status::FILE_UPLOADED_PROTO_NOT_SAVED_TO_DISK, proto::ResponseCodeEnum::FILE_UPLOADED_PROTO_NOT_SAVED_TO_DISK }, + { Status::FEE_SCHEDULE_FILE_PART_UPLOADED, proto::ResponseCodeEnum::FEE_SCHEDULE_FILE_PART_UPLOADED }, + { Status::EXCHANGE_RATE_CHANGE_LIMIT_EXCEEDED, proto::ResponseCodeEnum::EXCHANGE_RATE_CHANGE_LIMIT_EXCEEDED }, + { Status::MAX_CONTRACT_STORAGE_EXCEEDED, proto::ResponseCodeEnum::MAX_CONTRACT_STORAGE_EXCEEDED }, + { Status::TRANSFER_ACCOUNT_SAME_AS_DELETE_ACCOUNT, proto::ResponseCodeEnum::TRANSFER_ACCOUNT_SAME_AS_DELETE_ACCOUNT }, + { Status::TOTAL_LEDGER_BALANCE_INVALID, proto::ResponseCodeEnum::TOTAL_LEDGER_BALANCE_INVALID }, + { Status::EXPIRATION_REDUCTION_NOT_ALLOWED, proto::ResponseCodeEnum::EXPIRATION_REDUCTION_NOT_ALLOWED }, + { Status::MAX_GAS_LIMIT_EXCEEDED, proto::ResponseCodeEnum::MAX_GAS_LIMIT_EXCEEDED }, + { Status::MAX_FILE_SIZE_EXCEEDED, proto::ResponseCodeEnum::MAX_FILE_SIZE_EXCEEDED }, + { Status::RECEIVER_SIG_REQUIRED, proto::ResponseCodeEnum::RECEIVER_SIG_REQUIRED }, + { Status::INVALID_TOPIC_ID, proto::ResponseCodeEnum::INVALID_TOPIC_ID }, + { Status::INVALID_ADMIN_KEY, proto::ResponseCodeEnum::INVALID_ADMIN_KEY }, + { Status::INVALID_SUBMIT_KEY, proto::ResponseCodeEnum::INVALID_SUBMIT_KEY }, + { Status::UNAUTHORIZED, proto::ResponseCodeEnum::UNAUTHORIZED }, + { Status::INVALID_TOPIC_MESSAGE, proto::ResponseCodeEnum::INVALID_TOPIC_MESSAGE }, + { Status::INVALID_AUTORENEW_ACCOUNT, proto::ResponseCodeEnum::INVALID_AUTORENEW_ACCOUNT }, + { Status::AUTORENEW_ACCOUNT_NOT_ALLOWED, proto::ResponseCodeEnum::AUTORENEW_ACCOUNT_NOT_ALLOWED }, + { Status::TOPIC_EXPIRED, proto::ResponseCodeEnum::TOPIC_EXPIRED }, + { Status::INVALID_CHUNK_NUMBER, proto::ResponseCodeEnum::INVALID_CHUNK_NUMBER }, + { Status::INVALID_CHUNK_TRANSACTION_ID, proto::ResponseCodeEnum::INVALID_CHUNK_TRANSACTION_ID }, + { Status::ACCOUNT_FROZEN_FOR_TOKEN, proto::ResponseCodeEnum::ACCOUNT_FROZEN_FOR_TOKEN }, + { Status::TOKENS_PER_ACCOUNT_LIMIT_EXCEEDED, proto::ResponseCodeEnum::TOKENS_PER_ACCOUNT_LIMIT_EXCEEDED }, + { Status::INVALID_TOKEN_ID, proto::ResponseCodeEnum::INVALID_TOKEN_ID }, + { Status::INVALID_TOKEN_DECIMALS, proto::ResponseCodeEnum::INVALID_TOKEN_DECIMALS }, + { Status::INVALID_TOKEN_INITIAL_SUPPLY, proto::ResponseCodeEnum::INVALID_TOKEN_INITIAL_SUPPLY }, + { Status::INVALID_TREASURY_ACCOUNT_FOR_TOKEN, proto::ResponseCodeEnum::INVALID_TREASURY_ACCOUNT_FOR_TOKEN }, + { Status::INVALID_TOKEN_SYMBOL, proto::ResponseCodeEnum::INVALID_TOKEN_SYMBOL }, + { Status::TOKEN_HAS_NO_FREEZE_KEY, proto::ResponseCodeEnum::TOKEN_HAS_NO_FREEZE_KEY }, + { Status::TRANSFERS_NOT_ZERO_SUM_FOR_TOKEN, proto::ResponseCodeEnum::TRANSFERS_NOT_ZERO_SUM_FOR_TOKEN }, + { Status::MISSING_TOKEN_SYMBOL, proto::ResponseCodeEnum::MISSING_TOKEN_SYMBOL }, + { Status::TOKEN_SYMBOL_TOO_LONG, proto::ResponseCodeEnum::TOKEN_SYMBOL_TOO_LONG }, + { Status::ACCOUNT_KYC_NOT_GRANTED_FOR_TOKEN, proto::ResponseCodeEnum::ACCOUNT_KYC_NOT_GRANTED_FOR_TOKEN }, + { Status::TOKEN_HAS_NO_KYC_KEY, proto::ResponseCodeEnum::TOKEN_HAS_NO_KYC_KEY }, + { Status::INSUFFICIENT_TOKEN_BALANCE, proto::ResponseCodeEnum::INSUFFICIENT_TOKEN_BALANCE }, + { Status::TOKEN_WAS_DELETED, proto::ResponseCodeEnum::TOKEN_WAS_DELETED }, + { Status::TOKEN_HAS_NO_SUPPLY_KEY, proto::ResponseCodeEnum::TOKEN_HAS_NO_SUPPLY_KEY }, + { Status::TOKEN_HAS_NO_WIPE_KEY, proto::ResponseCodeEnum::TOKEN_HAS_NO_WIPE_KEY }, + { Status::INVALID_TOKEN_MINT_AMOUNT, proto::ResponseCodeEnum::INVALID_TOKEN_MINT_AMOUNT }, + { Status::INVALID_TOKEN_BURN_AMOUNT, proto::ResponseCodeEnum::INVALID_TOKEN_BURN_AMOUNT }, + { Status::TOKEN_NOT_ASSOCIATED_TO_ACCOUNT, proto::ResponseCodeEnum::TOKEN_NOT_ASSOCIATED_TO_ACCOUNT }, + { Status::CANNOT_WIPE_TOKEN_TREASURY_ACCOUNT, proto::ResponseCodeEnum::CANNOT_WIPE_TOKEN_TREASURY_ACCOUNT }, + { Status::INVALID_KYC_KEY, proto::ResponseCodeEnum::INVALID_KYC_KEY }, + { Status::INVALID_WIPE_KEY, proto::ResponseCodeEnum::INVALID_WIPE_KEY }, + { Status::INVALID_FREEZE_KEY, proto::ResponseCodeEnum::INVALID_FREEZE_KEY }, + { Status::INVALID_SUPPLY_KEY, proto::ResponseCodeEnum::INVALID_SUPPLY_KEY }, + { Status::MISSING_TOKEN_NAME, proto::ResponseCodeEnum::MISSING_TOKEN_NAME }, + { Status::TOKEN_NAME_TOO_LONG, proto::ResponseCodeEnum::TOKEN_NAME_TOO_LONG }, + { Status::INVALID_WIPING_AMOUNT, proto::ResponseCodeEnum::INVALID_WIPING_AMOUNT }, + { Status::TOKEN_IS_IMMUTABLE, proto::ResponseCodeEnum::TOKEN_IS_IMMUTABLE }, + { Status::TOKEN_ALREADY_ASSOCIATED_TO_ACCOUNT, proto::ResponseCodeEnum::TOKEN_ALREADY_ASSOCIATED_TO_ACCOUNT }, { Status::TRANSACTION_REQUIRES_ZERO_TOKEN_BALANCES, - proto::ResponseCodeEnum::TRANSACTION_REQUIRES_ZERO_TOKEN_BALANCES }, - { Status::ACCOUNT_IS_TREASURY, proto::ResponseCodeEnum::ACCOUNT_IS_TREASURY }, - { Status::TOKEN_ID_REPEATED_IN_TOKEN_LIST, proto::ResponseCodeEnum::TOKEN_ID_REPEATED_IN_TOKEN_LIST }, - { Status::TOKEN_TRANSFER_LIST_SIZE_LIMIT_EXCEEDED, proto::ResponseCodeEnum::TOKEN_TRANSFER_LIST_SIZE_LIMIT_EXCEEDED}, - { Status::EMPTY_TOKEN_TRANSFER_BODY, proto::ResponseCodeEnum::EMPTY_TOKEN_TRANSFER_BODY }, - { Status::EMPTY_TOKEN_TRANSFER_ACCOUNT_AMOUNTS, proto::ResponseCodeEnum::EMPTY_TOKEN_TRANSFER_ACCOUNT_AMOUNTS }, - { Status::INVALID_SCHEDULE_ID, proto::ResponseCodeEnum::INVALID_SCHEDULE_ID }, - { Status::SCHEDULE_IS_IMMUTABLE, proto::ResponseCodeEnum::SCHEDULE_IS_IMMUTABLE }, - { Status::INVALID_SCHEDULE_PAYER_ID, proto::ResponseCodeEnum::INVALID_SCHEDULE_PAYER_ID }, - { Status::INVALID_SCHEDULE_ACCOUNT_ID, proto::ResponseCodeEnum::INVALID_SCHEDULE_ACCOUNT_ID }, - { Status::NO_NEW_VALID_SIGNATURES, proto::ResponseCodeEnum::NO_NEW_VALID_SIGNATURES }, - { Status::UNRESOLVABLE_REQUIRED_SIGNERS, proto::ResponseCodeEnum::UNRESOLVABLE_REQUIRED_SIGNERS }, - { Status::SCHEDULED_TRANSACTION_NOT_IN_WHITELIST, proto::ResponseCodeEnum::SCHEDULED_TRANSACTION_NOT_IN_WHITELIST }, - { Status::SOME_SIGNATURES_WERE_INVALID, proto::ResponseCodeEnum::SOME_SIGNATURES_WERE_INVALID }, - { Status::TRANSACTION_ID_FIELD_NOT_ALLOWED, proto::ResponseCodeEnum::TRANSACTION_ID_FIELD_NOT_ALLOWED }, - { Status::IDENTICAL_SCHEDULE_ALREADY_CREATED, proto::ResponseCodeEnum::IDENTICAL_SCHEDULE_ALREADY_CREATED }, - { Status::INVALID_ZERO_BYTE_IN_STRING, proto::ResponseCodeEnum::INVALID_ZERO_BYTE_IN_STRING }, - { Status::SCHEDULE_ALREADY_DELETED, proto::ResponseCodeEnum::SCHEDULE_ALREADY_DELETED }, - { Status::SCHEDULE_ALREADY_EXECUTED, proto::ResponseCodeEnum::SCHEDULE_ALREADY_EXECUTED }, - { Status::MESSAGE_SIZE_TOO_LARGE, proto::ResponseCodeEnum::MESSAGE_SIZE_TOO_LARGE }, - { Status::OPERATION_REPEATED_IN_BUCKET_GROUPS, proto::ResponseCodeEnum::OPERATION_REPEATED_IN_BUCKET_GROUPS }, - { Status::BUCKET_CAPACITY_OVERFLOW, proto::ResponseCodeEnum::BUCKET_CAPACITY_OVERFLOW }, + proto::ResponseCodeEnum::TRANSACTION_REQUIRES_ZERO_TOKEN_BALANCES }, + { Status::ACCOUNT_IS_TREASURY, proto::ResponseCodeEnum::ACCOUNT_IS_TREASURY }, + { Status::TOKEN_ID_REPEATED_IN_TOKEN_LIST, proto::ResponseCodeEnum::TOKEN_ID_REPEATED_IN_TOKEN_LIST }, + { Status::TOKEN_TRANSFER_LIST_SIZE_LIMIT_EXCEEDED, proto::ResponseCodeEnum::TOKEN_TRANSFER_LIST_SIZE_LIMIT_EXCEEDED }, + { Status::EMPTY_TOKEN_TRANSFER_BODY, proto::ResponseCodeEnum::EMPTY_TOKEN_TRANSFER_BODY }, + { Status::EMPTY_TOKEN_TRANSFER_ACCOUNT_AMOUNTS, proto::ResponseCodeEnum::EMPTY_TOKEN_TRANSFER_ACCOUNT_AMOUNTS }, + { Status::INVALID_SCHEDULE_ID, proto::ResponseCodeEnum::INVALID_SCHEDULE_ID }, + { Status::SCHEDULE_IS_IMMUTABLE, proto::ResponseCodeEnum::SCHEDULE_IS_IMMUTABLE }, + { Status::INVALID_SCHEDULE_PAYER_ID, proto::ResponseCodeEnum::INVALID_SCHEDULE_PAYER_ID }, + { Status::INVALID_SCHEDULE_ACCOUNT_ID, proto::ResponseCodeEnum::INVALID_SCHEDULE_ACCOUNT_ID }, + { Status::NO_NEW_VALID_SIGNATURES, proto::ResponseCodeEnum::NO_NEW_VALID_SIGNATURES }, + { Status::UNRESOLVABLE_REQUIRED_SIGNERS, proto::ResponseCodeEnum::UNRESOLVABLE_REQUIRED_SIGNERS }, + { Status::SCHEDULED_TRANSACTION_NOT_IN_WHITELIST, proto::ResponseCodeEnum::SCHEDULED_TRANSACTION_NOT_IN_WHITELIST }, + { Status::SOME_SIGNATURES_WERE_INVALID, proto::ResponseCodeEnum::SOME_SIGNATURES_WERE_INVALID }, + { Status::TRANSACTION_ID_FIELD_NOT_ALLOWED, proto::ResponseCodeEnum::TRANSACTION_ID_FIELD_NOT_ALLOWED }, + { Status::IDENTICAL_SCHEDULE_ALREADY_CREATED, proto::ResponseCodeEnum::IDENTICAL_SCHEDULE_ALREADY_CREATED }, + { Status::INVALID_ZERO_BYTE_IN_STRING, proto::ResponseCodeEnum::INVALID_ZERO_BYTE_IN_STRING }, + { Status::SCHEDULE_ALREADY_DELETED, proto::ResponseCodeEnum::SCHEDULE_ALREADY_DELETED }, + { Status::SCHEDULE_ALREADY_EXECUTED, proto::ResponseCodeEnum::SCHEDULE_ALREADY_EXECUTED }, + { Status::MESSAGE_SIZE_TOO_LARGE, proto::ResponseCodeEnum::MESSAGE_SIZE_TOO_LARGE }, + { Status::OPERATION_REPEATED_IN_BUCKET_GROUPS, proto::ResponseCodeEnum::OPERATION_REPEATED_IN_BUCKET_GROUPS }, + { Status::BUCKET_CAPACITY_OVERFLOW, proto::ResponseCodeEnum::BUCKET_CAPACITY_OVERFLOW }, { Status::NODE_CAPACITY_NOT_SUFFICIENT_FOR_OPERATION, - proto::ResponseCodeEnum::NODE_CAPACITY_NOT_SUFFICIENT_FOR_OPERATION }, - { Status::BUCKET_HAS_NO_THROTTLE_GROUPS, proto::ResponseCodeEnum::BUCKET_HAS_NO_THROTTLE_GROUPS }, - { Status::THROTTLE_GROUP_HAS_ZERO_OPS_PER_SEC, proto::ResponseCodeEnum::THROTTLE_GROUP_HAS_ZERO_OPS_PER_SEC }, - { Status::SUCCESS_BUT_MISSING_EXPECTED_OPERATION, proto::ResponseCodeEnum::SUCCESS_BUT_MISSING_EXPECTED_OPERATION }, - { Status::UNPARSEABLE_THROTTLE_DEFINITIONS, proto::ResponseCodeEnum::UNPARSEABLE_THROTTLE_DEFINITIONS }, - { Status::INVALID_THROTTLE_DEFINITIONS, proto::ResponseCodeEnum::INVALID_THROTTLE_DEFINITIONS }, - { Status::ACCOUNT_EXPIRED_AND_PENDING_REMOVAL, proto::ResponseCodeEnum::ACCOUNT_EXPIRED_AND_PENDING_REMOVAL }, - { Status::INVALID_TOKEN_MAX_SUPPLY, proto::ResponseCodeEnum::INVALID_TOKEN_MAX_SUPPLY }, - { Status::INVALID_TOKEN_NFT_SERIAL_NUMBER, proto::ResponseCodeEnum::INVALID_TOKEN_NFT_SERIAL_NUMBER }, - { Status::INVALID_NFT_ID, proto::ResponseCodeEnum::INVALID_NFT_ID }, - { Status::METADATA_TOO_LONG, proto::ResponseCodeEnum::METADATA_TOO_LONG }, - { Status::BATCH_SIZE_LIMIT_EXCEEDED, proto::ResponseCodeEnum::BATCH_SIZE_LIMIT_EXCEEDED }, - { Status::INVALID_QUERY_RANGE, proto::ResponseCodeEnum::INVALID_QUERY_RANGE }, - { Status::FRACTION_DIVIDES_BY_ZERO, proto::ResponseCodeEnum::FRACTION_DIVIDES_BY_ZERO }, - { Status::CUSTOM_FEES_LIST_TOO_LONG, proto::ResponseCodeEnum::CUSTOM_FEES_LIST_TOO_LONG }, - { Status::INVALID_CUSTOM_FEE_COLLECTOR, proto::ResponseCodeEnum::INVALID_CUSTOM_FEE_COLLECTOR }, - { Status::INVALID_TOKEN_ID_IN_CUSTOM_FEES, proto::ResponseCodeEnum::INVALID_TOKEN_ID_IN_CUSTOM_FEES }, - { Status::TOKEN_NOT_ASSOCIATED_TO_FEE_COLLECTOR, proto::ResponseCodeEnum::TOKEN_NOT_ASSOCIATED_TO_FEE_COLLECTOR }, - { Status::TOKEN_MAX_SUPPLY_REACHED, proto::ResponseCodeEnum::TOKEN_MAX_SUPPLY_REACHED }, - { Status::SENDER_DOES_NOT_OWN_NFT_SERIAL_NO, proto::ResponseCodeEnum::SENDER_DOES_NOT_OWN_NFT_SERIAL_NO }, - { Status::CUSTOM_FEE_NOT_FULLY_SPECIFIED, proto::ResponseCodeEnum::CUSTOM_FEE_NOT_FULLY_SPECIFIED }, - { Status::CUSTOM_FEE_MUST_BE_POSITIVE, proto::ResponseCodeEnum::CUSTOM_FEE_MUST_BE_POSITIVE }, - { Status::TOKEN_HAS_NO_FEE_SCHEDULE_KEY, proto::ResponseCodeEnum::TOKEN_HAS_NO_FEE_SCHEDULE_KEY }, - { Status::CUSTOM_FEE_OUTSIDE_NUMERIC_RANGE, proto::ResponseCodeEnum::CUSTOM_FEE_OUTSIDE_NUMERIC_RANGE }, - { Status::ROYALTY_FRACTION_CANNOT_EXCEED_ONE, proto::ResponseCodeEnum::ROYALTY_FRACTION_CANNOT_EXCEED_ONE }, + proto::ResponseCodeEnum::NODE_CAPACITY_NOT_SUFFICIENT_FOR_OPERATION }, + { Status::BUCKET_HAS_NO_THROTTLE_GROUPS, proto::ResponseCodeEnum::BUCKET_HAS_NO_THROTTLE_GROUPS }, + { Status::THROTTLE_GROUP_HAS_ZERO_OPS_PER_SEC, proto::ResponseCodeEnum::THROTTLE_GROUP_HAS_ZERO_OPS_PER_SEC }, + { Status::SUCCESS_BUT_MISSING_EXPECTED_OPERATION, proto::ResponseCodeEnum::SUCCESS_BUT_MISSING_EXPECTED_OPERATION }, + { Status::UNPARSEABLE_THROTTLE_DEFINITIONS, proto::ResponseCodeEnum::UNPARSEABLE_THROTTLE_DEFINITIONS }, + { Status::INVALID_THROTTLE_DEFINITIONS, proto::ResponseCodeEnum::INVALID_THROTTLE_DEFINITIONS }, + { Status::ACCOUNT_EXPIRED_AND_PENDING_REMOVAL, proto::ResponseCodeEnum::ACCOUNT_EXPIRED_AND_PENDING_REMOVAL }, + { Status::INVALID_TOKEN_MAX_SUPPLY, proto::ResponseCodeEnum::INVALID_TOKEN_MAX_SUPPLY }, + { Status::INVALID_TOKEN_NFT_SERIAL_NUMBER, proto::ResponseCodeEnum::INVALID_TOKEN_NFT_SERIAL_NUMBER }, + { Status::INVALID_NFT_ID, proto::ResponseCodeEnum::INVALID_NFT_ID }, + { Status::METADATA_TOO_LONG, proto::ResponseCodeEnum::METADATA_TOO_LONG }, + { Status::BATCH_SIZE_LIMIT_EXCEEDED, proto::ResponseCodeEnum::BATCH_SIZE_LIMIT_EXCEEDED }, + { Status::INVALID_QUERY_RANGE, proto::ResponseCodeEnum::INVALID_QUERY_RANGE }, + { Status::FRACTION_DIVIDES_BY_ZERO, proto::ResponseCodeEnum::FRACTION_DIVIDES_BY_ZERO }, + { Status::CUSTOM_FEES_LIST_TOO_LONG, proto::ResponseCodeEnum::CUSTOM_FEES_LIST_TOO_LONG }, + { Status::INVALID_CUSTOM_FEE_COLLECTOR, proto::ResponseCodeEnum::INVALID_CUSTOM_FEE_COLLECTOR }, + { Status::INVALID_TOKEN_ID_IN_CUSTOM_FEES, proto::ResponseCodeEnum::INVALID_TOKEN_ID_IN_CUSTOM_FEES }, + { Status::TOKEN_NOT_ASSOCIATED_TO_FEE_COLLECTOR, proto::ResponseCodeEnum::TOKEN_NOT_ASSOCIATED_TO_FEE_COLLECTOR }, + { Status::TOKEN_MAX_SUPPLY_REACHED, proto::ResponseCodeEnum::TOKEN_MAX_SUPPLY_REACHED }, + { Status::SENDER_DOES_NOT_OWN_NFT_SERIAL_NO, proto::ResponseCodeEnum::SENDER_DOES_NOT_OWN_NFT_SERIAL_NO }, + { Status::CUSTOM_FEE_NOT_FULLY_SPECIFIED, proto::ResponseCodeEnum::CUSTOM_FEE_NOT_FULLY_SPECIFIED }, + { Status::CUSTOM_FEE_MUST_BE_POSITIVE, proto::ResponseCodeEnum::CUSTOM_FEE_MUST_BE_POSITIVE }, + { Status::TOKEN_HAS_NO_FEE_SCHEDULE_KEY, proto::ResponseCodeEnum::TOKEN_HAS_NO_FEE_SCHEDULE_KEY }, + { Status::CUSTOM_FEE_OUTSIDE_NUMERIC_RANGE, proto::ResponseCodeEnum::CUSTOM_FEE_OUTSIDE_NUMERIC_RANGE }, + { Status::ROYALTY_FRACTION_CANNOT_EXCEED_ONE, proto::ResponseCodeEnum::ROYALTY_FRACTION_CANNOT_EXCEED_ONE }, { Status::FRACTIONAL_FEE_MAX_AMOUNT_LESS_THAN_MIN_AMOUNT, - proto::ResponseCodeEnum::FRACTIONAL_FEE_MAX_AMOUNT_LESS_THAN_MIN_AMOUNT }, - { Status::CUSTOM_SCHEDULE_ALREADY_HAS_NO_FEES, proto::ResponseCodeEnum::CUSTOM_SCHEDULE_ALREADY_HAS_NO_FEES }, + proto::ResponseCodeEnum::FRACTIONAL_FEE_MAX_AMOUNT_LESS_THAN_MIN_AMOUNT }, + { Status::CUSTOM_SCHEDULE_ALREADY_HAS_NO_FEES, proto::ResponseCodeEnum::CUSTOM_SCHEDULE_ALREADY_HAS_NO_FEES }, { Status::CUSTOM_FEE_DENOMINATION_MUST_BE_FUNGIBLE_COMMON, - proto::ResponseCodeEnum::CUSTOM_FEE_DENOMINATION_MUST_BE_FUNGIBLE_COMMON }, + proto::ResponseCodeEnum::CUSTOM_FEE_DENOMINATION_MUST_BE_FUNGIBLE_COMMON }, { Status::CUSTOM_FRACTIONAL_FEE_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON, - proto::ResponseCodeEnum::CUSTOM_FRACTIONAL_FEE_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON }, - { Status::INVALID_CUSTOM_FEE_SCHEDULE_KEY, proto::ResponseCodeEnum::INVALID_CUSTOM_FEE_SCHEDULE_KEY }, - { Status::INVALID_TOKEN_MINT_METADATA, proto::ResponseCodeEnum::INVALID_TOKEN_MINT_METADATA }, - { Status::INVALID_TOKEN_BURN_METADATA, proto::ResponseCodeEnum::INVALID_TOKEN_BURN_METADATA }, - { Status::CURRENT_TREASURY_STILL_OWNS_NFTS, proto::ResponseCodeEnum::CURRENT_TREASURY_STILL_OWNS_NFTS }, - { Status::ACCOUNT_STILL_OWNS_NFTS, proto::ResponseCodeEnum::ACCOUNT_STILL_OWNS_NFTS }, - { Status::TREASURY_MUST_OWN_BURNED_NFT, proto::ResponseCodeEnum::TREASURY_MUST_OWN_BURNED_NFT }, - { Status::ACCOUNT_DOES_NOT_OWN_WIPED_NFT, proto::ResponseCodeEnum::ACCOUNT_DOES_NOT_OWN_WIPED_NFT }, + proto::ResponseCodeEnum::CUSTOM_FRACTIONAL_FEE_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON }, + { Status::INVALID_CUSTOM_FEE_SCHEDULE_KEY, proto::ResponseCodeEnum::INVALID_CUSTOM_FEE_SCHEDULE_KEY }, + { Status::INVALID_TOKEN_MINT_METADATA, proto::ResponseCodeEnum::INVALID_TOKEN_MINT_METADATA }, + { Status::INVALID_TOKEN_BURN_METADATA, proto::ResponseCodeEnum::INVALID_TOKEN_BURN_METADATA }, + { Status::CURRENT_TREASURY_STILL_OWNS_NFTS, proto::ResponseCodeEnum::CURRENT_TREASURY_STILL_OWNS_NFTS }, + { Status::ACCOUNT_STILL_OWNS_NFTS, proto::ResponseCodeEnum::ACCOUNT_STILL_OWNS_NFTS }, + { Status::TREASURY_MUST_OWN_BURNED_NFT, proto::ResponseCodeEnum::TREASURY_MUST_OWN_BURNED_NFT }, + { Status::ACCOUNT_DOES_NOT_OWN_WIPED_NFT, proto::ResponseCodeEnum::ACCOUNT_DOES_NOT_OWN_WIPED_NFT }, { Status::ACCOUNT_AMOUNT_TRANSFERS_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON, - proto::ResponseCodeEnum::ACCOUNT_AMOUNT_TRANSFERS_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON }, + proto::ResponseCodeEnum::ACCOUNT_AMOUNT_TRANSFERS_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON }, { Status::MAX_NFTS_IN_PRICE_REGIME_HAVE_BEEN_MINTED, - proto::ResponseCodeEnum::MAX_NFTS_IN_PRICE_REGIME_HAVE_BEEN_MINTED }, - { Status::PAYER_ACCOUNT_DELETED, proto::ResponseCodeEnum::PAYER_ACCOUNT_DELETED }, + proto::ResponseCodeEnum::MAX_NFTS_IN_PRICE_REGIME_HAVE_BEEN_MINTED }, + { Status::PAYER_ACCOUNT_DELETED, proto::ResponseCodeEnum::PAYER_ACCOUNT_DELETED }, { Status::CUSTOM_FEE_CHARGING_EXCEEDED_MAX_RECURSION_DEPTH, - proto::ResponseCodeEnum::CUSTOM_FEE_CHARGING_EXCEEDED_MAX_RECURSION_DEPTH }, + proto::ResponseCodeEnum::CUSTOM_FEE_CHARGING_EXCEEDED_MAX_RECURSION_DEPTH }, { Status::CUSTOM_FEE_CHARGING_EXCEEDED_MAX_ACCOUNT_AMOUNTS, - proto::ResponseCodeEnum::CUSTOM_FEE_CHARGING_EXCEEDED_MAX_ACCOUNT_AMOUNTS }, + proto::ResponseCodeEnum::CUSTOM_FEE_CHARGING_EXCEEDED_MAX_ACCOUNT_AMOUNTS }, { Status::INSUFFICIENT_SENDER_ACCOUNT_BALANCE_FOR_CUSTOM_FEE, - proto::ResponseCodeEnum::INSUFFICIENT_SENDER_ACCOUNT_BALANCE_FOR_CUSTOM_FEE }, - { Status::SERIAL_NUMBER_LIMIT_REACHED, proto::ResponseCodeEnum::SERIAL_NUMBER_LIMIT_REACHED }, + proto::ResponseCodeEnum::INSUFFICIENT_SENDER_ACCOUNT_BALANCE_FOR_CUSTOM_FEE }, + { Status::SERIAL_NUMBER_LIMIT_REACHED, proto::ResponseCodeEnum::SERIAL_NUMBER_LIMIT_REACHED }, { Status::CUSTOM_ROYALTY_FEE_ONLY_ALLOWED_FOR_NON_FUNGIBLE_UNIQUE, - proto::ResponseCodeEnum::CUSTOM_ROYALTY_FEE_ONLY_ALLOWED_FOR_NON_FUNGIBLE_UNIQUE }, - { Status::NO_REMAINING_AUTOMATIC_ASSOCIATIONS, proto::ResponseCodeEnum::NO_REMAINING_AUTOMATIC_ASSOCIATIONS }, + proto::ResponseCodeEnum::CUSTOM_ROYALTY_FEE_ONLY_ALLOWED_FOR_NON_FUNGIBLE_UNIQUE }, + { Status::NO_REMAINING_AUTOMATIC_ASSOCIATIONS, proto::ResponseCodeEnum::NO_REMAINING_AUTOMATIC_ASSOCIATIONS }, { Status::EXISTING_AUTOMATIC_ASSOCIATIONS_EXCEED_GIVEN_LIMIT, - proto::ResponseCodeEnum::EXISTING_AUTOMATIC_ASSOCIATIONS_EXCEED_GIVEN_LIMIT }, + proto::ResponseCodeEnum::EXISTING_AUTOMATIC_ASSOCIATIONS_EXCEED_GIVEN_LIMIT }, { Status::REQUESTED_NUM_AUTOMATIC_ASSOCIATIONS_EXCEEDS_ASSOCIATION_LIMIT, - proto::ResponseCodeEnum::REQUESTED_NUM_AUTOMATIC_ASSOCIATIONS_EXCEEDS_ASSOCIATION_LIMIT }, - { Status::TOKEN_IS_PAUSED, proto::ResponseCodeEnum::TOKEN_IS_PAUSED }, - { Status::TOKEN_HAS_NO_PAUSE_KEY, proto::ResponseCodeEnum::TOKEN_HAS_NO_PAUSE_KEY }, - { Status::INVALID_PAUSE_KEY, proto::ResponseCodeEnum::INVALID_PAUSE_KEY }, - { Status::FREEZE_UPDATE_FILE_DOES_NOT_EXIST, proto::ResponseCodeEnum::FREEZE_UPDATE_FILE_DOES_NOT_EXIST }, - { Status::FREEZE_UPDATE_FILE_HASH_DOES_NOT_MATCH, proto::ResponseCodeEnum::FREEZE_UPDATE_FILE_HASH_DOES_NOT_MATCH }, - { Status::NO_UPGRADE_HAS_BEEN_PREPARED, proto::ResponseCodeEnum::NO_UPGRADE_HAS_BEEN_PREPARED }, - { Status::NO_FREEZE_IS_SCHEDULED, proto::ResponseCodeEnum::NO_FREEZE_IS_SCHEDULED }, + proto::ResponseCodeEnum::REQUESTED_NUM_AUTOMATIC_ASSOCIATIONS_EXCEEDS_ASSOCIATION_LIMIT }, + { Status::TOKEN_IS_PAUSED, proto::ResponseCodeEnum::TOKEN_IS_PAUSED }, + { Status::TOKEN_HAS_NO_PAUSE_KEY, proto::ResponseCodeEnum::TOKEN_HAS_NO_PAUSE_KEY }, + { Status::INVALID_PAUSE_KEY, proto::ResponseCodeEnum::INVALID_PAUSE_KEY }, + { Status::FREEZE_UPDATE_FILE_DOES_NOT_EXIST, proto::ResponseCodeEnum::FREEZE_UPDATE_FILE_DOES_NOT_EXIST }, + { Status::FREEZE_UPDATE_FILE_HASH_DOES_NOT_MATCH, proto::ResponseCodeEnum::FREEZE_UPDATE_FILE_HASH_DOES_NOT_MATCH }, + { Status::NO_UPGRADE_HAS_BEEN_PREPARED, proto::ResponseCodeEnum::NO_UPGRADE_HAS_BEEN_PREPARED }, + { Status::NO_FREEZE_IS_SCHEDULED, proto::ResponseCodeEnum::NO_FREEZE_IS_SCHEDULED }, { Status::UPDATE_FILE_HASH_CHANGED_SINCE_PREPARE_UPGRADE, - proto::ResponseCodeEnum::UPDATE_FILE_HASH_CHANGED_SINCE_PREPARE_UPGRADE }, - { Status::FREEZE_START_TIME_MUST_BE_FUTURE, proto::ResponseCodeEnum::FREEZE_START_TIME_MUST_BE_FUTURE }, - { Status::PREPARED_UPDATE_FILE_IS_IMMUTABLE, proto::ResponseCodeEnum::PREPARED_UPDATE_FILE_IS_IMMUTABLE }, - { Status::FREEZE_ALREADY_SCHEDULED, proto::ResponseCodeEnum::FREEZE_ALREADY_SCHEDULED }, - { Status::FREEZE_UPGRADE_IN_PROGRESS, proto::ResponseCodeEnum::FREEZE_UPGRADE_IN_PROGRESS }, - { Status::UPDATE_FILE_ID_DOES_NOT_MATCH_PREPARED, proto::ResponseCodeEnum::UPDATE_FILE_ID_DOES_NOT_MATCH_PREPARED }, + proto::ResponseCodeEnum::UPDATE_FILE_HASH_CHANGED_SINCE_PREPARE_UPGRADE }, + { Status::FREEZE_START_TIME_MUST_BE_FUTURE, proto::ResponseCodeEnum::FREEZE_START_TIME_MUST_BE_FUTURE }, + { Status::PREPARED_UPDATE_FILE_IS_IMMUTABLE, proto::ResponseCodeEnum::PREPARED_UPDATE_FILE_IS_IMMUTABLE }, + { Status::FREEZE_ALREADY_SCHEDULED, proto::ResponseCodeEnum::FREEZE_ALREADY_SCHEDULED }, + { Status::FREEZE_UPGRADE_IN_PROGRESS, proto::ResponseCodeEnum::FREEZE_UPGRADE_IN_PROGRESS }, + { Status::UPDATE_FILE_ID_DOES_NOT_MATCH_PREPARED, proto::ResponseCodeEnum::UPDATE_FILE_ID_DOES_NOT_MATCH_PREPARED }, { Status::UPDATE_FILE_HASH_DOES_NOT_MATCH_PREPARED, - proto::ResponseCodeEnum::UPDATE_FILE_HASH_DOES_NOT_MATCH_PREPARED }, - { Status::CONSENSUS_GAS_EXHAUSTED, proto::ResponseCodeEnum::CONSENSUS_GAS_EXHAUSTED }, - { Status::REVERTED_SUCCESS, proto::ResponseCodeEnum::REVERTED_SUCCESS }, + proto::ResponseCodeEnum::UPDATE_FILE_HASH_DOES_NOT_MATCH_PREPARED }, + { Status::CONSENSUS_GAS_EXHAUSTED, proto::ResponseCodeEnum::CONSENSUS_GAS_EXHAUSTED }, + { Status::REVERTED_SUCCESS, proto::ResponseCodeEnum::REVERTED_SUCCESS }, { Status::MAX_STORAGE_IN_PRICE_REGIME_HAS_BEEN_USED, - proto::ResponseCodeEnum::MAX_STORAGE_IN_PRICE_REGIME_HAS_BEEN_USED }, - { Status::INVALID_ALIAS_KEY, proto::ResponseCodeEnum::INVALID_ALIAS_KEY }, - { Status::UNEXPECTED_TOKEN_DECIMALS, proto::ResponseCodeEnum::UNEXPECTED_TOKEN_DECIMALS }, - { Status::INVALID_TRANSFER_ACCOUNT_ID, proto::ResponseCodeEnum::INVALID_TRANSFER_ACCOUNT_ID }, - { Status::INVALID_FEE_COLLECTOR_ACCOUNT_ID, proto::ResponseCodeEnum::INVALID_FEE_COLLECTOR_ACCOUNT_ID }, - { Status::ALIAS_IS_IMMUTABLE, proto::ResponseCodeEnum::ALIAS_IS_IMMUTABLE }, - { Status::SPENDER_ACCOUNT_SAME_AS_OWNER, proto::ResponseCodeEnum::SPENDER_ACCOUNT_SAME_AS_OWNER }, - { Status::AMOUNT_EXCEEDS_TOKEN_MAX_SUPPLY, proto::ResponseCodeEnum::AMOUNT_EXCEEDS_TOKEN_MAX_SUPPLY }, - { Status::NEGATIVE_ALLOWANCE_AMOUNT, proto::ResponseCodeEnum::NEGATIVE_ALLOWANCE_AMOUNT }, - { Status::SPENDER_DOES_NOT_HAVE_ALLOWANCE, proto::ResponseCodeEnum::SPENDER_DOES_NOT_HAVE_ALLOWANCE }, - { Status::AMOUNT_EXCEEDS_ALLOWANCE, proto::ResponseCodeEnum::AMOUNT_EXCEEDS_ALLOWANCE }, - { Status::MAX_ALLOWANCES_EXCEEDED, proto::ResponseCodeEnum::MAX_ALLOWANCES_EXCEEDED }, - { Status::EMPTY_ALLOWANCES, proto::ResponseCodeEnum::EMPTY_ALLOWANCES }, - { Status::FUNGIBLE_TOKEN_IN_NFT_ALLOWANCES, proto::ResponseCodeEnum::FUNGIBLE_TOKEN_IN_NFT_ALLOWANCES }, - { Status::NFT_IN_FUNGIBLE_TOKEN_ALLOWANCES, proto::ResponseCodeEnum::NFT_IN_FUNGIBLE_TOKEN_ALLOWANCES }, - { Status::INVALID_ALLOWANCE_OWNER_ID, proto::ResponseCodeEnum::INVALID_ALLOWANCE_OWNER_ID }, - { Status::INVALID_ALLOWANCE_SPENDER_ID, proto::ResponseCodeEnum::INVALID_ALLOWANCE_SPENDER_ID }, - { Status::INVALID_DELEGATING_SPENDER, proto::ResponseCodeEnum::INVALID_DELEGATING_SPENDER }, + proto::ResponseCodeEnum::MAX_STORAGE_IN_PRICE_REGIME_HAS_BEEN_USED }, + { Status::INVALID_ALIAS_KEY, proto::ResponseCodeEnum::INVALID_ALIAS_KEY }, + { Status::UNEXPECTED_TOKEN_DECIMALS, proto::ResponseCodeEnum::UNEXPECTED_TOKEN_DECIMALS }, + { Status::INVALID_TRANSFER_ACCOUNT_ID, proto::ResponseCodeEnum::INVALID_TRANSFER_ACCOUNT_ID }, + { Status::INVALID_FEE_COLLECTOR_ACCOUNT_ID, proto::ResponseCodeEnum::INVALID_FEE_COLLECTOR_ACCOUNT_ID }, + { Status::ALIAS_IS_IMMUTABLE, proto::ResponseCodeEnum::ALIAS_IS_IMMUTABLE }, + { Status::SPENDER_ACCOUNT_SAME_AS_OWNER, proto::ResponseCodeEnum::SPENDER_ACCOUNT_SAME_AS_OWNER }, + { Status::AMOUNT_EXCEEDS_TOKEN_MAX_SUPPLY, proto::ResponseCodeEnum::AMOUNT_EXCEEDS_TOKEN_MAX_SUPPLY }, + { Status::NEGATIVE_ALLOWANCE_AMOUNT, proto::ResponseCodeEnum::NEGATIVE_ALLOWANCE_AMOUNT }, + { Status::SPENDER_DOES_NOT_HAVE_ALLOWANCE, proto::ResponseCodeEnum::SPENDER_DOES_NOT_HAVE_ALLOWANCE }, + { Status::AMOUNT_EXCEEDS_ALLOWANCE, proto::ResponseCodeEnum::AMOUNT_EXCEEDS_ALLOWANCE }, + { Status::MAX_ALLOWANCES_EXCEEDED, proto::ResponseCodeEnum::MAX_ALLOWANCES_EXCEEDED }, + { Status::EMPTY_ALLOWANCES, proto::ResponseCodeEnum::EMPTY_ALLOWANCES }, + { Status::FUNGIBLE_TOKEN_IN_NFT_ALLOWANCES, proto::ResponseCodeEnum::FUNGIBLE_TOKEN_IN_NFT_ALLOWANCES }, + { Status::NFT_IN_FUNGIBLE_TOKEN_ALLOWANCES, proto::ResponseCodeEnum::NFT_IN_FUNGIBLE_TOKEN_ALLOWANCES }, + { Status::INVALID_ALLOWANCE_OWNER_ID, proto::ResponseCodeEnum::INVALID_ALLOWANCE_OWNER_ID }, + { Status::INVALID_ALLOWANCE_SPENDER_ID, proto::ResponseCodeEnum::INVALID_ALLOWANCE_SPENDER_ID }, + { Status::INVALID_DELEGATING_SPENDER, proto::ResponseCodeEnum::INVALID_DELEGATING_SPENDER }, { Status::DELEGATING_SPENDER_CANNOT_GRANT_APPROVE_FOR_ALL, - proto::ResponseCodeEnum::DELEGATING_SPENDER_CANNOT_GRANT_APPROVE_FOR_ALL }, + proto::ResponseCodeEnum::DELEGATING_SPENDER_CANNOT_GRANT_APPROVE_FOR_ALL }, { Status::DELEGATING_SPENDER_DOES_NOT_HAVE_APPROVE_FOR_ALL, - proto::ResponseCodeEnum::DELEGATING_SPENDER_DOES_NOT_HAVE_APPROVE_FOR_ALL }, + proto::ResponseCodeEnum::DELEGATING_SPENDER_DOES_NOT_HAVE_APPROVE_FOR_ALL }, { Status::SCHEDULE_EXPIRATION_TIME_TOO_FAR_IN_FUTURE, - proto::ResponseCodeEnum::SCHEDULE_EXPIRATION_TIME_TOO_FAR_IN_FUTURE }, + proto::ResponseCodeEnum::SCHEDULE_EXPIRATION_TIME_TOO_FAR_IN_FUTURE }, { Status::SCHEDULE_EXPIRATION_TIME_MUST_BE_HIGHER_THAN_CONSENSUS_TIME, - proto::ResponseCodeEnum::SCHEDULE_EXPIRATION_TIME_MUST_BE_HIGHER_THAN_CONSENSUS_TIME }, - { Status::SCHEDULE_FUTURE_THROTTLE_EXCEEDED, proto::ResponseCodeEnum::SCHEDULE_FUTURE_THROTTLE_EXCEEDED }, - { Status::SCHEDULE_FUTURE_GAS_LIMIT_EXCEEDED, proto::ResponseCodeEnum::SCHEDULE_FUTURE_GAS_LIMIT_EXCEEDED }, - { Status::INVALID_ETHEREUM_TRANSACTION, proto::ResponseCodeEnum::INVALID_ETHEREUM_TRANSACTION }, - { Status::WRONG_CHAIN_ID, proto::ResponseCodeEnum::WRONG_CHAIN_ID }, - { Status::WRONG_NONCE, proto::ResponseCodeEnum::WRONG_NONCE }, - { Status::ACCESS_LIST_UNSUPPORTED, proto::ResponseCodeEnum::ACCESS_LIST_UNSUPPORTED }, - { Status::SCHEDULE_PENDING_EXPIRATION, proto::ResponseCodeEnum::SCHEDULE_PENDING_EXPIRATION }, - { Status::CONTRACT_IS_TOKEN_TREASURY, proto::ResponseCodeEnum::CONTRACT_IS_TOKEN_TREASURY }, - { Status::CONTRACT_HAS_NON_ZERO_TOKEN_BALANCES, proto::ResponseCodeEnum::CONTRACT_HAS_NON_ZERO_TOKEN_BALANCES }, - { Status::CONTRACT_EXPIRED_AND_PENDING_REMOVAL, proto::ResponseCodeEnum::CONTRACT_EXPIRED_AND_PENDING_REMOVAL }, - { Status::CONTRACT_HAS_NO_AUTO_RENEW_ACCOUNT, proto::ResponseCodeEnum::CONTRACT_HAS_NO_AUTO_RENEW_ACCOUNT }, + proto::ResponseCodeEnum::SCHEDULE_EXPIRATION_TIME_MUST_BE_HIGHER_THAN_CONSENSUS_TIME }, + { Status::SCHEDULE_FUTURE_THROTTLE_EXCEEDED, proto::ResponseCodeEnum::SCHEDULE_FUTURE_THROTTLE_EXCEEDED }, + { Status::SCHEDULE_FUTURE_GAS_LIMIT_EXCEEDED, proto::ResponseCodeEnum::SCHEDULE_FUTURE_GAS_LIMIT_EXCEEDED }, + { Status::INVALID_ETHEREUM_TRANSACTION, proto::ResponseCodeEnum::INVALID_ETHEREUM_TRANSACTION }, + { Status::WRONG_CHAIN_ID, proto::ResponseCodeEnum::WRONG_CHAIN_ID }, + { Status::WRONG_NONCE, proto::ResponseCodeEnum::WRONG_NONCE }, + { Status::ACCESS_LIST_UNSUPPORTED, proto::ResponseCodeEnum::ACCESS_LIST_UNSUPPORTED }, + { Status::SCHEDULE_PENDING_EXPIRATION, proto::ResponseCodeEnum::SCHEDULE_PENDING_EXPIRATION }, + { Status::CONTRACT_IS_TOKEN_TREASURY, proto::ResponseCodeEnum::CONTRACT_IS_TOKEN_TREASURY }, + { Status::CONTRACT_HAS_NON_ZERO_TOKEN_BALANCES, proto::ResponseCodeEnum::CONTRACT_HAS_NON_ZERO_TOKEN_BALANCES }, + { Status::CONTRACT_EXPIRED_AND_PENDING_REMOVAL, proto::ResponseCodeEnum::CONTRACT_EXPIRED_AND_PENDING_REMOVAL }, + { Status::CONTRACT_HAS_NO_AUTO_RENEW_ACCOUNT, proto::ResponseCodeEnum::CONTRACT_HAS_NO_AUTO_RENEW_ACCOUNT }, { Status::PERMANENT_REMOVAL_REQUIRES_SYSTEM_INITIATION, - proto::ResponseCodeEnum::PERMANENT_REMOVAL_REQUIRES_SYSTEM_INITIATION }, - { Status::PROXY_ACCOUNT_ID_FIELD_IS_DEPRECATED, proto::ResponseCodeEnum::PROXY_ACCOUNT_ID_FIELD_IS_DEPRECATED }, - { Status::SELF_STAKING_IS_NOT_ALLOWED, proto::ResponseCodeEnum::SELF_STAKING_IS_NOT_ALLOWED }, - { Status::INVALID_STAKING_ID, proto::ResponseCodeEnum::INVALID_STAKING_ID }, - { Status::STAKING_NOT_ENABLED, proto::ResponseCodeEnum::STAKING_NOT_ENABLED }, - { Status::INVALID_PRNG_RANGE, proto::ResponseCodeEnum::INVALID_PRNG_RANGE }, + proto::ResponseCodeEnum::PERMANENT_REMOVAL_REQUIRES_SYSTEM_INITIATION }, + { Status::PROXY_ACCOUNT_ID_FIELD_IS_DEPRECATED, proto::ResponseCodeEnum::PROXY_ACCOUNT_ID_FIELD_IS_DEPRECATED }, + { Status::SELF_STAKING_IS_NOT_ALLOWED, proto::ResponseCodeEnum::SELF_STAKING_IS_NOT_ALLOWED }, + { Status::INVALID_STAKING_ID, proto::ResponseCodeEnum::INVALID_STAKING_ID }, + { Status::STAKING_NOT_ENABLED, proto::ResponseCodeEnum::STAKING_NOT_ENABLED }, + { Status::INVALID_PRNG_RANGE, proto::ResponseCodeEnum::INVALID_PRNG_RANGE }, { Status::MAX_ENTITIES_IN_PRICE_REGIME_HAVE_BEEN_CREATED, - proto::ResponseCodeEnum::MAX_ENTITIES_IN_PRICE_REGIME_HAVE_BEEN_CREATED }, + proto::ResponseCodeEnum::MAX_ENTITIES_IN_PRICE_REGIME_HAVE_BEEN_CREATED }, { Status::INVALID_FULL_PREFIX_SIGNATURE_FOR_PRECOMPILE, - proto::ResponseCodeEnum::INVALID_FULL_PREFIX_SIGNATURE_FOR_PRECOMPILE }, - { Status::INSUFFICIENT_BALANCES_FOR_STORAGE_RENT, proto::ResponseCodeEnum::INSUFFICIENT_BALANCES_FOR_STORAGE_RENT }, - { Status::MAX_CHILD_RECORDS_EXCEEDED, proto::ResponseCodeEnum::MAX_CHILD_RECORDS_EXCEEDED }, - { Status::INSUFFICIENT_BALANCES_FOR_RENEWAL_FEES, proto::ResponseCodeEnum::INSUFFICIENT_BALANCES_FOR_RENEWAL_FEES }, - { Status::TRANSACTION_HAS_UNKNOWN_FIELDS, proto::ResponseCodeEnum::TRANSACTION_HAS_UNKNOWN_FIELDS }, - { Status::ACCOUNT_IS_IMMUTABLE, proto::ResponseCodeEnum::ACCOUNT_IS_IMMUTABLE }, - { Status::ALIAS_ALREADY_ASSIGNED, proto::ResponseCodeEnum::ALIAS_ALREADY_ASSIGNED }, - { Status::INVALID_METADATA_KEY, proto::ResponseCodeEnum::INVALID_METADATA_KEY }, - { Status::MISSING_TOKEN_METADATA, proto::ResponseCodeEnum::MISSING_TOKEN_METADATA }, - { Status::MISSING_SERIAL_NUMBERS, proto::ResponseCodeEnum::MISSING_SERIAL_NUMBERS }, - { Status::INVALID_MAX_AUTO_ASSOCIATIONS, proto::ResponseCodeEnum::INVALID_MAX_AUTO_ASSOCIATIONS }, - { Status::TOKEN_REFERENCE_REPEATED, proto::ResponseCodeEnum::TOKEN_REFERENCE_REPEATED }, - { Status::INVALID_OWNER_ID, proto::ResponseCodeEnum::INVALID_OWNER_ID }, - { Status::EMPTY_TOKEN_REFERENCE_LIST, proto::ResponseCodeEnum::EMPTY_TOKEN_REFERENCE_LIST }, - { Status::EMPTY_PENDING_AIRDROP_ID_LIST, proto::ResponseCodeEnum::EMPTY_PENDING_AIRDROP_ID_LIST }, - { Status::PENDING_AIRDROP_ID_REPEATED, proto::ResponseCodeEnum::PENDING_AIRDROP_ID_REPEATED }, - { Status::PENDING_AIRDROP_ID_LIST_TOO_LONG, proto::ResponseCodeEnum::PENDING_AIRDROP_ID_LIST_TOO_LONG }, - { Status::PENDING_NFT_AIRDROP_ALREADY_EXISTS, proto::ResponseCodeEnum::PENDING_NFT_AIRDROP_ALREADY_EXISTS }, - { Status::ACCOUNT_HAS_PENDING_AIRDROPS, proto::ResponseCodeEnum::ACCOUNT_HAS_PENDING_AIRDROPS }, - { Status::THROTTLED_AT_CONSENSUS, proto::ResponseCodeEnum::THROTTLED_AT_CONSENSUS }, - { Status::INVALID_PENDING_AIRDROP_ID, proto::ResponseCodeEnum::INVALID_PENDING_AIRDROP_ID }, - { Status::TOKEN_AIRDROP_WITH_FALLBACK_ROYALTY, proto::ResponseCodeEnum::TOKEN_AIRDROP_WITH_FALLBACK_ROYALTY }, - { Status::INVALID_TOKEN_IN_PENDING_AIRDROP, proto::ResponseCodeEnum::INVALID_TOKEN_IN_PENDING_AIRDROP }, - { Status::NODE_DELETED, proto::ResponseCodeEnum::NODE_DELETED }, - { Status::INVALID_NODE_ID, proto::ResponseCodeEnum::INVALID_NODE_ID }, - { Status::INVALID_GOSSIP_ENDPOINT, proto::ResponseCodeEnum::INVALID_GOSSIP_ENDPOINT }, - { Status::INVALID_NODE_ACCOUNT_ID, proto::ResponseCodeEnum::INVALID_NODE_ACCOUNT_ID }, - { Status::INVALID_NODE_DESCRIPTION, proto::ResponseCodeEnum::INVALID_NODE_DESCRIPTION }, - { Status::INVALID_SERVICE_ENDPOINT, proto::ResponseCodeEnum::INVALID_SERVICE_ENDPOINT }, - { Status::INVALID_GOSSIP_CA_CERTIFICATE, proto::ResponseCodeEnum::INVALID_GOSSIP_CA_CERTIFICATE }, - { Status::INVALID_GRPC_CERTIFICATE, proto::ResponseCodeEnum::INVALID_GRPC_CERTIFICATE }, - { Status::MAX_NODES_CREATED, proto::ResponseCodeEnum::MAX_NODES_CREATED }, - { Status::IP_FQDN_CANNOT_BE_SET_FOR_SAME_ENDPOINT, proto::ResponseCodeEnum::IP_FQDN_CANNOT_BE_SET_FOR_SAME_ENDPOINT}, - { Status::GOSSIP_ENDPOINT_CANNOT_HAVE_FQDN, proto::ResponseCodeEnum::GOSSIP_ENDPOINT_CANNOT_HAVE_FQDN }, - { Status::FQDN_SIZE_TOO_LARGE, proto::ResponseCodeEnum::FQDN_SIZE_TOO_LARGE }, - { Status::INVALID_ENDPOINT, proto::ResponseCodeEnum::INVALID_ENDPOINT }, - { Status::GOSSIP_ENDPOINTS_EXCEEDED_LIMIT, proto::ResponseCodeEnum::GOSSIP_ENDPOINTS_EXCEEDED_LIMIT } + proto::ResponseCodeEnum::INVALID_FULL_PREFIX_SIGNATURE_FOR_PRECOMPILE }, + { Status::INSUFFICIENT_BALANCES_FOR_STORAGE_RENT, proto::ResponseCodeEnum::INSUFFICIENT_BALANCES_FOR_STORAGE_RENT }, + { Status::MAX_CHILD_RECORDS_EXCEEDED, proto::ResponseCodeEnum::MAX_CHILD_RECORDS_EXCEEDED }, + { Status::INSUFFICIENT_BALANCES_FOR_RENEWAL_FEES, proto::ResponseCodeEnum::INSUFFICIENT_BALANCES_FOR_RENEWAL_FEES }, + { Status::TRANSACTION_HAS_UNKNOWN_FIELDS, proto::ResponseCodeEnum::TRANSACTION_HAS_UNKNOWN_FIELDS }, + { Status::ACCOUNT_IS_IMMUTABLE, proto::ResponseCodeEnum::ACCOUNT_IS_IMMUTABLE }, + { Status::ALIAS_ALREADY_ASSIGNED, proto::ResponseCodeEnum::ALIAS_ALREADY_ASSIGNED }, + { Status::INVALID_METADATA_KEY, proto::ResponseCodeEnum::INVALID_METADATA_KEY }, + { Status::MISSING_TOKEN_METADATA, proto::ResponseCodeEnum::MISSING_TOKEN_METADATA }, + { Status::MISSING_SERIAL_NUMBERS, proto::ResponseCodeEnum::MISSING_SERIAL_NUMBERS }, + { Status::INVALID_MAX_AUTO_ASSOCIATIONS, proto::ResponseCodeEnum::INVALID_MAX_AUTO_ASSOCIATIONS }, + { Status::TOKEN_REFERENCE_REPEATED, proto::ResponseCodeEnum::TOKEN_REFERENCE_REPEATED }, + { Status::INVALID_OWNER_ID, proto::ResponseCodeEnum::INVALID_OWNER_ID }, + { Status::EMPTY_TOKEN_REFERENCE_LIST, proto::ResponseCodeEnum::EMPTY_TOKEN_REFERENCE_LIST }, + { Status::EMPTY_PENDING_AIRDROP_ID_LIST, proto::ResponseCodeEnum::EMPTY_PENDING_AIRDROP_ID_LIST }, + { Status::PENDING_AIRDROP_ID_REPEATED, proto::ResponseCodeEnum::PENDING_AIRDROP_ID_REPEATED }, + { Status::PENDING_AIRDROP_ID_LIST_TOO_LONG, proto::ResponseCodeEnum::PENDING_AIRDROP_ID_LIST_TOO_LONG }, + { Status::PENDING_NFT_AIRDROP_ALREADY_EXISTS, proto::ResponseCodeEnum::PENDING_NFT_AIRDROP_ALREADY_EXISTS }, + { Status::ACCOUNT_HAS_PENDING_AIRDROPS, proto::ResponseCodeEnum::ACCOUNT_HAS_PENDING_AIRDROPS }, + { Status::THROTTLED_AT_CONSENSUS, proto::ResponseCodeEnum::THROTTLED_AT_CONSENSUS }, + { Status::INVALID_PENDING_AIRDROP_ID, proto::ResponseCodeEnum::INVALID_PENDING_AIRDROP_ID }, + { Status::TOKEN_AIRDROP_WITH_FALLBACK_ROYALTY, proto::ResponseCodeEnum::TOKEN_AIRDROP_WITH_FALLBACK_ROYALTY }, + { Status::INVALID_TOKEN_IN_PENDING_AIRDROP, proto::ResponseCodeEnum::INVALID_TOKEN_IN_PENDING_AIRDROP }, + { Status::NODE_DELETED, proto::ResponseCodeEnum::NODE_DELETED }, + { Status::INVALID_NODE_ID, proto::ResponseCodeEnum::INVALID_NODE_ID }, + { Status::INVALID_GOSSIP_ENDPOINT, proto::ResponseCodeEnum::INVALID_GOSSIP_ENDPOINT }, + { Status::INVALID_NODE_ACCOUNT_ID, proto::ResponseCodeEnum::INVALID_NODE_ACCOUNT_ID }, + { Status::INVALID_NODE_DESCRIPTION, proto::ResponseCodeEnum::INVALID_NODE_DESCRIPTION }, + { Status::INVALID_SERVICE_ENDPOINT, proto::ResponseCodeEnum::INVALID_SERVICE_ENDPOINT }, + { Status::INVALID_GOSSIP_CA_CERTIFICATE, proto::ResponseCodeEnum::INVALID_GOSSIP_CA_CERTIFICATE }, + { Status::INVALID_GRPC_CERTIFICATE, proto::ResponseCodeEnum::INVALID_GRPC_CERTIFICATE }, + { Status::MAX_NODES_CREATED, proto::ResponseCodeEnum::MAX_NODES_CREATED }, + { Status::IP_FQDN_CANNOT_BE_SET_FOR_SAME_ENDPOINT, proto::ResponseCodeEnum::IP_FQDN_CANNOT_BE_SET_FOR_SAME_ENDPOINT }, + { Status::GOSSIP_ENDPOINT_CANNOT_HAVE_FQDN, proto::ResponseCodeEnum::GOSSIP_ENDPOINT_CANNOT_HAVE_FQDN }, + { Status::FQDN_SIZE_TOO_LARGE, proto::ResponseCodeEnum::FQDN_SIZE_TOO_LARGE }, + { Status::INVALID_ENDPOINT, proto::ResponseCodeEnum::INVALID_ENDPOINT }, + { Status::GOSSIP_ENDPOINTS_EXCEEDED_LIMIT, proto::ResponseCodeEnum::GOSSIP_ENDPOINTS_EXCEEDED_LIMIT } }; //----- const std::unordered_map gStatusToString = { - {Status::OK, "OK" }, - { Status::INVALID_TRANSACTION, "INVALID_TRANSACTION" }, - { Status::PAYER_ACCOUNT_NOT_FOUND, "PAYER_ACCOUNT_NOT_FOUND" }, - { Status::INVALID_NODE_ACCOUNT, "INVALID_NODE_ACCOUNT" }, - { Status::TRANSACTION_EXPIRED, "TRANSACTION_EXPIRED" }, - { Status::INVALID_TRANSACTION_START, "INVALID_TRANSACTION_START" }, - { Status::INVALID_TRANSACTION_DURATION, "INVALID_TRANSACTION_DURATION" }, - { Status::INVALID_SIGNATURE, "INVALID_SIGNATURE" }, - { Status::MEMO_TOO_LONG, "MEMO_TOO_LONG" }, - { Status::INSUFFICIENT_TX_FEE, "INSUFFICIENT_TX_FEE" }, - { Status::INSUFFICIENT_PAYER_BALANCE, "INSUFFICIENT_PAYER_BALANCE" }, - { Status::DUPLICATE_TRANSACTION, "DUPLICATE_TRANSACTION" }, - { Status::BUSY, "BUSY" }, - { Status::NOT_SUPPORTED, "NOT_SUPPORTED" }, - { Status::INVALID_FILE_ID, "INVALID_FILE_ID" }, - { Status::INVALID_ACCOUNT_ID, "INVALID_ACCOUNT_ID" }, - { Status::INVALID_CONTRACT_ID, "INVALID_CONTRACT_ID" }, - { Status::INVALID_TRANSACTION_ID, "INVALID_TRANSACTION_ID" }, - { Status::RECEIPT_NOT_FOUND, "RECEIPT_NOT_FOUND" }, - { Status::RECORD_NOT_FOUND, "RECORD_NOT_FOUND" }, - { Status::INVALID_SOLIDITY_ID, "INVALID_SOLIDITY_ID" }, - { Status::UNKNOWN, "UNKNOWN" }, - { Status::SUCCESS, "SUCCESS" }, - { Status::FAIL_INVALID, "FAIL_INVALID" }, - { Status::FAIL_FEE, "FAIL_FEE" }, - { Status::FAIL_BALANCE, "FAIL_BALANCE" }, - { Status::KEY_REQUIRED, "KEY_REQUIRED" }, - { Status::BAD_ENCODING, "BAD_ENCODING" }, - { Status::INSUFFICIENT_ACCOUNT_BALANCE, "INSUFFICIENT_ACCOUNT_BALANCE" }, - { Status::INVALID_SOLIDITY_ADDRESS, "INVALID_SOLIDITY_ADDRESS" }, - { Status::INSUFFICIENT_GAS, "INSUFFICIENT_GAS" }, - { Status::CONTRACT_SIZE_LIMIT_EXCEEDED, "CONTRACT_SIZE_LIMIT_EXCEEDED" }, - { Status::LOCAL_CALL_MODIFICATION_EXCEPTION, "LOCAL_CALL_MODIFICATION_EXCEPTION" }, - { Status::CONTRACT_REVERT_EXECUTED, "CONTRACT_REVERT_EXECUTED" }, - { Status::CONTRACT_EXECUTION_EXCEPTION, "CONTRACT_EXECUTION_EXCEPTION" }, - { Status::INVALID_RECEIVING_NODE_ACCOUNT, "INVALID_RECEIVING_NODE_ACCOUNT" }, - { Status::MISSING_QUERY_HEADER, "MISSING_QUERY_HEADER" }, - { Status::ACCOUNT_UPDATE_FAILED, "ACCOUNT_UPDATE_FAILED" }, - { Status::INVALID_KEY_ENCODING, "INVALID_KEY_ENCODING" }, - { Status::NULL_SOLIDITY_ADDRESS, "NULL_SOLIDITY_ADDRESS" }, - { Status::CONTRACT_UPDATE_FAILED, "CONTRACT_UPDATE_FAILED" }, - { Status::INVALID_QUERY_HEADER, "INVALID_QUERY_HEADER" }, - { Status::INVALID_FEE_SUBMITTED, "INVALID_FEE_SUBMITTED" }, - { Status::INVALID_PAYER_SIGNATURE, "INVALID_PAYER_SIGNATURE" }, - { Status::KEY_NOT_PROVIDED, "KEY_NOT_PROVIDED" }, - { Status::INVALID_EXPIRATION_TIME, "INVALID_EXPIRATION_TIME" }, - { Status::NO_WACL_KEY, "NO_WACL_KEY" }, - { Status::FILE_CONTENT_EMPTY, "FILE_CONTENT_EMPTY" }, - { Status::INVALID_ACCOUNT_AMOUNTS, "INVALID_ACCOUNT_AMOUNTS" }, - { Status::EMPTY_TRANSACTION_BODY, "EMPTY_TRANSACTION_BODY" }, - { Status::INVALID_TRANSACTION_BODY, "INVALID_TRANSACTION_BODY" }, - { Status::INVALID_SIGNATURE_TYPE_MISMATCHING_KEY, "INVALID_SIGNATURE_TYPE_MISMATCHING_KEY" }, - { Status::INVALID_SIGNATURE_COUNT_MISMATCHING_KEY, "INVALID_SIGNATURE_COUNT_MISMATCHING_KEY" }, - { Status::EMPTY_LIVE_HASH_BODY, "EMPTY_LIVE_HASH_BODY" }, - { Status::EMPTY_LIVE_HASH, "EMPTY_LIVE_HASH" }, - { Status::EMPTY_LIVE_HASH_KEYS, "EMPTY_LIVE_HASH_KEYS" }, - { Status::INVALID_LIVE_HASH_SIZE, "INVALID_LIVE_HASH_SIZE" }, - { Status::EMPTY_QUERY_BODY, "EMPTY_QUERY_BODY" }, - { Status::EMPTY_LIVE_HASH_QUERY, "EMPTY_LIVE_HASH_QUERY" }, - { Status::LIVE_HASH_NOT_FOUND, "LIVE_HASH_NOT_FOUND" }, - { Status::ACCOUNT_ID_DOES_NOT_EXIST, "ACCOUNT_ID_DOES_NOT_EXIST" }, - { Status::LIVE_HASH_ALREADY_EXISTS, "LIVE_HASH_ALREADY_EXISTS" }, - { Status::INVALID_FILE_WACL, "INVALID_FILE_WACL" }, - { Status::SERIALIZATION_FAILED, "SERIALIZATION_FAILED" }, - { Status::TRANSACTION_OVERSIZE, "TRANSACTION_OVERSIZE" }, - { Status::TRANSACTION_TOO_MANY_LAYERS, "TRANSACTION_TOO_MANY_LAYERS" }, - { Status::CONTRACT_DELETED, "CONTRACT_DELETED" }, - { Status::PLATFORM_NOT_ACTIVE, "PLATFORM_NOT_ACTIVE" }, - { Status::KEY_PREFIX_MISMATCH, "KEY_PREFIX_MISMATCH" }, - { Status::PLATFORM_TRANSACTION_NOT_CREATED, "PLATFORM_TRANSACTION_NOT_CREATED" }, - { Status::INVALID_RENEWAL_PERIOD, "INVALID_RENEWAL_PERIOD" }, - { Status::INVALID_PAYER_ACCOUNT_ID, "INVALID_PAYER_ACCOUNT_ID" }, - { Status::ACCOUNT_DELETED, "ACCOUNT_DELETED" }, - { Status::FILE_DELETED, "FILE_DELETED" }, - { Status::ACCOUNT_REPEATED_IN_ACCOUNT_AMOUNTS, "ACCOUNT_REPEATED_IN_ACCOUNT_AMOUNTS" }, - { Status::SETTING_NEGATIVE_ACCOUNT_BALANCE, "SETTING_NEGATIVE_ACCOUNT_BALANCE" }, - { Status::OBTAINER_REQUIRED, "OBTAINER_REQUIRED" }, - { Status::OBTAINER_SAME_CONTRACT_ID, "OBTAINER_SAME_CONTRACT_ID" }, - { Status::OBTAINER_DOES_NOT_EXIST, "OBTAINER_DOES_NOT_EXIST" }, - { Status::MODIFYING_IMMUTABLE_CONTRACT, "MODIFYING_IMMUTABLE_CONTRACT" }, - { Status::FILE_SYSTEM_EXCEPTION, "FILE_SYSTEM_EXCEPTION" }, - { Status::AUTORENEW_DURATION_NOT_IN_RANGE, "AUTORENEW_DURATION_NOT_IN_RANGE" }, - { Status::ERROR_DECODING_BYTESTRING, "ERROR_DECODING_BYTESTRING" }, - { Status::CONTRACT_FILE_EMPTY, "CONTRACT_FILE_EMPTY" }, - { Status::CONTRACT_BYTECODE_EMPTY, "CONTRACT_BYTECODE_EMPTY" }, - { Status::INVALID_INITIAL_BALANCE, "INVALID_INITIAL_BALANCE" }, - { Status::ACCOUNT_IS_NOT_GENESIS_ACCOUNT, "ACCOUNT_IS_NOT_GENESIS_ACCOUNT" }, - { Status::PAYER_ACCOUNT_UNAUTHORIZED, "PAYER_ACCOUNT_UNAUTHORIZED" }, - { Status::INVALID_FREEZE_TRANSACTION_BODY, "INVALID_FREEZE_TRANSACTION_BODY" }, - { Status::FREEZE_TRANSACTION_BODY_NOT_FOUND, "FREEZE_TRANSACTION_BODY_NOT_FOUND" }, - { Status::TRANSFER_LIST_SIZE_LIMIT_EXCEEDED, "TRANSFER_LIST_SIZE_LIMIT_EXCEEDED" }, - { Status::RESULT_SIZE_LIMIT_EXCEEDED, "RESULT_SIZE_LIMIT_EXCEEDED" }, - { Status::NOT_SPECIAL_ACCOUNT, "NOT_SPECIAL_ACCOUNT" }, - { Status::CONTRACT_NEGATIVE_GAS, "CONTRACT_NEGATIVE_GAS" }, - { Status::CONTRACT_NEGATIVE_VALUE, "CONTRACT_NEGATIVE_VALUE" }, - { Status::INVALID_FEE_FILE, "INVALID_FEE_FILE" }, - { Status::INVALID_EXCHANGE_RATE_FILE, "INVALID_EXCHANGE_RATE_FILE" }, - { Status::INSUFFICIENT_LOCAL_CALL_GAS, "INSUFFICIENT_LOCAL_CALL_GAS" }, - { Status::ENTITY_NOT_ALLOWED_TO_DELETE, "ENTITY_NOT_ALLOWED_TO_DELETE" }, - { Status::AUTHORIZATION_FAILED, "AUTHORIZATION_FAILED" }, - { Status::FILE_UPLOADED_PROTO_INVALID, "FILE_UPLOADED_PROTO_INVALID" }, - { Status::FILE_UPLOADED_PROTO_NOT_SAVED_TO_DISK, "FILE_UPLOADED_PROTO_NOT_SAVED_TO_DISK" }, - { Status::FEE_SCHEDULE_FILE_PART_UPLOADED, "FEE_SCHEDULE_FILE_PART_UPLOADED" }, - { Status::EXCHANGE_RATE_CHANGE_LIMIT_EXCEEDED, "EXCHANGE_RATE_CHANGE_LIMIT_EXCEEDED" }, - { Status::MAX_CONTRACT_STORAGE_EXCEEDED, "MAX_CONTRACT_STORAGE_EXCEEDED" }, - { Status::TRANSFER_ACCOUNT_SAME_AS_DELETE_ACCOUNT, "TRANSFER_ACCOUNT_SAME_AS_DELETE_ACCOUNT" }, - { Status::TOTAL_LEDGER_BALANCE_INVALID, "TOTAL_LEDGER_BALANCE_INVALID" }, - { Status::EXPIRATION_REDUCTION_NOT_ALLOWED, "EXPIRATION_REDUCTION_NOT_ALLOWED" }, - { Status::MAX_GAS_LIMIT_EXCEEDED, "MAX_GAS_LIMIT_EXCEEDED" }, - { Status::MAX_FILE_SIZE_EXCEEDED, "MAX_FILE_SIZE_EXCEEDED" }, - { Status::RECEIVER_SIG_REQUIRED, "RECEIVER_SIG_REQUIRED" }, - { Status::INVALID_TOPIC_ID, "INVALID_TOPIC_ID" }, - { Status::INVALID_ADMIN_KEY, "INVALID_ADMIN_KEY" }, - { Status::INVALID_SUBMIT_KEY, "INVALID_SUBMIT_KEY" }, - { Status::UNAUTHORIZED, "UNAUTHORIZED" }, - { Status::INVALID_TOPIC_MESSAGE, "INVALID_TOPIC_MESSAGE" }, - { Status::INVALID_AUTORENEW_ACCOUNT, "INVALID_AUTORENEW_ACCOUNT" }, - { Status::AUTORENEW_ACCOUNT_NOT_ALLOWED, "AUTORENEW_ACCOUNT_NOT_ALLOWED" }, - { Status::TOPIC_EXPIRED, "TOPIC_EXPIRED" }, - { Status::INVALID_CHUNK_NUMBER, "INVALID_CHUNK_NUMBER" }, - { Status::INVALID_CHUNK_TRANSACTION_ID, "INVALID_CHUNK_TRANSACTION_ID" }, - { Status::ACCOUNT_FROZEN_FOR_TOKEN, "ACCOUNT_FROZEN_FOR_TOKEN" }, - { Status::TOKENS_PER_ACCOUNT_LIMIT_EXCEEDED, "TOKENS_PER_ACCOUNT_LIMIT_EXCEEDED" }, - { Status::INVALID_TOKEN_ID, "INVALID_TOKEN_ID" }, - { Status::INVALID_TOKEN_DECIMALS, "INVALID_TOKEN_DECIMALS" }, - { Status::INVALID_TOKEN_INITIAL_SUPPLY, "INVALID_TOKEN_INITIAL_SUPPLY" }, - { Status::INVALID_TREASURY_ACCOUNT_FOR_TOKEN, "INVALID_TREASURY_ACCOUNT_FOR_TOKEN" }, - { Status::INVALID_TOKEN_SYMBOL, "INVALID_TOKEN_SYMBOL" }, - { Status::TOKEN_HAS_NO_FREEZE_KEY, "TOKEN_HAS_NO_FREEZE_KEY" }, - { Status::TRANSFERS_NOT_ZERO_SUM_FOR_TOKEN, "TRANSFERS_NOT_ZERO_SUM_FOR_TOKEN" }, - { Status::MISSING_TOKEN_SYMBOL, "MISSING_TOKEN_SYMBOL" }, - { Status::TOKEN_SYMBOL_TOO_LONG, "TOKEN_SYMBOL_TOO_LONG" }, - { Status::ACCOUNT_KYC_NOT_GRANTED_FOR_TOKEN, "ACCOUNT_KYC_NOT_GRANTED_FOR_TOKEN" }, - { Status::TOKEN_HAS_NO_KYC_KEY, "TOKEN_HAS_NO_KYC_KEY" }, - { Status::INSUFFICIENT_TOKEN_BALANCE, "INSUFFICIENT_TOKEN_BALANCE" }, - { Status::TOKEN_WAS_DELETED, "TOKEN_WAS_DELETED" }, - { Status::TOKEN_HAS_NO_SUPPLY_KEY, "TOKEN_HAS_NO_SUPPLY_KEY" }, - { Status::TOKEN_HAS_NO_WIPE_KEY, "TOKEN_HAS_NO_WIPE_KEY" }, - { Status::INVALID_TOKEN_MINT_AMOUNT, "INVALID_TOKEN_MINT_AMOUNT" }, - { Status::INVALID_TOKEN_BURN_AMOUNT, "INVALID_TOKEN_BURN_AMOUNT" }, - { Status::TOKEN_NOT_ASSOCIATED_TO_ACCOUNT, "TOKEN_NOT_ASSOCIATED_TO_ACCOUNT" }, - { Status::CANNOT_WIPE_TOKEN_TREASURY_ACCOUNT, "CANNOT_WIPE_TOKEN_TREASURY_ACCOUNT" }, - { Status::INVALID_KYC_KEY, "INVALID_KYC_KEY" }, - { Status::INVALID_WIPE_KEY, "INVALID_WIPE_KEY" }, - { Status::INVALID_FREEZE_KEY, "INVALID_FREEZE_KEY" }, - { Status::INVALID_SUPPLY_KEY, "INVALID_SUPPLY_KEY" }, - { Status::MISSING_TOKEN_NAME, "MISSING_TOKEN_NAME" }, - { Status::TOKEN_NAME_TOO_LONG, "TOKEN_NAME_TOO_LONG" }, - { Status::INVALID_WIPING_AMOUNT, "INVALID_WIPING_AMOUNT" }, - { Status::TOKEN_IS_IMMUTABLE, "TOKEN_IS_IMMUTABLE" }, - { Status::TOKEN_ALREADY_ASSOCIATED_TO_ACCOUNT, "TOKEN_ALREADY_ASSOCIATED_TO_ACCOUNT" }, - { Status::TRANSACTION_REQUIRES_ZERO_TOKEN_BALANCES, "TRANSACTION_REQUIRES_ZERO_TOKEN_BALANCES" }, - { Status::ACCOUNT_IS_TREASURY, "ACCOUNT_IS_TREASURY" }, - { Status::TOKEN_ID_REPEATED_IN_TOKEN_LIST, "TOKEN_ID_REPEATED_IN_TOKEN_LIST" }, - { Status::TOKEN_TRANSFER_LIST_SIZE_LIMIT_EXCEEDED, "TOKEN_TRANSFER_LIST_SIZE_LIMIT_EXCEEDED" }, - { Status::EMPTY_TOKEN_TRANSFER_BODY, "EMPTY_TOKEN_TRANSFER_BODY" }, - { Status::EMPTY_TOKEN_TRANSFER_ACCOUNT_AMOUNTS, "EMPTY_TOKEN_TRANSFER_ACCOUNT_AMOUNTS" }, - { Status::INVALID_SCHEDULE_ID, "INVALID_SCHEDULE_ID" }, - { Status::SCHEDULE_IS_IMMUTABLE, "SCHEDULE_IS_IMMUTABLE" }, - { Status::INVALID_SCHEDULE_PAYER_ID, "INVALID_SCHEDULE_PAYER_ID" }, - { Status::INVALID_SCHEDULE_ACCOUNT_ID, "INVALID_SCHEDULE_ACCOUNT_ID" }, - { Status::NO_NEW_VALID_SIGNATURES, "NO_NEW_VALID_SIGNATURES" }, - { Status::UNRESOLVABLE_REQUIRED_SIGNERS, "UNRESOLVABLE_REQUIRED_SIGNERS" }, - { Status::SCHEDULED_TRANSACTION_NOT_IN_WHITELIST, "SCHEDULED_TRANSACTION_NOT_IN_WHITELIST" }, - { Status::SOME_SIGNATURES_WERE_INVALID, "SOME_SIGNATURES_WERE_INVALID" }, - { Status::TRANSACTION_ID_FIELD_NOT_ALLOWED, "TRANSACTION_ID_FIELD_NOT_ALLOWED" }, - { Status::IDENTICAL_SCHEDULE_ALREADY_CREATED, "IDENTICAL_SCHEDULE_ALREADY_CREATED" }, - { Status::INVALID_ZERO_BYTE_IN_STRING, "INVALID_ZERO_BYTE_IN_STRING" }, - { Status::SCHEDULE_ALREADY_DELETED, "SCHEDULE_ALREADY_DELETED" }, - { Status::SCHEDULE_ALREADY_EXECUTED, "SCHEDULE_ALREADY_EXECUTED" }, - { Status::MESSAGE_SIZE_TOO_LARGE, "MESSAGE_SIZE_TOO_LARGE" }, - { Status::OPERATION_REPEATED_IN_BUCKET_GROUPS, "OPERATION_REPEATED_IN_BUCKET_GROUPS" }, - { Status::BUCKET_CAPACITY_OVERFLOW, "BUCKET_CAPACITY_OVERFLOW" }, - { Status::NODE_CAPACITY_NOT_SUFFICIENT_FOR_OPERATION, "NODE_CAPACITY_NOT_SUFFICIENT_FOR_OPERATION" }, - { Status::BUCKET_HAS_NO_THROTTLE_GROUPS, "BUCKET_HAS_NO_THROTTLE_GROUPS" }, - { Status::THROTTLE_GROUP_HAS_ZERO_OPS_PER_SEC, "THROTTLE_GROUP_HAS_ZERO_OPS_PER_SEC" }, - { Status::SUCCESS_BUT_MISSING_EXPECTED_OPERATION, "SUCCESS_BUT_MISSING_EXPECTED_OPERATION" }, - { Status::UNPARSEABLE_THROTTLE_DEFINITIONS, "UNPARSEABLE_THROTTLE_DEFINITIONS" }, - { Status::INVALID_THROTTLE_DEFINITIONS, "INVALID_THROTTLE_DEFINITIONS" }, - { Status::ACCOUNT_EXPIRED_AND_PENDING_REMOVAL, "ACCOUNT_EXPIRED_AND_PENDING_REMOVAL" }, - { Status::INVALID_TOKEN_MAX_SUPPLY, "INVALID_TOKEN_MAX_SUPPLY" }, - { Status::INVALID_TOKEN_NFT_SERIAL_NUMBER, "INVALID_TOKEN_NFT_SERIAL_NUMBER" }, - { Status::INVALID_NFT_ID, "INVALID_NFT_ID" }, - { Status::METADATA_TOO_LONG, "METADATA_TOO_LONG" }, - { Status::BATCH_SIZE_LIMIT_EXCEEDED, "BATCH_SIZE_LIMIT_EXCEEDED" }, - { Status::INVALID_QUERY_RANGE, "INVALID_QUERY_RANGE" }, - { Status::FRACTION_DIVIDES_BY_ZERO, "FRACTION_DIVIDES_BY_ZERO" }, - { Status::CUSTOM_FEES_LIST_TOO_LONG, "CUSTOM_FEES_LIST_TOO_LONG" }, - { Status::INVALID_CUSTOM_FEE_COLLECTOR, "INVALID_CUSTOM_FEE_COLLECTOR" }, - { Status::INVALID_TOKEN_ID_IN_CUSTOM_FEES, "INVALID_TOKEN_ID_IN_CUSTOM_FEES" }, - { Status::TOKEN_NOT_ASSOCIATED_TO_FEE_COLLECTOR, "TOKEN_NOT_ASSOCIATED_TO_FEE_COLLECTOR" }, - { Status::TOKEN_MAX_SUPPLY_REACHED, "TOKEN_MAX_SUPPLY_REACHED" }, - { Status::SENDER_DOES_NOT_OWN_NFT_SERIAL_NO, "SENDER_DOES_NOT_OWN_NFT_SERIAL_NO" }, - { Status::CUSTOM_FEE_NOT_FULLY_SPECIFIED, "CUSTOM_FEE_NOT_FULLY_SPECIFIED" }, - { Status::CUSTOM_FEE_MUST_BE_POSITIVE, "CUSTOM_FEE_MUST_BE_POSITIVE" }, - { Status::TOKEN_HAS_NO_FEE_SCHEDULE_KEY, "TOKEN_HAS_NO_FEE_SCHEDULE_KEY" }, - { Status::CUSTOM_FEE_OUTSIDE_NUMERIC_RANGE, "CUSTOM_FEE_OUTSIDE_NUMERIC_RANGE" }, - { Status::ROYALTY_FRACTION_CANNOT_EXCEED_ONE, "ROYALTY_FRACTION_CANNOT_EXCEED_ONE" }, - { Status::FRACTIONAL_FEE_MAX_AMOUNT_LESS_THAN_MIN_AMOUNT, "FRACTIONAL_FEE_MAX_AMOUNT_LESS_THAN_MIN_AMOUNT" }, - { Status::CUSTOM_SCHEDULE_ALREADY_HAS_NO_FEES, "CUSTOM_SCHEDULE_ALREADY_HAS_NO_FEES" }, - { Status::CUSTOM_FEE_DENOMINATION_MUST_BE_FUNGIBLE_COMMON, "CUSTOM_FEE_DENOMINATION_MUST_BE_FUNGIBLE_COMMON" }, + { Status::OK, "OK" }, + { Status::INVALID_TRANSACTION, "INVALID_TRANSACTION" }, + { Status::PAYER_ACCOUNT_NOT_FOUND, "PAYER_ACCOUNT_NOT_FOUND" }, + { Status::INVALID_NODE_ACCOUNT, "INVALID_NODE_ACCOUNT" }, + { Status::TRANSACTION_EXPIRED, "TRANSACTION_EXPIRED" }, + { Status::INVALID_TRANSACTION_START, "INVALID_TRANSACTION_START" }, + { Status::INVALID_TRANSACTION_DURATION, "INVALID_TRANSACTION_DURATION" }, + { Status::INVALID_SIGNATURE, "INVALID_SIGNATURE" }, + { Status::MEMO_TOO_LONG, "MEMO_TOO_LONG" }, + { Status::INSUFFICIENT_TX_FEE, "INSUFFICIENT_TX_FEE" }, + { Status::INSUFFICIENT_PAYER_BALANCE, "INSUFFICIENT_PAYER_BALANCE" }, + { Status::DUPLICATE_TRANSACTION, "DUPLICATE_TRANSACTION" }, + { Status::BUSY, "BUSY" }, + { Status::NOT_SUPPORTED, "NOT_SUPPORTED" }, + { Status::INVALID_FILE_ID, "INVALID_FILE_ID" }, + { Status::INVALID_ACCOUNT_ID, "INVALID_ACCOUNT_ID" }, + { Status::INVALID_CONTRACT_ID, "INVALID_CONTRACT_ID" }, + { Status::INVALID_TRANSACTION_ID, "INVALID_TRANSACTION_ID" }, + { Status::RECEIPT_NOT_FOUND, "RECEIPT_NOT_FOUND" }, + { Status::RECORD_NOT_FOUND, "RECORD_NOT_FOUND" }, + { Status::INVALID_SOLIDITY_ID, "INVALID_SOLIDITY_ID" }, + { Status::UNKNOWN, "UNKNOWN" }, + { Status::SUCCESS, "SUCCESS" }, + { Status::FAIL_INVALID, "FAIL_INVALID" }, + { Status::FAIL_FEE, "FAIL_FEE" }, + { Status::FAIL_BALANCE, "FAIL_BALANCE" }, + { Status::KEY_REQUIRED, "KEY_REQUIRED" }, + { Status::BAD_ENCODING, "BAD_ENCODING" }, + { Status::INSUFFICIENT_ACCOUNT_BALANCE, "INSUFFICIENT_ACCOUNT_BALANCE" }, + { Status::INVALID_SOLIDITY_ADDRESS, "INVALID_SOLIDITY_ADDRESS" }, + { Status::INSUFFICIENT_GAS, "INSUFFICIENT_GAS" }, + { Status::CONTRACT_SIZE_LIMIT_EXCEEDED, "CONTRACT_SIZE_LIMIT_EXCEEDED" }, + { Status::LOCAL_CALL_MODIFICATION_EXCEPTION, "LOCAL_CALL_MODIFICATION_EXCEPTION" }, + { Status::CONTRACT_REVERT_EXECUTED, "CONTRACT_REVERT_EXECUTED" }, + { Status::CONTRACT_EXECUTION_EXCEPTION, "CONTRACT_EXECUTION_EXCEPTION" }, + { Status::INVALID_RECEIVING_NODE_ACCOUNT, "INVALID_RECEIVING_NODE_ACCOUNT" }, + { Status::MISSING_QUERY_HEADER, "MISSING_QUERY_HEADER" }, + { Status::ACCOUNT_UPDATE_FAILED, "ACCOUNT_UPDATE_FAILED" }, + { Status::INVALID_KEY_ENCODING, "INVALID_KEY_ENCODING" }, + { Status::NULL_SOLIDITY_ADDRESS, "NULL_SOLIDITY_ADDRESS" }, + { Status::CONTRACT_UPDATE_FAILED, "CONTRACT_UPDATE_FAILED" }, + { Status::INVALID_QUERY_HEADER, "INVALID_QUERY_HEADER" }, + { Status::INVALID_FEE_SUBMITTED, "INVALID_FEE_SUBMITTED" }, + { Status::INVALID_PAYER_SIGNATURE, "INVALID_PAYER_SIGNATURE" }, + { Status::KEY_NOT_PROVIDED, "KEY_NOT_PROVIDED" }, + { Status::INVALID_EXPIRATION_TIME, "INVALID_EXPIRATION_TIME" }, + { Status::NO_WACL_KEY, "NO_WACL_KEY" }, + { Status::FILE_CONTENT_EMPTY, "FILE_CONTENT_EMPTY" }, + { Status::INVALID_ACCOUNT_AMOUNTS, "INVALID_ACCOUNT_AMOUNTS" }, + { Status::EMPTY_TRANSACTION_BODY, "EMPTY_TRANSACTION_BODY" }, + { Status::INVALID_TRANSACTION_BODY, "INVALID_TRANSACTION_BODY" }, + { Status::INVALID_SIGNATURE_TYPE_MISMATCHING_KEY, "INVALID_SIGNATURE_TYPE_MISMATCHING_KEY" }, + { Status::INVALID_SIGNATURE_COUNT_MISMATCHING_KEY, "INVALID_SIGNATURE_COUNT_MISMATCHING_KEY" }, + { Status::EMPTY_LIVE_HASH_BODY, "EMPTY_LIVE_HASH_BODY" }, + { Status::EMPTY_LIVE_HASH, "EMPTY_LIVE_HASH" }, + { Status::EMPTY_LIVE_HASH_KEYS, "EMPTY_LIVE_HASH_KEYS" }, + { Status::INVALID_LIVE_HASH_SIZE, "INVALID_LIVE_HASH_SIZE" }, + { Status::EMPTY_QUERY_BODY, "EMPTY_QUERY_BODY" }, + { Status::EMPTY_LIVE_HASH_QUERY, "EMPTY_LIVE_HASH_QUERY" }, + { Status::LIVE_HASH_NOT_FOUND, "LIVE_HASH_NOT_FOUND" }, + { Status::ACCOUNT_ID_DOES_NOT_EXIST, "ACCOUNT_ID_DOES_NOT_EXIST" }, + { Status::LIVE_HASH_ALREADY_EXISTS, "LIVE_HASH_ALREADY_EXISTS" }, + { Status::INVALID_FILE_WACL, "INVALID_FILE_WACL" }, + { Status::SERIALIZATION_FAILED, "SERIALIZATION_FAILED" }, + { Status::TRANSACTION_OVERSIZE, "TRANSACTION_OVERSIZE" }, + { Status::TRANSACTION_TOO_MANY_LAYERS, "TRANSACTION_TOO_MANY_LAYERS" }, + { Status::CONTRACT_DELETED, "CONTRACT_DELETED" }, + { Status::PLATFORM_NOT_ACTIVE, "PLATFORM_NOT_ACTIVE" }, + { Status::KEY_PREFIX_MISMATCH, "KEY_PREFIX_MISMATCH" }, + { Status::PLATFORM_TRANSACTION_NOT_CREATED, "PLATFORM_TRANSACTION_NOT_CREATED" }, + { Status::INVALID_RENEWAL_PERIOD, "INVALID_RENEWAL_PERIOD" }, + { Status::INVALID_PAYER_ACCOUNT_ID, "INVALID_PAYER_ACCOUNT_ID" }, + { Status::ACCOUNT_DELETED, "ACCOUNT_DELETED" }, + { Status::FILE_DELETED, "FILE_DELETED" }, + { Status::ACCOUNT_REPEATED_IN_ACCOUNT_AMOUNTS, "ACCOUNT_REPEATED_IN_ACCOUNT_AMOUNTS" }, + { Status::SETTING_NEGATIVE_ACCOUNT_BALANCE, "SETTING_NEGATIVE_ACCOUNT_BALANCE" }, + { Status::OBTAINER_REQUIRED, "OBTAINER_REQUIRED" }, + { Status::OBTAINER_SAME_CONTRACT_ID, "OBTAINER_SAME_CONTRACT_ID" }, + { Status::OBTAINER_DOES_NOT_EXIST, "OBTAINER_DOES_NOT_EXIST" }, + { Status::MODIFYING_IMMUTABLE_CONTRACT, "MODIFYING_IMMUTABLE_CONTRACT" }, + { Status::FILE_SYSTEM_EXCEPTION, "FILE_SYSTEM_EXCEPTION" }, + { Status::AUTORENEW_DURATION_NOT_IN_RANGE, "AUTORENEW_DURATION_NOT_IN_RANGE" }, + { Status::ERROR_DECODING_BYTESTRING, "ERROR_DECODING_BYTESTRING" }, + { Status::CONTRACT_FILE_EMPTY, "CONTRACT_FILE_EMPTY" }, + { Status::CONTRACT_BYTECODE_EMPTY, "CONTRACT_BYTECODE_EMPTY" }, + { Status::INVALID_INITIAL_BALANCE, "INVALID_INITIAL_BALANCE" }, + { Status::ACCOUNT_IS_NOT_GENESIS_ACCOUNT, "ACCOUNT_IS_NOT_GENESIS_ACCOUNT" }, + { Status::PAYER_ACCOUNT_UNAUTHORIZED, "PAYER_ACCOUNT_UNAUTHORIZED" }, + { Status::INVALID_FREEZE_TRANSACTION_BODY, "INVALID_FREEZE_TRANSACTION_BODY" }, + { Status::FREEZE_TRANSACTION_BODY_NOT_FOUND, "FREEZE_TRANSACTION_BODY_NOT_FOUND" }, + { Status::TRANSFER_LIST_SIZE_LIMIT_EXCEEDED, "TRANSFER_LIST_SIZE_LIMIT_EXCEEDED" }, + { Status::RESULT_SIZE_LIMIT_EXCEEDED, "RESULT_SIZE_LIMIT_EXCEEDED" }, + { Status::NOT_SPECIAL_ACCOUNT, "NOT_SPECIAL_ACCOUNT" }, + { Status::CONTRACT_NEGATIVE_GAS, "CONTRACT_NEGATIVE_GAS" }, + { Status::CONTRACT_NEGATIVE_VALUE, "CONTRACT_NEGATIVE_VALUE" }, + { Status::INVALID_FEE_FILE, "INVALID_FEE_FILE" }, + { Status::INVALID_EXCHANGE_RATE_FILE, "INVALID_EXCHANGE_RATE_FILE" }, + { Status::INSUFFICIENT_LOCAL_CALL_GAS, "INSUFFICIENT_LOCAL_CALL_GAS" }, + { Status::ENTITY_NOT_ALLOWED_TO_DELETE, "ENTITY_NOT_ALLOWED_TO_DELETE" }, + { Status::AUTHORIZATION_FAILED, "AUTHORIZATION_FAILED" }, + { Status::FILE_UPLOADED_PROTO_INVALID, "FILE_UPLOADED_PROTO_INVALID" }, + { Status::FILE_UPLOADED_PROTO_NOT_SAVED_TO_DISK, "FILE_UPLOADED_PROTO_NOT_SAVED_TO_DISK" }, + { Status::FEE_SCHEDULE_FILE_PART_UPLOADED, "FEE_SCHEDULE_FILE_PART_UPLOADED" }, + { Status::EXCHANGE_RATE_CHANGE_LIMIT_EXCEEDED, "EXCHANGE_RATE_CHANGE_LIMIT_EXCEEDED" }, + { Status::MAX_CONTRACT_STORAGE_EXCEEDED, "MAX_CONTRACT_STORAGE_EXCEEDED" }, + { Status::TRANSFER_ACCOUNT_SAME_AS_DELETE_ACCOUNT, "TRANSFER_ACCOUNT_SAME_AS_DELETE_ACCOUNT" }, + { Status::TOTAL_LEDGER_BALANCE_INVALID, "TOTAL_LEDGER_BALANCE_INVALID" }, + { Status::EXPIRATION_REDUCTION_NOT_ALLOWED, "EXPIRATION_REDUCTION_NOT_ALLOWED" }, + { Status::MAX_GAS_LIMIT_EXCEEDED, "MAX_GAS_LIMIT_EXCEEDED" }, + { Status::MAX_FILE_SIZE_EXCEEDED, "MAX_FILE_SIZE_EXCEEDED" }, + { Status::RECEIVER_SIG_REQUIRED, "RECEIVER_SIG_REQUIRED" }, + { Status::INVALID_TOPIC_ID, "INVALID_TOPIC_ID" }, + { Status::INVALID_ADMIN_KEY, "INVALID_ADMIN_KEY" }, + { Status::INVALID_SUBMIT_KEY, "INVALID_SUBMIT_KEY" }, + { Status::UNAUTHORIZED, "UNAUTHORIZED" }, + { Status::INVALID_TOPIC_MESSAGE, "INVALID_TOPIC_MESSAGE" }, + { Status::INVALID_AUTORENEW_ACCOUNT, "INVALID_AUTORENEW_ACCOUNT" }, + { Status::AUTORENEW_ACCOUNT_NOT_ALLOWED, "AUTORENEW_ACCOUNT_NOT_ALLOWED" }, + { Status::TOPIC_EXPIRED, "TOPIC_EXPIRED" }, + { Status::INVALID_CHUNK_NUMBER, "INVALID_CHUNK_NUMBER" }, + { Status::INVALID_CHUNK_TRANSACTION_ID, "INVALID_CHUNK_TRANSACTION_ID" }, + { Status::ACCOUNT_FROZEN_FOR_TOKEN, "ACCOUNT_FROZEN_FOR_TOKEN" }, + { Status::TOKENS_PER_ACCOUNT_LIMIT_EXCEEDED, "TOKENS_PER_ACCOUNT_LIMIT_EXCEEDED" }, + { Status::INVALID_TOKEN_ID, "INVALID_TOKEN_ID" }, + { Status::INVALID_TOKEN_DECIMALS, "INVALID_TOKEN_DECIMALS" }, + { Status::INVALID_TOKEN_INITIAL_SUPPLY, "INVALID_TOKEN_INITIAL_SUPPLY" }, + { Status::INVALID_TREASURY_ACCOUNT_FOR_TOKEN, "INVALID_TREASURY_ACCOUNT_FOR_TOKEN" }, + { Status::INVALID_TOKEN_SYMBOL, "INVALID_TOKEN_SYMBOL" }, + { Status::TOKEN_HAS_NO_FREEZE_KEY, "TOKEN_HAS_NO_FREEZE_KEY" }, + { Status::TRANSFERS_NOT_ZERO_SUM_FOR_TOKEN, "TRANSFERS_NOT_ZERO_SUM_FOR_TOKEN" }, + { Status::MISSING_TOKEN_SYMBOL, "MISSING_TOKEN_SYMBOL" }, + { Status::TOKEN_SYMBOL_TOO_LONG, "TOKEN_SYMBOL_TOO_LONG" }, + { Status::ACCOUNT_KYC_NOT_GRANTED_FOR_TOKEN, "ACCOUNT_KYC_NOT_GRANTED_FOR_TOKEN" }, + { Status::TOKEN_HAS_NO_KYC_KEY, "TOKEN_HAS_NO_KYC_KEY" }, + { Status::INSUFFICIENT_TOKEN_BALANCE, "INSUFFICIENT_TOKEN_BALANCE" }, + { Status::TOKEN_WAS_DELETED, "TOKEN_WAS_DELETED" }, + { Status::TOKEN_HAS_NO_SUPPLY_KEY, "TOKEN_HAS_NO_SUPPLY_KEY" }, + { Status::TOKEN_HAS_NO_WIPE_KEY, "TOKEN_HAS_NO_WIPE_KEY" }, + { Status::INVALID_TOKEN_MINT_AMOUNT, "INVALID_TOKEN_MINT_AMOUNT" }, + { Status::INVALID_TOKEN_BURN_AMOUNT, "INVALID_TOKEN_BURN_AMOUNT" }, + { Status::TOKEN_NOT_ASSOCIATED_TO_ACCOUNT, "TOKEN_NOT_ASSOCIATED_TO_ACCOUNT" }, + { Status::CANNOT_WIPE_TOKEN_TREASURY_ACCOUNT, "CANNOT_WIPE_TOKEN_TREASURY_ACCOUNT" }, + { Status::INVALID_KYC_KEY, "INVALID_KYC_KEY" }, + { Status::INVALID_WIPE_KEY, "INVALID_WIPE_KEY" }, + { Status::INVALID_FREEZE_KEY, "INVALID_FREEZE_KEY" }, + { Status::INVALID_SUPPLY_KEY, "INVALID_SUPPLY_KEY" }, + { Status::MISSING_TOKEN_NAME, "MISSING_TOKEN_NAME" }, + { Status::TOKEN_NAME_TOO_LONG, "TOKEN_NAME_TOO_LONG" }, + { Status::INVALID_WIPING_AMOUNT, "INVALID_WIPING_AMOUNT" }, + { Status::TOKEN_IS_IMMUTABLE, "TOKEN_IS_IMMUTABLE" }, + { Status::TOKEN_ALREADY_ASSOCIATED_TO_ACCOUNT, "TOKEN_ALREADY_ASSOCIATED_TO_ACCOUNT" }, + { Status::TRANSACTION_REQUIRES_ZERO_TOKEN_BALANCES, "TRANSACTION_REQUIRES_ZERO_TOKEN_BALANCES" }, + { Status::ACCOUNT_IS_TREASURY, "ACCOUNT_IS_TREASURY" }, + { Status::TOKEN_ID_REPEATED_IN_TOKEN_LIST, "TOKEN_ID_REPEATED_IN_TOKEN_LIST" }, + { Status::TOKEN_TRANSFER_LIST_SIZE_LIMIT_EXCEEDED, "TOKEN_TRANSFER_LIST_SIZE_LIMIT_EXCEEDED" }, + { Status::EMPTY_TOKEN_TRANSFER_BODY, "EMPTY_TOKEN_TRANSFER_BODY" }, + { Status::EMPTY_TOKEN_TRANSFER_ACCOUNT_AMOUNTS, "EMPTY_TOKEN_TRANSFER_ACCOUNT_AMOUNTS" }, + { Status::INVALID_SCHEDULE_ID, "INVALID_SCHEDULE_ID" }, + { Status::SCHEDULE_IS_IMMUTABLE, "SCHEDULE_IS_IMMUTABLE" }, + { Status::INVALID_SCHEDULE_PAYER_ID, "INVALID_SCHEDULE_PAYER_ID" }, + { Status::INVALID_SCHEDULE_ACCOUNT_ID, "INVALID_SCHEDULE_ACCOUNT_ID" }, + { Status::NO_NEW_VALID_SIGNATURES, "NO_NEW_VALID_SIGNATURES" }, + { Status::UNRESOLVABLE_REQUIRED_SIGNERS, "UNRESOLVABLE_REQUIRED_SIGNERS" }, + { Status::SCHEDULED_TRANSACTION_NOT_IN_WHITELIST, "SCHEDULED_TRANSACTION_NOT_IN_WHITELIST" }, + { Status::SOME_SIGNATURES_WERE_INVALID, "SOME_SIGNATURES_WERE_INVALID" }, + { Status::TRANSACTION_ID_FIELD_NOT_ALLOWED, "TRANSACTION_ID_FIELD_NOT_ALLOWED" }, + { Status::IDENTICAL_SCHEDULE_ALREADY_CREATED, "IDENTICAL_SCHEDULE_ALREADY_CREATED" }, + { Status::INVALID_ZERO_BYTE_IN_STRING, "INVALID_ZERO_BYTE_IN_STRING" }, + { Status::SCHEDULE_ALREADY_DELETED, "SCHEDULE_ALREADY_DELETED" }, + { Status::SCHEDULE_ALREADY_EXECUTED, "SCHEDULE_ALREADY_EXECUTED" }, + { Status::MESSAGE_SIZE_TOO_LARGE, "MESSAGE_SIZE_TOO_LARGE" }, + { Status::OPERATION_REPEATED_IN_BUCKET_GROUPS, "OPERATION_REPEATED_IN_BUCKET_GROUPS" }, + { Status::BUCKET_CAPACITY_OVERFLOW, "BUCKET_CAPACITY_OVERFLOW" }, + { Status::NODE_CAPACITY_NOT_SUFFICIENT_FOR_OPERATION, "NODE_CAPACITY_NOT_SUFFICIENT_FOR_OPERATION" }, + { Status::BUCKET_HAS_NO_THROTTLE_GROUPS, "BUCKET_HAS_NO_THROTTLE_GROUPS" }, + { Status::THROTTLE_GROUP_HAS_ZERO_OPS_PER_SEC, "THROTTLE_GROUP_HAS_ZERO_OPS_PER_SEC" }, + { Status::SUCCESS_BUT_MISSING_EXPECTED_OPERATION, "SUCCESS_BUT_MISSING_EXPECTED_OPERATION" }, + { Status::UNPARSEABLE_THROTTLE_DEFINITIONS, "UNPARSEABLE_THROTTLE_DEFINITIONS" }, + { Status::INVALID_THROTTLE_DEFINITIONS, "INVALID_THROTTLE_DEFINITIONS" }, + { Status::ACCOUNT_EXPIRED_AND_PENDING_REMOVAL, "ACCOUNT_EXPIRED_AND_PENDING_REMOVAL" }, + { Status::INVALID_TOKEN_MAX_SUPPLY, "INVALID_TOKEN_MAX_SUPPLY" }, + { Status::INVALID_TOKEN_NFT_SERIAL_NUMBER, "INVALID_TOKEN_NFT_SERIAL_NUMBER" }, + { Status::INVALID_NFT_ID, "INVALID_NFT_ID" }, + { Status::METADATA_TOO_LONG, "METADATA_TOO_LONG" }, + { Status::BATCH_SIZE_LIMIT_EXCEEDED, "BATCH_SIZE_LIMIT_EXCEEDED" }, + { Status::INVALID_QUERY_RANGE, "INVALID_QUERY_RANGE" }, + { Status::FRACTION_DIVIDES_BY_ZERO, "FRACTION_DIVIDES_BY_ZERO" }, + { Status::CUSTOM_FEES_LIST_TOO_LONG, "CUSTOM_FEES_LIST_TOO_LONG" }, + { Status::INVALID_CUSTOM_FEE_COLLECTOR, "INVALID_CUSTOM_FEE_COLLECTOR" }, + { Status::INVALID_TOKEN_ID_IN_CUSTOM_FEES, "INVALID_TOKEN_ID_IN_CUSTOM_FEES" }, + { Status::TOKEN_NOT_ASSOCIATED_TO_FEE_COLLECTOR, "TOKEN_NOT_ASSOCIATED_TO_FEE_COLLECTOR" }, + { Status::TOKEN_MAX_SUPPLY_REACHED, "TOKEN_MAX_SUPPLY_REACHED" }, + { Status::SENDER_DOES_NOT_OWN_NFT_SERIAL_NO, "SENDER_DOES_NOT_OWN_NFT_SERIAL_NO" }, + { Status::CUSTOM_FEE_NOT_FULLY_SPECIFIED, "CUSTOM_FEE_NOT_FULLY_SPECIFIED" }, + { Status::CUSTOM_FEE_MUST_BE_POSITIVE, "CUSTOM_FEE_MUST_BE_POSITIVE" }, + { Status::TOKEN_HAS_NO_FEE_SCHEDULE_KEY, "TOKEN_HAS_NO_FEE_SCHEDULE_KEY" }, + { Status::CUSTOM_FEE_OUTSIDE_NUMERIC_RANGE, "CUSTOM_FEE_OUTSIDE_NUMERIC_RANGE" }, + { Status::ROYALTY_FRACTION_CANNOT_EXCEED_ONE, "ROYALTY_FRACTION_CANNOT_EXCEED_ONE" }, + { Status::FRACTIONAL_FEE_MAX_AMOUNT_LESS_THAN_MIN_AMOUNT, "FRACTIONAL_FEE_MAX_AMOUNT_LESS_THAN_MIN_AMOUNT" }, + { Status::CUSTOM_SCHEDULE_ALREADY_HAS_NO_FEES, "CUSTOM_SCHEDULE_ALREADY_HAS_NO_FEES" }, + { Status::CUSTOM_FEE_DENOMINATION_MUST_BE_FUNGIBLE_COMMON, "CUSTOM_FEE_DENOMINATION_MUST_BE_FUNGIBLE_COMMON" }, { Status::CUSTOM_FRACTIONAL_FEE_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON, - "CUSTOM_FRACTIONAL_FEE_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON" }, - { Status::INVALID_CUSTOM_FEE_SCHEDULE_KEY, "INVALID_CUSTOM_FEE_SCHEDULE_KEY" }, - { Status::INVALID_TOKEN_MINT_METADATA, "INVALID_TOKEN_MINT_METADATA" }, - { Status::INVALID_TOKEN_BURN_METADATA, "INVALID_TOKEN_BURN_METADATA" }, - { Status::CURRENT_TREASURY_STILL_OWNS_NFTS, "CURRENT_TREASURY_STILL_OWNS_NFTS" }, - { Status::ACCOUNT_STILL_OWNS_NFTS, "ACCOUNT_STILL_OWNS_NFTS" }, - { Status::TREASURY_MUST_OWN_BURNED_NFT, "TREASURY_MUST_OWN_BURNED_NFT" }, - { Status::ACCOUNT_DOES_NOT_OWN_WIPED_NFT, "ACCOUNT_DOES_NOT_OWN_WIPED_NFT" }, + "CUSTOM_FRACTIONAL_FEE_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON" }, + { Status::INVALID_CUSTOM_FEE_SCHEDULE_KEY, "INVALID_CUSTOM_FEE_SCHEDULE_KEY" }, + { Status::INVALID_TOKEN_MINT_METADATA, "INVALID_TOKEN_MINT_METADATA" }, + { Status::INVALID_TOKEN_BURN_METADATA, "INVALID_TOKEN_BURN_METADATA" }, + { Status::CURRENT_TREASURY_STILL_OWNS_NFTS, "CURRENT_TREASURY_STILL_OWNS_NFTS" }, + { Status::ACCOUNT_STILL_OWNS_NFTS, "ACCOUNT_STILL_OWNS_NFTS" }, + { Status::TREASURY_MUST_OWN_BURNED_NFT, "TREASURY_MUST_OWN_BURNED_NFT" }, + { Status::ACCOUNT_DOES_NOT_OWN_WIPED_NFT, "ACCOUNT_DOES_NOT_OWN_WIPED_NFT" }, { Status::ACCOUNT_AMOUNT_TRANSFERS_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON, - "ACCOUNT_AMOUNT_TRANSFERS_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON" }, - { Status::MAX_NFTS_IN_PRICE_REGIME_HAVE_BEEN_MINTED, "MAX_NFTS_IN_PRICE_REGIME_HAVE_BEEN_MINTED" }, - { Status::PAYER_ACCOUNT_DELETED, "PAYER_ACCOUNT_DELETED" }, - { Status::CUSTOM_FEE_CHARGING_EXCEEDED_MAX_RECURSION_DEPTH, "CUSTOM_FEE_CHARGING_EXCEEDED_MAX_RECURSION_DEPTH" }, - { Status::CUSTOM_FEE_CHARGING_EXCEEDED_MAX_ACCOUNT_AMOUNTS, "CUSTOM_FEE_CHARGING_EXCEEDED_MAX_ACCOUNT_AMOUNTS" }, - { Status::INSUFFICIENT_SENDER_ACCOUNT_BALANCE_FOR_CUSTOM_FEE, "INSUFFICIENT_SENDER_ACCOUNT_BALANCE_FOR_CUSTOM_FEE"}, - { Status::SERIAL_NUMBER_LIMIT_REACHED, "SERIAL_NUMBER_LIMIT_REACHED" }, + "ACCOUNT_AMOUNT_TRANSFERS_ONLY_ALLOWED_FOR_FUNGIBLE_COMMON" }, + { Status::MAX_NFTS_IN_PRICE_REGIME_HAVE_BEEN_MINTED, "MAX_NFTS_IN_PRICE_REGIME_HAVE_BEEN_MINTED" }, + { Status::PAYER_ACCOUNT_DELETED, "PAYER_ACCOUNT_DELETED" }, + { Status::CUSTOM_FEE_CHARGING_EXCEEDED_MAX_RECURSION_DEPTH, "CUSTOM_FEE_CHARGING_EXCEEDED_MAX_RECURSION_DEPTH" }, + { Status::CUSTOM_FEE_CHARGING_EXCEEDED_MAX_ACCOUNT_AMOUNTS, "CUSTOM_FEE_CHARGING_EXCEEDED_MAX_ACCOUNT_AMOUNTS" }, + { Status::INSUFFICIENT_SENDER_ACCOUNT_BALANCE_FOR_CUSTOM_FEE, "INSUFFICIENT_SENDER_ACCOUNT_BALANCE_FOR_CUSTOM_FEE" }, + { Status::SERIAL_NUMBER_LIMIT_REACHED, "SERIAL_NUMBER_LIMIT_REACHED" }, { Status::CUSTOM_ROYALTY_FEE_ONLY_ALLOWED_FOR_NON_FUNGIBLE_UNIQUE, - "CUSTOM_ROYALTY_FEE_ONLY_ALLOWED_FOR_NON_FUNGIBLE_UNIQUE" }, - { Status::NO_REMAINING_AUTOMATIC_ASSOCIATIONS, "NO_REMAINING_AUTOMATIC_ASSOCIATIONS" }, - { Status::EXISTING_AUTOMATIC_ASSOCIATIONS_EXCEED_GIVEN_LIMIT, "EXISTING_AUTOMATIC_ASSOCIATIONS_EXCEED_GIVEN_LIMIT"}, + "CUSTOM_ROYALTY_FEE_ONLY_ALLOWED_FOR_NON_FUNGIBLE_UNIQUE" }, + { Status::NO_REMAINING_AUTOMATIC_ASSOCIATIONS, "NO_REMAINING_AUTOMATIC_ASSOCIATIONS" }, + { Status::EXISTING_AUTOMATIC_ASSOCIATIONS_EXCEED_GIVEN_LIMIT, "EXISTING_AUTOMATIC_ASSOCIATIONS_EXCEED_GIVEN_LIMIT" }, { Status::REQUESTED_NUM_AUTOMATIC_ASSOCIATIONS_EXCEEDS_ASSOCIATION_LIMIT, - "REQUESTED_NUM_AUTOMATIC_ASSOCIATIONS_EXCEEDS_ASSOCIATION_LIMIT" }, - { Status::TOKEN_IS_PAUSED, "TOKEN_IS_PAUSED" }, - { Status::TOKEN_HAS_NO_PAUSE_KEY, "TOKEN_HAS_NO_PAUSE_KEY" }, - { Status::INVALID_PAUSE_KEY, "INVALID_PAUSE_KEY" }, - { Status::FREEZE_UPDATE_FILE_DOES_NOT_EXIST, "FREEZE_UPDATE_FILE_DOES_NOT_EXIST" }, - { Status::FREEZE_UPDATE_FILE_HASH_DOES_NOT_MATCH, "FREEZE_UPDATE_FILE_HASH_DOES_NOT_MATCH" }, - { Status::NO_UPGRADE_HAS_BEEN_PREPARED, "NO_UPGRADE_HAS_BEEN_PREPARED" }, - { Status::NO_FREEZE_IS_SCHEDULED, "NO_FREEZE_IS_SCHEDULED" }, - { Status::UPDATE_FILE_HASH_CHANGED_SINCE_PREPARE_UPGRADE, "UPDATE_FILE_HASH_CHANGED_SINCE_PREPARE_UPGRADE" }, - { Status::FREEZE_START_TIME_MUST_BE_FUTURE, "FREEZE_START_TIME_MUST_BE_FUTURE" }, - { Status::PREPARED_UPDATE_FILE_IS_IMMUTABLE, "PREPARED_UPDATE_FILE_IS_IMMUTABLE" }, - { Status::FREEZE_ALREADY_SCHEDULED, "FREEZE_ALREADY_SCHEDULED" }, - { Status::FREEZE_UPGRADE_IN_PROGRESS, "FREEZE_UPGRADE_IN_PROGRESS" }, - { Status::UPDATE_FILE_ID_DOES_NOT_MATCH_PREPARED, "UPDATE_FILE_ID_DOES_NOT_MATCH_PREPARED" }, - { Status::UPDATE_FILE_HASH_DOES_NOT_MATCH_PREPARED, "UPDATE_FILE_HASH_DOES_NOT_MATCH_PREPARED" }, - { Status::CONSENSUS_GAS_EXHAUSTED, "CONSENSUS_GAS_EXHAUSTED" }, - { Status::REVERTED_SUCCESS, "REVERTED_SUCCESS" }, - { Status::MAX_STORAGE_IN_PRICE_REGIME_HAS_BEEN_USED, "MAX_STORAGE_IN_PRICE_REGIME_HAS_BEEN_USED" }, - { Status::INVALID_ALIAS_KEY, "INVALID_ALIAS_KEY" }, - { Status::UNEXPECTED_TOKEN_DECIMALS, "UNEXPECTED_TOKEN_DECIMALS" }, - { Status::INVALID_TRANSFER_ACCOUNT_ID, "INVALID_TRANSFER_ACCOUNT_ID" }, - { Status::INVALID_FEE_COLLECTOR_ACCOUNT_ID, "INVALID_FEE_COLLECTOR_ACCOUNT_ID" }, - { Status::ALIAS_IS_IMMUTABLE, "ALIAS_IS_IMMUTABLE" }, - { Status::SPENDER_ACCOUNT_SAME_AS_OWNER, "SPENDER_ACCOUNT_SAME_AS_OWNER" }, - { Status::AMOUNT_EXCEEDS_TOKEN_MAX_SUPPLY, "AMOUNT_EXCEEDS_TOKEN_MAX_SUPPLY" }, - { Status::NEGATIVE_ALLOWANCE_AMOUNT, "NEGATIVE_ALLOWANCE_AMOUNT" }, - { Status::SPENDER_DOES_NOT_HAVE_ALLOWANCE, "SPENDER_DOES_NOT_HAVE_ALLOWANCE" }, - { Status::AMOUNT_EXCEEDS_ALLOWANCE, "AMOUNT_EXCEEDS_ALLOWANCE" }, - { Status::MAX_ALLOWANCES_EXCEEDED, "MAX_ALLOWANCES_EXCEEDED" }, - { Status::EMPTY_ALLOWANCES, "EMPTY_ALLOWANCES" }, - { Status::FUNGIBLE_TOKEN_IN_NFT_ALLOWANCES, "FUNGIBLE_TOKEN_IN_NFT_ALLOWANCES" }, - { Status::NFT_IN_FUNGIBLE_TOKEN_ALLOWANCES, "NFT_IN_FUNGIBLE_TOKEN_ALLOWANCES" }, - { Status::INVALID_ALLOWANCE_OWNER_ID, "INVALID_ALLOWANCE_OWNER_ID" }, - { Status::INVALID_ALLOWANCE_SPENDER_ID, "INVALID_ALLOWANCE_SPENDER_ID" }, - { Status::INVALID_DELEGATING_SPENDER, "INVALID_DELEGATING_SPENDER" }, - { Status::DELEGATING_SPENDER_CANNOT_GRANT_APPROVE_FOR_ALL, "DELEGATING_SPENDER_CANNOT_GRANT_APPROVE_FOR_ALL" }, - { Status::DELEGATING_SPENDER_DOES_NOT_HAVE_APPROVE_FOR_ALL, "DELEGATING_SPENDER_DOES_NOT_HAVE_APPROVE_FOR_ALL" }, - { Status::SCHEDULE_EXPIRATION_TIME_TOO_FAR_IN_FUTURE, "SCHEDULE_EXPIRATION_TIME_TOO_FAR_IN_FUTURE" }, + "REQUESTED_NUM_AUTOMATIC_ASSOCIATIONS_EXCEEDS_ASSOCIATION_LIMIT" }, + { Status::TOKEN_IS_PAUSED, "TOKEN_IS_PAUSED" }, + { Status::TOKEN_HAS_NO_PAUSE_KEY, "TOKEN_HAS_NO_PAUSE_KEY" }, + { Status::INVALID_PAUSE_KEY, "INVALID_PAUSE_KEY" }, + { Status::FREEZE_UPDATE_FILE_DOES_NOT_EXIST, "FREEZE_UPDATE_FILE_DOES_NOT_EXIST" }, + { Status::FREEZE_UPDATE_FILE_HASH_DOES_NOT_MATCH, "FREEZE_UPDATE_FILE_HASH_DOES_NOT_MATCH" }, + { Status::NO_UPGRADE_HAS_BEEN_PREPARED, "NO_UPGRADE_HAS_BEEN_PREPARED" }, + { Status::NO_FREEZE_IS_SCHEDULED, "NO_FREEZE_IS_SCHEDULED" }, + { Status::UPDATE_FILE_HASH_CHANGED_SINCE_PREPARE_UPGRADE, "UPDATE_FILE_HASH_CHANGED_SINCE_PREPARE_UPGRADE" }, + { Status::FREEZE_START_TIME_MUST_BE_FUTURE, "FREEZE_START_TIME_MUST_BE_FUTURE" }, + { Status::PREPARED_UPDATE_FILE_IS_IMMUTABLE, "PREPARED_UPDATE_FILE_IS_IMMUTABLE" }, + { Status::FREEZE_ALREADY_SCHEDULED, "FREEZE_ALREADY_SCHEDULED" }, + { Status::FREEZE_UPGRADE_IN_PROGRESS, "FREEZE_UPGRADE_IN_PROGRESS" }, + { Status::UPDATE_FILE_ID_DOES_NOT_MATCH_PREPARED, "UPDATE_FILE_ID_DOES_NOT_MATCH_PREPARED" }, + { Status::UPDATE_FILE_HASH_DOES_NOT_MATCH_PREPARED, "UPDATE_FILE_HASH_DOES_NOT_MATCH_PREPARED" }, + { Status::CONSENSUS_GAS_EXHAUSTED, "CONSENSUS_GAS_EXHAUSTED" }, + { Status::REVERTED_SUCCESS, "REVERTED_SUCCESS" }, + { Status::MAX_STORAGE_IN_PRICE_REGIME_HAS_BEEN_USED, "MAX_STORAGE_IN_PRICE_REGIME_HAS_BEEN_USED" }, + { Status::INVALID_ALIAS_KEY, "INVALID_ALIAS_KEY" }, + { Status::UNEXPECTED_TOKEN_DECIMALS, "UNEXPECTED_TOKEN_DECIMALS" }, + { Status::INVALID_TRANSFER_ACCOUNT_ID, "INVALID_TRANSFER_ACCOUNT_ID" }, + { Status::INVALID_FEE_COLLECTOR_ACCOUNT_ID, "INVALID_FEE_COLLECTOR_ACCOUNT_ID" }, + { Status::ALIAS_IS_IMMUTABLE, "ALIAS_IS_IMMUTABLE" }, + { Status::SPENDER_ACCOUNT_SAME_AS_OWNER, "SPENDER_ACCOUNT_SAME_AS_OWNER" }, + { Status::AMOUNT_EXCEEDS_TOKEN_MAX_SUPPLY, "AMOUNT_EXCEEDS_TOKEN_MAX_SUPPLY" }, + { Status::NEGATIVE_ALLOWANCE_AMOUNT, "NEGATIVE_ALLOWANCE_AMOUNT" }, + { Status::SPENDER_DOES_NOT_HAVE_ALLOWANCE, "SPENDER_DOES_NOT_HAVE_ALLOWANCE" }, + { Status::AMOUNT_EXCEEDS_ALLOWANCE, "AMOUNT_EXCEEDS_ALLOWANCE" }, + { Status::MAX_ALLOWANCES_EXCEEDED, "MAX_ALLOWANCES_EXCEEDED" }, + { Status::EMPTY_ALLOWANCES, "EMPTY_ALLOWANCES" }, + { Status::FUNGIBLE_TOKEN_IN_NFT_ALLOWANCES, "FUNGIBLE_TOKEN_IN_NFT_ALLOWANCES" }, + { Status::NFT_IN_FUNGIBLE_TOKEN_ALLOWANCES, "NFT_IN_FUNGIBLE_TOKEN_ALLOWANCES" }, + { Status::INVALID_ALLOWANCE_OWNER_ID, "INVALID_ALLOWANCE_OWNER_ID" }, + { Status::INVALID_ALLOWANCE_SPENDER_ID, "INVALID_ALLOWANCE_SPENDER_ID" }, + { Status::INVALID_DELEGATING_SPENDER, "INVALID_DELEGATING_SPENDER" }, + { Status::DELEGATING_SPENDER_CANNOT_GRANT_APPROVE_FOR_ALL, "DELEGATING_SPENDER_CANNOT_GRANT_APPROVE_FOR_ALL" }, + { Status::DELEGATING_SPENDER_DOES_NOT_HAVE_APPROVE_FOR_ALL, "DELEGATING_SPENDER_DOES_NOT_HAVE_APPROVE_FOR_ALL" }, + { Status::SCHEDULE_EXPIRATION_TIME_TOO_FAR_IN_FUTURE, "SCHEDULE_EXPIRATION_TIME_TOO_FAR_IN_FUTURE" }, { Status::SCHEDULE_EXPIRATION_TIME_MUST_BE_HIGHER_THAN_CONSENSUS_TIME, - "SCHEDULE_EXPIRATION_TIME_MUST_BE_HIGHER_THAN_CONSENSUS_TIME" }, - { Status::SCHEDULE_FUTURE_THROTTLE_EXCEEDED, "SCHEDULE_FUTURE_THROTTLE_EXCEEDED" }, - { Status::SCHEDULE_FUTURE_GAS_LIMIT_EXCEEDED, "SCHEDULE_FUTURE_GAS_LIMIT_EXCEEDED" }, - { Status::INVALID_ETHEREUM_TRANSACTION, "INVALID_ETHEREUM_TRANSACTION" }, - { Status::WRONG_CHAIN_ID, "WRONG_CHAIN_ID" }, - { Status::WRONG_NONCE, "WRONG_NONCE" }, - { Status::ACCESS_LIST_UNSUPPORTED, "ACCESS_LIST_UNSUPPORTED" }, - { Status::SCHEDULE_PENDING_EXPIRATION, "SCHEDULE_PENDING_EXPIRATION" }, - { Status::CONTRACT_IS_TOKEN_TREASURY, "CONTRACT_IS_TOKEN_TREASURY" }, - { Status::CONTRACT_HAS_NON_ZERO_TOKEN_BALANCES, "CONTRACT_HAS_NON_ZERO_TOKEN_BALANCES" }, - { Status::CONTRACT_EXPIRED_AND_PENDING_REMOVAL, "CONTRACT_EXPIRED_AND_PENDING_REMOVAL" }, - { Status::CONTRACT_HAS_NO_AUTO_RENEW_ACCOUNT, "CONTRACT_HAS_NO_AUTO_RENEW_ACCOUNT" }, - { Status::PERMANENT_REMOVAL_REQUIRES_SYSTEM_INITIATION, "PERMANENT_REMOVAL_REQUIRES_SYSTEM_INITIATION" }, - { Status::PROXY_ACCOUNT_ID_FIELD_IS_DEPRECATED, "PROXY_ACCOUNT_ID_FIELD_IS_DEPRECATED" }, - { Status::SELF_STAKING_IS_NOT_ALLOWED, "SELF_STAKING_IS_NOT_ALLOWED" }, - { Status::INVALID_STAKING_ID, "INVALID_STAKING_ID" }, - { Status::STAKING_NOT_ENABLED, "STAKING_NOT_ENABLED" }, - { Status::INVALID_PRNG_RANGE, "INVALID_PRNG_RANGE" }, - { Status::MAX_ENTITIES_IN_PRICE_REGIME_HAVE_BEEN_CREATED, "MAX_ENTITIES_IN_PRICE_REGIME_HAVE_BEEN_CREATED" }, - { Status::INVALID_FULL_PREFIX_SIGNATURE_FOR_PRECOMPILE, "INVALID_FULL_PREFIX_SIGNATURE_FOR_PRECOMPILE" }, - { Status::INSUFFICIENT_BALANCES_FOR_STORAGE_RENT, "INSUFFICIENT_BALANCES_FOR_STORAGE_RENT" }, - { Status::MAX_CHILD_RECORDS_EXCEEDED, "MAX_CHILD_RECORDS_EXCEEDED" }, - { Status::INSUFFICIENT_BALANCES_FOR_RENEWAL_FEES, "INSUFFICIENT_BALANCES_FOR_RENEWAL_FEES" }, - { Status::TRANSACTION_HAS_UNKNOWN_FIELDS, "TRANSACTION_HAS_UNKNOWN_FIELDS" }, - { Status::ACCOUNT_IS_IMMUTABLE, "ACCOUNT_IS_IMMUTABLE" }, - { Status::ALIAS_ALREADY_ASSIGNED, "ALIAS_ALREADY_ASSIGNED" }, - { Status::INVALID_METADATA_KEY, "INVALID_METADATA_KEY" }, - { Status::MISSING_TOKEN_METADATA, "MISSING_TOKEN_METADATA" }, - { Status::MISSING_SERIAL_NUMBERS, "MISSING_SERIAL_NUMBERS" }, - { Status::INVALID_MAX_AUTO_ASSOCIATIONS, "INVALID_MAX_AUTO_ASSOCIATIONS" }, - { Status::TOKEN_REFERENCE_REPEATED, "TOKEN_REFERENCE_REPEATED" }, - { Status::INVALID_OWNER_ID, "INVALID_OWNER_ID" }, - { Status::EMPTY_TOKEN_REFERENCE_LIST, "EMPTY_TOKEN_REFERENCE_LIST" }, - { Status::EMPTY_PENDING_AIRDROP_ID_LIST, "EMPTY_PENDING_AIRDROP_ID_LIST" }, - { Status::PENDING_AIRDROP_ID_REPEATED, "PENDING_AIRDROP_ID_REPEATED" }, - { Status::PENDING_AIRDROP_ID_LIST_TOO_LONG, "PENDING_AIRDROP_ID_LIST_TOO_LONG" }, - { Status::PENDING_NFT_AIRDROP_ALREADY_EXISTS, "PENDING_NFT_AIRDROP_ALREADY_EXISTS" }, - { Status::ACCOUNT_HAS_PENDING_AIRDROPS, "ACCOUNT_HAS_PENDING_AIRDROPS" }, - { Status::THROTTLED_AT_CONSENSUS, "THROTTLED_AT_CONSENSUS" }, - { Status::INVALID_PENDING_AIRDROP_ID, "INVALID_PENDING_AIRDROP_ID" }, - { Status::TOKEN_AIRDROP_WITH_FALLBACK_ROYALTY, "TOKEN_AIRDROP_WITH_FALLBACK_ROYALTY" }, - { Status::INVALID_TOKEN_IN_PENDING_AIRDROP, "INVALID_TOKEN_IN_PENDING_AIRDROP" }, - { Status::NODE_DELETED, "NODE_DELETED" }, - { Status::INVALID_NODE_ID, "INVALID_NODE_ID" }, - { Status::INVALID_GOSSIP_ENDPOINT, "INVALID_GOSSIP_ENDPOINT" }, - { Status::INVALID_NODE_ACCOUNT_ID, "INVALID_NODE_ACCOUNT_ID" }, - { Status::INVALID_NODE_DESCRIPTION, "INVALID_NODE_DESCRIPTION" }, - { Status::INVALID_SERVICE_ENDPOINT, "INVALID_SERVICE_ENDPOINT" }, - { Status::INVALID_GOSSIP_CA_CERTIFICATE, "INVALID_GOSSIP_CA_CERTIFICATE" }, - { Status::INVALID_GRPC_CERTIFICATE, "INVALID_GRPC_CERTIFICATE" }, - { Status::MAX_NODES_CREATED, "MAX_NODES_CREATED" }, - { Status::IP_FQDN_CANNOT_BE_SET_FOR_SAME_ENDPOINT, "IP_FQDN_CANNOT_BE_SET_FOR_SAME_ENDPOINT" }, - { Status::GOSSIP_ENDPOINT_CANNOT_HAVE_FQDN, "GOSSIP_ENDPOINT_CANNOT_HAVE_FQDN" }, - { Status::FQDN_SIZE_TOO_LARGE, "FQDN_SIZE_TOO_LARGE" }, - { Status::INVALID_ENDPOINT, "INVALID_ENDPOINT" }, - { Status::GOSSIP_ENDPOINTS_EXCEEDED_LIMIT, "GOSSIP_ENDPOINTS_EXCEEDED_LIMIT" } + "SCHEDULE_EXPIRATION_TIME_MUST_BE_HIGHER_THAN_CONSENSUS_TIME" }, + { Status::SCHEDULE_FUTURE_THROTTLE_EXCEEDED, "SCHEDULE_FUTURE_THROTTLE_EXCEEDED" }, + { Status::SCHEDULE_FUTURE_GAS_LIMIT_EXCEEDED, "SCHEDULE_FUTURE_GAS_LIMIT_EXCEEDED" }, + { Status::INVALID_ETHEREUM_TRANSACTION, "INVALID_ETHEREUM_TRANSACTION" }, + { Status::WRONG_CHAIN_ID, "WRONG_CHAIN_ID" }, + { Status::WRONG_NONCE, "WRONG_NONCE" }, + { Status::ACCESS_LIST_UNSUPPORTED, "ACCESS_LIST_UNSUPPORTED" }, + { Status::SCHEDULE_PENDING_EXPIRATION, "SCHEDULE_PENDING_EXPIRATION" }, + { Status::CONTRACT_IS_TOKEN_TREASURY, "CONTRACT_IS_TOKEN_TREASURY" }, + { Status::CONTRACT_HAS_NON_ZERO_TOKEN_BALANCES, "CONTRACT_HAS_NON_ZERO_TOKEN_BALANCES" }, + { Status::CONTRACT_EXPIRED_AND_PENDING_REMOVAL, "CONTRACT_EXPIRED_AND_PENDING_REMOVAL" }, + { Status::CONTRACT_HAS_NO_AUTO_RENEW_ACCOUNT, "CONTRACT_HAS_NO_AUTO_RENEW_ACCOUNT" }, + { Status::PERMANENT_REMOVAL_REQUIRES_SYSTEM_INITIATION, "PERMANENT_REMOVAL_REQUIRES_SYSTEM_INITIATION" }, + { Status::PROXY_ACCOUNT_ID_FIELD_IS_DEPRECATED, "PROXY_ACCOUNT_ID_FIELD_IS_DEPRECATED" }, + { Status::SELF_STAKING_IS_NOT_ALLOWED, "SELF_STAKING_IS_NOT_ALLOWED" }, + { Status::INVALID_STAKING_ID, "INVALID_STAKING_ID" }, + { Status::STAKING_NOT_ENABLED, "STAKING_NOT_ENABLED" }, + { Status::INVALID_PRNG_RANGE, "INVALID_PRNG_RANGE" }, + { Status::MAX_ENTITIES_IN_PRICE_REGIME_HAVE_BEEN_CREATED, "MAX_ENTITIES_IN_PRICE_REGIME_HAVE_BEEN_CREATED" }, + { Status::INVALID_FULL_PREFIX_SIGNATURE_FOR_PRECOMPILE, "INVALID_FULL_PREFIX_SIGNATURE_FOR_PRECOMPILE" }, + { Status::INSUFFICIENT_BALANCES_FOR_STORAGE_RENT, "INSUFFICIENT_BALANCES_FOR_STORAGE_RENT" }, + { Status::MAX_CHILD_RECORDS_EXCEEDED, "MAX_CHILD_RECORDS_EXCEEDED" }, + { Status::INSUFFICIENT_BALANCES_FOR_RENEWAL_FEES, "INSUFFICIENT_BALANCES_FOR_RENEWAL_FEES" }, + { Status::TRANSACTION_HAS_UNKNOWN_FIELDS, "TRANSACTION_HAS_UNKNOWN_FIELDS" }, + { Status::ACCOUNT_IS_IMMUTABLE, "ACCOUNT_IS_IMMUTABLE" }, + { Status::ALIAS_ALREADY_ASSIGNED, "ALIAS_ALREADY_ASSIGNED" }, + { Status::INVALID_METADATA_KEY, "INVALID_METADATA_KEY" }, + { Status::MISSING_TOKEN_METADATA, "MISSING_TOKEN_METADATA" }, + { Status::MISSING_SERIAL_NUMBERS, "MISSING_SERIAL_NUMBERS" }, + { Status::INVALID_MAX_AUTO_ASSOCIATIONS, "INVALID_MAX_AUTO_ASSOCIATIONS" }, + { Status::TOKEN_REFERENCE_REPEATED, "TOKEN_REFERENCE_REPEATED" }, + { Status::INVALID_OWNER_ID, "INVALID_OWNER_ID" }, + { Status::EMPTY_TOKEN_REFERENCE_LIST, "EMPTY_TOKEN_REFERENCE_LIST" }, + { Status::EMPTY_PENDING_AIRDROP_ID_LIST, "EMPTY_PENDING_AIRDROP_ID_LIST" }, + { Status::PENDING_AIRDROP_ID_REPEATED, "PENDING_AIRDROP_ID_REPEATED" }, + { Status::PENDING_AIRDROP_ID_LIST_TOO_LONG, "PENDING_AIRDROP_ID_LIST_TOO_LONG" }, + { Status::PENDING_NFT_AIRDROP_ALREADY_EXISTS, "PENDING_NFT_AIRDROP_ALREADY_EXISTS" }, + { Status::ACCOUNT_HAS_PENDING_AIRDROPS, "ACCOUNT_HAS_PENDING_AIRDROPS" }, + { Status::THROTTLED_AT_CONSENSUS, "THROTTLED_AT_CONSENSUS" }, + { Status::INVALID_PENDING_AIRDROP_ID, "INVALID_PENDING_AIRDROP_ID" }, + { Status::TOKEN_AIRDROP_WITH_FALLBACK_ROYALTY, "TOKEN_AIRDROP_WITH_FALLBACK_ROYALTY" }, + { Status::INVALID_TOKEN_IN_PENDING_AIRDROP, "INVALID_TOKEN_IN_PENDING_AIRDROP" }, + { Status::NODE_DELETED, "NODE_DELETED" }, + { Status::INVALID_NODE_ID, "INVALID_NODE_ID" }, + { Status::INVALID_GOSSIP_ENDPOINT, "INVALID_GOSSIP_ENDPOINT" }, + { Status::INVALID_NODE_ACCOUNT_ID, "INVALID_NODE_ACCOUNT_ID" }, + { Status::INVALID_NODE_DESCRIPTION, "INVALID_NODE_DESCRIPTION" }, + { Status::INVALID_SERVICE_ENDPOINT, "INVALID_SERVICE_ENDPOINT" }, + { Status::INVALID_GOSSIP_CA_CERTIFICATE, "INVALID_GOSSIP_CA_CERTIFICATE" }, + { Status::INVALID_GRPC_CERTIFICATE, "INVALID_GRPC_CERTIFICATE" }, + { Status::MAX_NODES_CREATED, "MAX_NODES_CREATED" }, + { Status::IP_FQDN_CANNOT_BE_SET_FOR_SAME_ENDPOINT, "IP_FQDN_CANNOT_BE_SET_FOR_SAME_ENDPOINT" }, + { Status::GOSSIP_ENDPOINT_CANNOT_HAVE_FQDN, "GOSSIP_ENDPOINT_CANNOT_HAVE_FQDN" }, + { Status::FQDN_SIZE_TOO_LARGE, "FQDN_SIZE_TOO_LARGE" }, + { Status::INVALID_ENDPOINT, "INVALID_ENDPOINT" }, + { Status::GOSSIP_ENDPOINTS_EXCEEDED_LIMIT, "GOSSIP_ENDPOINTS_EXCEEDED_LIMIT" } }; -} // namespace Hedera \ No newline at end of file +} // namespace Hiero \ No newline at end of file diff --git a/src/sdk/main/src/SubscriptionHandle.cc b/src/sdk/main/src/SubscriptionHandle.cc index 3f8d97b05..500d6d10c 100644 --- a/src/sdk/main/src/SubscriptionHandle.cc +++ b/src/sdk/main/src/SubscriptionHandle.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ */ #include "SubscriptionHandle.h" -namespace Hedera +namespace Hiero { //----- SubscriptionHandle::~SubscriptionHandle() @@ -39,4 +39,4 @@ void SubscriptionHandle::setOnUnsubscribe(const std::function& onUnsubsc mUnsubscribeFunc = onUnsubscribe; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/SystemDeleteTransaction.cc b/src/sdk/main/src/SystemDeleteTransaction.cc index 8ddf9d882..0824dcae7 100644 --- a/src/sdk/main/src/SystemDeleteTransaction.cc +++ b/src/sdk/main/src/SystemDeleteTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- SystemDeleteTransaction::SystemDeleteTransaction(const proto::TransactionBody& transactionBody) @@ -144,4 +144,4 @@ proto::SystemDeleteTransactionBody* SystemDeleteTransaction::build() const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/SystemUndeleteTransaction.cc b/src/sdk/main/src/SystemUndeleteTransaction.cc index 654c07651..dc1abee24 100644 --- a/src/sdk/main/src/SystemUndeleteTransaction.cc +++ b/src/sdk/main/src/SystemUndeleteTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- SystemUndeleteTransaction::SystemUndeleteTransaction(const proto::TransactionBody& transactionBody) @@ -129,4 +129,4 @@ proto::SystemUndeleteTransactionBody* SystemUndeleteTransaction::build() const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TokenAirdropTransaction.cc b/src/sdk/main/src/TokenAirdropTransaction.cc index ce5eaa05b..ce24c9398 100644 --- a/src/sdk/main/src/TokenAirdropTransaction.cc +++ b/src/sdk/main/src/TokenAirdropTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenAirdropTransaction::TokenAirdropTransaction(const proto::TransactionBody& transactionBody) @@ -312,4 +312,4 @@ void TokenAirdropTransaction::doNftTransfer(const NftId& nftId, mNftTransfers.emplace_back(nftId, sender, receiver, approved); } -} // namespace Hedera \ No newline at end of file +} // namespace Hiero \ No newline at end of file diff --git a/src/sdk/main/src/TokenAllowance.cc b/src/sdk/main/src/TokenAllowance.cc index 7177cb5ab..f5e1e40ac 100644 --- a/src/sdk/main/src/TokenAllowance.cc +++ b/src/sdk/main/src/TokenAllowance.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include -namespace Hedera +namespace Hiero { //----- TokenAllowance::TokenAllowance(const TokenId& tokenId, AccountId owner, AccountId spender, uint64_t amount) @@ -88,4 +88,4 @@ std::vector TokenAllowance::toBytes() const return internal::Utilities::stringToByteVector(toProtobuf()->SerializeAsString()); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TokenAssociateTransaction.cc b/src/sdk/main/src/TokenAssociateTransaction.cc index 8347fc7b3..83d934969 100644 --- a/src/sdk/main/src/TokenAssociateTransaction.cc +++ b/src/sdk/main/src/TokenAssociateTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenAssociateTransaction::TokenAssociateTransaction(const proto::TransactionBody& transactionBody) @@ -126,4 +126,4 @@ proto::TokenAssociateTransactionBody* TokenAssociateTransaction::build() const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TokenAssociation.cc b/src/sdk/main/src/TokenAssociation.cc index fc1bd9c3c..89fb4b0a5 100644 --- a/src/sdk/main/src/TokenAssociation.cc +++ b/src/sdk/main/src/TokenAssociation.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenAssociation TokenAssociation::fromProtobuf(const proto::TokenAssociation& proto) @@ -75,4 +75,4 @@ std::string TokenAssociation::toString() const return json.dump(); } -} // namespace Hedera \ No newline at end of file +} // namespace Hiero \ No newline at end of file diff --git a/src/sdk/main/src/TokenBurnTransaction.cc b/src/sdk/main/src/TokenBurnTransaction.cc index 33219ba96..9055bcf00 100644 --- a/src/sdk/main/src/TokenBurnTransaction.cc +++ b/src/sdk/main/src/TokenBurnTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenBurnTransaction::TokenBurnTransaction(const proto::TransactionBody& transactionBody) @@ -132,4 +132,4 @@ proto::TokenBurnTransactionBody* TokenBurnTransaction::build() const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TokenCancelAirdropTransaction.cc b/src/sdk/main/src/TokenCancelAirdropTransaction.cc index 382f1e729..c2f507f4c 100644 --- a/src/sdk/main/src/TokenCancelAirdropTransaction.cc +++ b/src/sdk/main/src/TokenCancelAirdropTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenCancelAirdropTransaction::TokenCancelAirdropTransaction(const proto::TransactionBody& transactionBody) @@ -104,4 +104,4 @@ proto::TokenCancelAirdropTransactionBody* TokenCancelAirdropTransaction::build() return body.release(); } -} // namespace Hedera \ No newline at end of file +} // namespace Hiero \ No newline at end of file diff --git a/src/sdk/main/src/TokenClaimAirdropTransaction.cc b/src/sdk/main/src/TokenClaimAirdropTransaction.cc index efed06f1b..3c3e83bdb 100644 --- a/src/sdk/main/src/TokenClaimAirdropTransaction.cc +++ b/src/sdk/main/src/TokenClaimAirdropTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenClaimAirdropTransaction::TokenClaimAirdropTransaction(const proto::TransactionBody& transactionBody) @@ -104,4 +104,4 @@ proto::TokenClaimAirdropTransactionBody* TokenClaimAirdropTransaction::build() c return body.release(); } -} // namespace Hedera \ No newline at end of file +} // namespace Hiero \ No newline at end of file diff --git a/src/sdk/main/src/TokenCreateTransaction.cc b/src/sdk/main/src/TokenCreateTransaction.cc index b313cab02..8df4257da 100644 --- a/src/sdk/main/src/TokenCreateTransaction.cc +++ b/src/sdk/main/src/TokenCreateTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenCreateTransaction::TokenCreateTransaction() @@ -443,4 +443,4 @@ proto::TokenCreateTransactionBody* TokenCreateTransaction::build() const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TokenDeleteTransaction.cc b/src/sdk/main/src/TokenDeleteTransaction.cc index becc81018..ca18cd99e 100644 --- a/src/sdk/main/src/TokenDeleteTransaction.cc +++ b/src/sdk/main/src/TokenDeleteTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenDeleteTransaction::TokenDeleteTransaction(const proto::TransactionBody& transactionBody) @@ -105,4 +105,4 @@ proto::TokenDeleteTransactionBody* TokenDeleteTransaction::build() const return body.release(); } -} // namespace Hedera \ No newline at end of file +} // namespace Hiero \ No newline at end of file diff --git a/src/sdk/main/src/TokenDissociateTransaction.cc b/src/sdk/main/src/TokenDissociateTransaction.cc index 5927a27df..0541e16b7 100644 --- a/src/sdk/main/src/TokenDissociateTransaction.cc +++ b/src/sdk/main/src/TokenDissociateTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenDissociateTransaction::TokenDissociateTransaction(const proto::TransactionBody& transactionBody) @@ -126,4 +126,4 @@ proto::TokenDissociateTransactionBody* TokenDissociateTransaction::build() const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TokenFeeScheduleUpdateTransaction.cc b/src/sdk/main/src/TokenFeeScheduleUpdateTransaction.cc index ad4ba212e..432e5d0bd 100644 --- a/src/sdk/main/src/TokenFeeScheduleUpdateTransaction.cc +++ b/src/sdk/main/src/TokenFeeScheduleUpdateTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenFeeScheduleUpdateTransaction::TokenFeeScheduleUpdateTransaction(const proto::TransactionBody& transactionBody) @@ -126,4 +126,4 @@ proto::TokenFeeScheduleUpdateTransactionBody* TokenFeeScheduleUpdateTransaction: return body.release(); } -} // namespace Hedera \ No newline at end of file +} // namespace Hiero \ No newline at end of file diff --git a/src/sdk/main/src/TokenFreezeTransaction.cc b/src/sdk/main/src/TokenFreezeTransaction.cc index 101a6a2f3..df56f888f 100644 --- a/src/sdk/main/src/TokenFreezeTransaction.cc +++ b/src/sdk/main/src/TokenFreezeTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenFreezeTransaction::TokenFreezeTransaction(const proto::TransactionBody& transactionBody) @@ -121,4 +121,4 @@ proto::TokenFreezeAccountTransactionBody* TokenFreezeTransaction::build() const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TokenGrantKycTransaction.cc b/src/sdk/main/src/TokenGrantKycTransaction.cc index 915df544c..9702e971e 100644 --- a/src/sdk/main/src/TokenGrantKycTransaction.cc +++ b/src/sdk/main/src/TokenGrantKycTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenGrantKycTransaction::TokenGrantKycTransaction(const proto::TransactionBody& transactionBody) @@ -121,4 +121,4 @@ proto::TokenGrantKycTransactionBody* TokenGrantKycTransaction::build() const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TokenId.cc b/src/sdk/main/src/TokenId.cc index de931da38..36819ba66 100644 --- a/src/sdk/main/src/TokenId.cc +++ b/src/sdk/main/src/TokenId.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenId::TokenId(uint64_t num) @@ -131,4 +131,4 @@ std::vector TokenId::toBytes() const return internal::Utilities::stringToByteVector(toProtobuf()->SerializeAsString()); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TokenInfo.cc b/src/sdk/main/src/TokenInfo.cc index 08cdd69b3..f8e1175a4 100644 --- a/src/sdk/main/src/TokenInfo.cc +++ b/src/sdk/main/src/TokenInfo.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenInfo TokenInfo::fromProtobuf(const proto::TokenInfo& proto) @@ -318,4 +318,4 @@ std::ostream& operator<<(std::ostream& os, const TokenInfo& info) return os; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TokenInfoQuery.cc b/src/sdk/main/src/TokenInfoQuery.cc index 13ea2e152..82083d5fd 100644 --- a/src/sdk/main/src/TokenInfoQuery.cc +++ b/src/sdk/main/src/TokenInfoQuery.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenInfoQuery& TokenInfoQuery::setTokenId(const TokenId& tokenId) @@ -75,4 +75,4 @@ proto::ResponseHeader TokenInfoQuery::mapResponseHeader(const proto::Response& r return response.tokengetinfo().header(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TokenKeyValidation.cc b/src/sdk/main/src/TokenKeyValidation.cc index ebcaebf28..969bde2ea 100644 --- a/src/sdk/main/src/TokenKeyValidation.cc +++ b/src/sdk/main/src/TokenKeyValidation.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -21,25 +21,25 @@ #include -namespace Hedera +namespace Hiero { //----- const std::unordered_map gProtobufTokenKeyValidationToTokenKeyValidation = { - {proto::TokenKeyValidation::FULL_VALIDATION, TokenKeyValidation::FULL_VALIDATION}, - { proto::TokenKeyValidation::NO_VALIDATION, TokenKeyValidation::NO_VALIDATION } + { proto::TokenKeyValidation::FULL_VALIDATION, TokenKeyValidation::FULL_VALIDATION }, + { proto::TokenKeyValidation::NO_VALIDATION, TokenKeyValidation::NO_VALIDATION } }; //----- const std::unordered_map gTokenKeyValidationToProtobufTokenKeyValidation = { - {TokenKeyValidation::FULL_VALIDATION, proto::TokenKeyValidation::FULL_VALIDATION}, - { TokenKeyValidation::NO_VALIDATION, proto::TokenKeyValidation::NO_VALIDATION } + { TokenKeyValidation::FULL_VALIDATION, proto::TokenKeyValidation::FULL_VALIDATION }, + { TokenKeyValidation::NO_VALIDATION, proto::TokenKeyValidation::NO_VALIDATION } }; //----- const std::unordered_map gTokenKeyValidationToString = { - {TokenKeyValidation::FULL_VALIDATION, "FULL_VALIDATION"}, - { TokenKeyValidation::NO_VALIDATION, "NO_VALIDATION" } + { TokenKeyValidation::FULL_VALIDATION, "FULL_VALIDATION" }, + { TokenKeyValidation::NO_VALIDATION, "NO_VALIDATION" } }; -} // namespace Hedera \ No newline at end of file +} // namespace Hiero \ No newline at end of file diff --git a/src/sdk/main/src/TokenMintTransaction.cc b/src/sdk/main/src/TokenMintTransaction.cc index 330406216..de99d56c2 100644 --- a/src/sdk/main/src/TokenMintTransaction.cc +++ b/src/sdk/main/src/TokenMintTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenMintTransaction::TokenMintTransaction(const proto::TransactionBody& transactionBody) @@ -142,4 +142,4 @@ proto::TokenMintTransactionBody* TokenMintTransaction::build() const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TokenNftAllowance.cc b/src/sdk/main/src/TokenNftAllowance.cc index 9fe395086..fc644af44 100644 --- a/src/sdk/main/src/TokenNftAllowance.cc +++ b/src/sdk/main/src/TokenNftAllowance.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenNftAllowance::TokenNftAllowance(const std::optional& tokenId, @@ -175,4 +175,4 @@ std::vector TokenNftAllowance::toBytes() const return internal::Utilities::stringToByteVector(toProtobuf()->SerializeAsString()); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TokenNftInfo.cc b/src/sdk/main/src/TokenNftInfo.cc index 72211290b..c3e1bcaf0 100644 --- a/src/sdk/main/src/TokenNftInfo.cc +++ b/src/sdk/main/src/TokenNftInfo.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenNftInfo TokenNftInfo::fromProtobuf(const proto::TokenNftInfo& proto) @@ -115,4 +115,4 @@ std::ostream& operator<<(std::ostream& os, const TokenNftInfo& info) return os; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TokenNftInfoQuery.cc b/src/sdk/main/src/TokenNftInfoQuery.cc index 70f8b3f7c..35507b57a 100644 --- a/src/sdk/main/src/TokenNftInfoQuery.cc +++ b/src/sdk/main/src/TokenNftInfoQuery.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenNftInfoQuery& TokenNftInfoQuery::setNftId(const NftId& nft) @@ -78,4 +78,4 @@ proto::ResponseHeader TokenNftInfoQuery::mapResponseHeader(const proto::Response return response.tokengetnftinfo().header(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TokenNftTransfer.cc b/src/sdk/main/src/TokenNftTransfer.cc index 32f66ceeb..3a085e62c 100644 --- a/src/sdk/main/src/TokenNftTransfer.cc +++ b/src/sdk/main/src/TokenNftTransfer.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenNftTransfer::TokenNftTransfer(NftId nftId, AccountId sender, AccountId receiver, bool approved) @@ -94,4 +94,4 @@ std::ostream& operator<<(std::ostream& os, const TokenNftTransfer& transfer) return os; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TokenPauseTransaction.cc b/src/sdk/main/src/TokenPauseTransaction.cc index b28104171..3d84ee51d 100644 --- a/src/sdk/main/src/TokenPauseTransaction.cc +++ b/src/sdk/main/src/TokenPauseTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenPauseTransaction::TokenPauseTransaction(const proto::TransactionBody& transactionBody) @@ -102,4 +102,4 @@ proto::TokenPauseTransactionBody* TokenPauseTransaction::build() const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TokenRejectFlow.cc b/src/sdk/main/src/TokenRejectFlow.cc index a80da84b0..4148a464c 100644 --- a/src/sdk/main/src/TokenRejectFlow.cc +++ b/src/sdk/main/src/TokenRejectFlow.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ #include "TransactionReceipt.h" #include "exceptions/UninitializedException.h" -namespace Hedera +namespace Hiero { //----- TransactionResponse TokenRejectFlow::execute(const Client& client) @@ -159,4 +159,4 @@ TokenRejectFlow& TokenRejectFlow::setNfts(const std::vector& nfts) return *this; } -} // namespace Hedera \ No newline at end of file +} // namespace Hiero \ No newline at end of file diff --git a/src/sdk/main/src/TokenRejectTransaction.cc b/src/sdk/main/src/TokenRejectTransaction.cc index e385771dc..84caa19da 100644 --- a/src/sdk/main/src/TokenRejectTransaction.cc +++ b/src/sdk/main/src/TokenRejectTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenRejectTransaction::TokenRejectTransaction(const proto::TransactionBody& transactionBody) @@ -156,4 +156,4 @@ proto::TokenRejectTransactionBody* TokenRejectTransaction::build() const return body.release(); } -} // namespace Hedera \ No newline at end of file +} // namespace Hiero \ No newline at end of file diff --git a/src/sdk/main/src/TokenRelationship.cc b/src/sdk/main/src/TokenRelationship.cc index cb19968aa..d65a686e6 100644 --- a/src/sdk/main/src/TokenRelationship.cc +++ b/src/sdk/main/src/TokenRelationship.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include -using namespace Hedera; +using namespace Hiero; //----- TokenRelationship::TokenRelationship(const TokenId& tokenId, diff --git a/src/sdk/main/src/TokenRevokeKycTransaction.cc b/src/sdk/main/src/TokenRevokeKycTransaction.cc index 94a3c6495..475edfe5f 100644 --- a/src/sdk/main/src/TokenRevokeKycTransaction.cc +++ b/src/sdk/main/src/TokenRevokeKycTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenRevokeKycTransaction::TokenRevokeKycTransaction(const proto::TransactionBody& transactionBody) @@ -121,4 +121,4 @@ proto::TokenRevokeKycTransactionBody* TokenRevokeKycTransaction::build() const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TokenSupplyType.cc b/src/sdk/main/src/TokenSupplyType.cc index 8a64da6e1..9b6805fac 100644 --- a/src/sdk/main/src/TokenSupplyType.cc +++ b/src/sdk/main/src/TokenSupplyType.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -21,24 +21,24 @@ #include -namespace Hedera +namespace Hiero { //----- const std::unordered_map gProtobufTokenSupplyTypeToTokenSupplyType = { - {proto::TokenSupplyType::INFINITE, TokenSupplyType::INFINITE}, - { proto::TokenSupplyType::FINITE, TokenSupplyType::FINITE } + { proto::TokenSupplyType::INFINITE, TokenSupplyType::INFINITE }, + { proto::TokenSupplyType::FINITE, TokenSupplyType::FINITE } }; //----- const std::unordered_map gTokenSupplyTypeToProtobufTokenSupplyType = { - {TokenSupplyType::INFINITE, proto::TokenSupplyType::INFINITE}, - { TokenSupplyType::FINITE, proto::TokenSupplyType::FINITE } + { TokenSupplyType::INFINITE, proto::TokenSupplyType::INFINITE }, + { TokenSupplyType::FINITE, proto::TokenSupplyType::FINITE } }; //----- const std::unordered_map gTokenSupplyTypeToString = { - {TokenSupplyType::INFINITE, "INFINITE"}, - { TokenSupplyType::FINITE, "FINITE" } + { TokenSupplyType::INFINITE, "INFINITE" }, + { TokenSupplyType::FINITE, "FINITE" } }; -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TokenTransfer.cc b/src/sdk/main/src/TokenTransfer.cc index 6cd43fabd..46a707ba5 100644 --- a/src/sdk/main/src/TokenTransfer.cc +++ b/src/sdk/main/src/TokenTransfer.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenTransfer::TokenTransfer(TokenId tokenId, AccountId accountId, int64_t amount, bool isApproved) @@ -100,4 +100,4 @@ std::ostream& operator<<(std::ostream& os, const TokenTransfer& transfer) return os; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TokenType.cc b/src/sdk/main/src/TokenType.cc index d63d70f78..43ce4b65d 100644 --- a/src/sdk/main/src/TokenType.cc +++ b/src/sdk/main/src/TokenType.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -21,24 +21,24 @@ #include -namespace Hedera +namespace Hiero { //----- const std::unordered_map gProtobufTokenTypeToTokenType = { - {proto::TokenType::FUNGIBLE_COMMON, TokenType::FUNGIBLE_COMMON }, - { proto::TokenType::NON_FUNGIBLE_UNIQUE, TokenType::NON_FUNGIBLE_UNIQUE} + { proto::TokenType::FUNGIBLE_COMMON, TokenType::FUNGIBLE_COMMON }, + { proto::TokenType::NON_FUNGIBLE_UNIQUE, TokenType::NON_FUNGIBLE_UNIQUE } }; //----- const std::unordered_map gTokenTypeToProtobufTokenType = { - {TokenType::FUNGIBLE_COMMON, proto::TokenType::FUNGIBLE_COMMON }, - { TokenType::NON_FUNGIBLE_UNIQUE, proto::TokenType::NON_FUNGIBLE_UNIQUE} + { TokenType::FUNGIBLE_COMMON, proto::TokenType::FUNGIBLE_COMMON }, + { TokenType::NON_FUNGIBLE_UNIQUE, proto::TokenType::NON_FUNGIBLE_UNIQUE } }; //----- const std::unordered_map gTokenTypeToString = { - {TokenType::FUNGIBLE_COMMON, "FUNGIBLE_COMMON" }, - { TokenType::NON_FUNGIBLE_UNIQUE, "NON_FUNGIBLE_UNIQUE"} + { TokenType::FUNGIBLE_COMMON, "FUNGIBLE_COMMON" }, + { TokenType::NON_FUNGIBLE_UNIQUE, "NON_FUNGIBLE_UNIQUE" } }; -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TokenUnfreezeTransaction.cc b/src/sdk/main/src/TokenUnfreezeTransaction.cc index c7da7dee1..42f756c10 100644 --- a/src/sdk/main/src/TokenUnfreezeTransaction.cc +++ b/src/sdk/main/src/TokenUnfreezeTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenUnfreezeTransaction::TokenUnfreezeTransaction(const proto::TransactionBody& transactionBody) @@ -121,4 +121,4 @@ proto::TokenUnfreezeAccountTransactionBody* TokenUnfreezeTransaction::build() co return body.release(); } -} // namespace Hedera \ No newline at end of file +} // namespace Hiero \ No newline at end of file diff --git a/src/sdk/main/src/TokenUnpauseTransaction.cc b/src/sdk/main/src/TokenUnpauseTransaction.cc index 40797a63a..ba2bc61c9 100644 --- a/src/sdk/main/src/TokenUnpauseTransaction.cc +++ b/src/sdk/main/src/TokenUnpauseTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenUnpauseTransaction::TokenUnpauseTransaction(const proto::TransactionBody& transactionBody) @@ -102,4 +102,4 @@ proto::TokenUnpauseTransactionBody* TokenUnpauseTransaction::build() const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TokenUpdateNftsTransaction.cc b/src/sdk/main/src/TokenUpdateNftsTransaction.cc index 3ef48a7c1..0cc08c984 100644 --- a/src/sdk/main/src/TokenUpdateNftsTransaction.cc +++ b/src/sdk/main/src/TokenUpdateNftsTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenUpdateNftsTransaction::TokenUpdateNftsTransaction(const proto::TransactionBody& transactionBody) @@ -132,4 +132,4 @@ proto::TokenUpdateNftsTransactionBody* TokenUpdateNftsTransaction::build() const return body.release(); } -} // namespace Hedera \ No newline at end of file +} // namespace Hiero \ No newline at end of file diff --git a/src/sdk/main/src/TokenUpdateTransaction.cc b/src/sdk/main/src/TokenUpdateTransaction.cc index 7e1c46dae..81ef4c38a 100644 --- a/src/sdk/main/src/TokenUpdateTransaction.cc +++ b/src/sdk/main/src/TokenUpdateTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenUpdateTransaction::TokenUpdateTransaction(const proto::TransactionBody& transactionBody) @@ -403,4 +403,4 @@ proto::TokenUpdateTransactionBody* TokenUpdateTransaction::build() const return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TokenWipeTransaction.cc b/src/sdk/main/src/TokenWipeTransaction.cc index 70255e21a..21d28811b 100644 --- a/src/sdk/main/src/TokenWipeTransaction.cc +++ b/src/sdk/main/src/TokenWipeTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TokenWipeTransaction::TokenWipeTransaction(const proto::TransactionBody& transactionBody) @@ -151,4 +151,4 @@ proto::TokenWipeAccountTransactionBody* TokenWipeTransaction::build() const return body.release(); } -} // namespace Hedera \ No newline at end of file +} // namespace Hiero \ No newline at end of file diff --git a/src/sdk/main/src/TopicCreateTransaction.cc b/src/sdk/main/src/TopicCreateTransaction.cc index f90db21e3..a736d62dd 100644 --- a/src/sdk/main/src/TopicCreateTransaction.cc +++ b/src/sdk/main/src/TopicCreateTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TopicCreateTransaction::TopicCreateTransaction(const proto::TransactionBody& transactionBody) @@ -169,4 +169,4 @@ proto::ConsensusCreateTopicTransactionBody* TopicCreateTransaction::build() cons return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TopicDeleteTransaction.cc b/src/sdk/main/src/TopicDeleteTransaction.cc index fde1cbcf1..a214f7a6d 100644 --- a/src/sdk/main/src/TopicDeleteTransaction.cc +++ b/src/sdk/main/src/TopicDeleteTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TopicDeleteTransaction::TopicDeleteTransaction(const proto::TransactionBody& transactionBody) @@ -105,4 +105,4 @@ proto::ConsensusDeleteTopicTransactionBody* TopicDeleteTransaction::build() cons return body.release(); } -} // namespace Hedera \ No newline at end of file +} // namespace Hiero \ No newline at end of file diff --git a/src/sdk/main/src/TopicId.cc b/src/sdk/main/src/TopicId.cc index 17b32fdbb..a8d990ede 100644 --- a/src/sdk/main/src/TopicId.cc +++ b/src/sdk/main/src/TopicId.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TopicId::TopicId(uint64_t num) @@ -130,4 +130,4 @@ std::vector TopicId::toBytes() const return internal::Utilities::stringToByteVector(toProtobuf()->SerializeAsString()); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TopicInfo.cc b/src/sdk/main/src/TopicInfo.cc index 9a5dd2aa0..1c1724b39 100644 --- a/src/sdk/main/src/TopicInfo.cc +++ b/src/sdk/main/src/TopicInfo.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TopicInfo TopicInfo::fromProtobuf(const proto::ConsensusGetTopicInfoResponse& proto) @@ -166,4 +166,4 @@ std::ostream& operator<<(std::ostream& os, const TopicInfo& info) return os; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TopicInfoQuery.cc b/src/sdk/main/src/TopicInfoQuery.cc index 65ef85ef6..f32d35193 100644 --- a/src/sdk/main/src/TopicInfoQuery.cc +++ b/src/sdk/main/src/TopicInfoQuery.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TopicInfoQuery& TopicInfoQuery::setTopicId(const TopicId& topicId) @@ -78,4 +78,4 @@ proto::ResponseHeader TopicInfoQuery::mapResponseHeader(const proto::Response& r return response.consensusgettopicinfo().header(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TopicMessage.cc b/src/sdk/main/src/TopicMessage.cc index f83f4e918..7cda57640 100644 --- a/src/sdk/main/src/TopicMessage.cc +++ b/src/sdk/main/src/TopicMessage.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include -namespace Hedera +namespace Hiero { //----- TopicMessage::TopicMessage(const std::chrono::system_clock::time_point& lastConsensusTimestamp, @@ -83,4 +83,4 @@ TopicMessage TopicMessage::ofMany(const std::vector -namespace Hedera +namespace Hiero { //----- TopicMessageChunk::TopicMessageChunk(const com::hedera::mirror::api::proto::ConsensusTopicResponse& proto) @@ -34,4 +34,4 @@ TopicMessageChunk::TopicMessageChunk(const com::hedera::mirror::api::proto::Cons { } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TopicMessageQuery.cc b/src/sdk/main/src/TopicMessageQuery.cc index 14ab7dd21..25451bc5a 100644 --- a/src/sdk/main/src/TopicMessageQuery.cc +++ b/src/sdk/main/src/TopicMessageQuery.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -34,7 +34,7 @@ #include #include -namespace Hedera +namespace Hiero { namespace { @@ -469,4 +469,4 @@ std::chrono::system_clock::duration TopicMessageQuery::getMaxBackoff() const return mImpl->mMaxBackoff; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TopicMessageSubmitTransaction.cc b/src/sdk/main/src/TopicMessageSubmitTransaction.cc index 543b081e1..000868668 100644 --- a/src/sdk/main/src/TopicMessageSubmitTransaction.cc +++ b/src/sdk/main/src/TopicMessageSubmitTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TopicMessageSubmitTransaction::TopicMessageSubmitTransaction(const proto::TransactionBody& transactionBody) @@ -162,4 +162,4 @@ proto::ConsensusSubmitMessageTransactionBody* TopicMessageSubmitTransaction::bui return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TopicUpdateTransaction.cc b/src/sdk/main/src/TopicUpdateTransaction.cc index 7df3747a1..dd5bf791f 100644 --- a/src/sdk/main/src/TopicUpdateTransaction.cc +++ b/src/sdk/main/src/TopicUpdateTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TopicUpdateTransaction::TopicUpdateTransaction(const proto::TransactionBody& transactionBody) @@ -250,4 +250,4 @@ proto::ConsensusUpdateTopicTransactionBody* TopicUpdateTransaction::build() cons return body.release(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/Transaction.cc b/src/sdk/main/src/Transaction.cc index 74c75810f..b5b71e7dd 100644 --- a/src/sdk/main/src/Transaction.cc +++ b/src/sdk/main/src/Transaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -90,7 +90,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- template @@ -1332,4 +1332,4 @@ template class Transaction; template class Transaction; template class Transaction; -} // namespace Hedera \ No newline at end of file +} // namespace Hiero \ No newline at end of file diff --git a/src/sdk/main/src/TransactionFeeSchedule.cc b/src/sdk/main/src/TransactionFeeSchedule.cc index 07516ee60..7b35ef5cd 100644 --- a/src/sdk/main/src/TransactionFeeSchedule.cc +++ b/src/sdk/main/src/TransactionFeeSchedule.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include "nlohmann/json.hpp" #include -namespace Hedera +namespace Hiero { //----- TransactionFeeSchedule TransactionFeeSchedule::fromProtobuf(const proto::TransactionFeeSchedule& proto) @@ -73,4 +73,4 @@ std::string TransactionFeeSchedule::toString() const return json.dump(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TransactionId.cc b/src/sdk/main/src/TransactionId.cc index fd748d4ab..895302c75 100644 --- a/src/sdk/main/src/TransactionId.cc +++ b/src/sdk/main/src/TransactionId.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include -namespace Hedera +namespace Hiero { //----- TransactionId TransactionId::withValidStart(const AccountId& accountId, @@ -364,7 +364,7 @@ TransactionId& TransactionId::setNonce(int nonce) } //----- -TransactionId::TransactionId(Hedera::AccountId accountId, const std::chrono::system_clock::time_point& validStartTime) +TransactionId::TransactionId(Hiero::AccountId accountId, const std::chrono::system_clock::time_point& validStartTime) : mAccountId(std::move(accountId)) , mValidTransactionTime(validStartTime) { @@ -377,4 +377,4 @@ std::string TransactionId::getTimestampScheduleNonceString() const (mNonce != 0 ? ('/' + std::to_string(mNonce)) : ""); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TransactionReceipt.cc b/src/sdk/main/src/TransactionReceipt.cc index 550764a9a..ef54fdea8 100644 --- a/src/sdk/main/src/TransactionReceipt.cc +++ b/src/sdk/main/src/TransactionReceipt.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TransactionReceipt TransactionReceipt::fromProtobuf(const proto::TransactionGetReceiptResponse& proto, @@ -309,4 +309,4 @@ void TransactionReceipt::validateStatus() const } } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TransactionReceiptQuery.cc b/src/sdk/main/src/TransactionReceiptQuery.cc index ccba50255..5e244f5b1 100644 --- a/src/sdk/main/src/TransactionReceiptQuery.cc +++ b/src/sdk/main/src/TransactionReceiptQuery.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TransactionReceiptQuery& TransactionReceiptQuery::setTransactionId(const TransactionId& transactionId) @@ -141,4 +141,4 @@ proto::ResponseHeader TransactionReceiptQuery::mapResponseHeader(const proto::Re return response.transactiongetreceipt().header(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TransactionRecord.cc b/src/sdk/main/src/TransactionRecord.cc index 57771b0ab..cafe7e8c5 100644 --- a/src/sdk/main/src/TransactionRecord.cc +++ b/src/sdk/main/src/TransactionRecord.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TransactionRecord TransactionRecord::fromProtobuf(const proto::TransactionGetRecordResponse& proto) @@ -437,4 +437,4 @@ std::ostream& operator<<(std::ostream& os, const TransactionRecord& record) return os; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TransactionRecordQuery.cc b/src/sdk/main/src/TransactionRecordQuery.cc index 6546227db..69cbc1b1a 100644 --- a/src/sdk/main/src/TransactionRecordQuery.cc +++ b/src/sdk/main/src/TransactionRecordQuery.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include -namespace Hedera +namespace Hiero { //----- TransactionRecordQuery& TransactionRecordQuery::setTransactionId(const TransactionId& transactionId) @@ -145,4 +145,4 @@ proto::ResponseHeader TransactionRecordQuery::mapResponseHeader(const proto::Res return response.transactiongetrecord().header(); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TransactionResponse.cc b/src/sdk/main/src/TransactionResponse.cc index 80716aa9e..e7b5e1205 100644 --- a/src/sdk/main/src/TransactionResponse.cc +++ b/src/sdk/main/src/TransactionResponse.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ #include -namespace Hedera +namespace Hiero { //----- TransactionResponse::TransactionResponse(AccountId nodeId, TransactionId transactionId, std::vector hash) @@ -242,4 +242,4 @@ TransactionResponse& TransactionResponse::setValidateStatus(bool validate) return *this; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/TransferTransaction.cc b/src/sdk/main/src/TransferTransaction.cc index 9477bc006..8fc49b47c 100644 --- a/src/sdk/main/src/TransferTransaction.cc +++ b/src/sdk/main/src/TransferTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- TransferTransaction::TransferTransaction(const proto::TransactionBody& transactionBody) @@ -392,4 +392,4 @@ void TransferTransaction::doNftTransfer(const NftId& nftId, mNftTransfers.emplace_back(nftId, sender, receiver, approved); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/WrappedTransaction.cc b/src/sdk/main/src/WrappedTransaction.cc index da4c541e5..8f5b69d6a 100644 --- a/src/sdk/main/src/WrappedTransaction.cc +++ b/src/sdk/main/src/WrappedTransaction.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -namespace Hedera +namespace Hiero { //----- WrappedTransaction::WrappedTransaction(AnyPossibleTransaction transaction) @@ -960,4 +960,4 @@ WrappedTransaction& WrappedTransaction::setTransaction(const AnyPossibleTransact return *this; } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/impl/ASN1ECKey.cc b/src/sdk/main/src/impl/ASN1ECKey.cc index 06bb7ddd0..c6fa734b9 100644 --- a/src/sdk/main/src/impl/ASN1ECKey.cc +++ b/src/sdk/main/src/impl/ASN1ECKey.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include "impl/ASN1ECKey.h" #include "impl/HexConverter.h" -namespace Hedera::internal::asn1 +namespace Hiero::internal::asn1 { void ASN1ECKey::decode(const std::vector& bytes) { @@ -58,4 +58,4 @@ const std::vector ASN1ECKey::get(const std::byte tag) const throw BadKeyException("Data not decoded properly for input PEM/DER EC KEY bytes!"); } -} // namespace Hedera::internal:asn1 +} // namespace Hiero::internal:asn1 diff --git a/src/sdk/main/src/impl/ASN1ECPrivateKey.cc b/src/sdk/main/src/impl/ASN1ECPrivateKey.cc index 95c180740..56bed4e55 100644 --- a/src/sdk/main/src/impl/ASN1ECPrivateKey.cc +++ b/src/sdk/main/src/impl/ASN1ECPrivateKey.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include "impl/ASN1ECPrivateKey.h" #include "impl/HexConverter.h" -namespace Hedera::internal::asn1 +namespace Hiero::internal::asn1 { ASN1ECPrivateKey::ASN1ECPrivateKey(const std::vector& bytes) { @@ -52,4 +52,4 @@ std::vector ASN1ECPrivateKey::getKey() const return privateKey; } -} // namespace Hedera::internal:asn1 +} // namespace Hiero::internal:asn1 diff --git a/src/sdk/main/src/impl/ASN1ECPublicKey.cc b/src/sdk/main/src/impl/ASN1ECPublicKey.cc index c3a2af41d..ffe0a7b18 100644 --- a/src/sdk/main/src/impl/ASN1ECPublicKey.cc +++ b/src/sdk/main/src/impl/ASN1ECPublicKey.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ #include -namespace Hedera::internal::asn1 +namespace Hiero::internal::asn1 { ASN1ECPublicKey::ASN1ECPublicKey(const std::vector& bytes) { @@ -63,7 +63,7 @@ void ASN1ECPublicKey::populateXYcoords() BN_hex2bn(&yCoordBN, internal::HexConverter::bytesToHex(ecYcoord).c_str()); // if y even pad 0x02 byte else 0x03 ecXcoord = internal::Utilities::concatenateVectors({ - // get x coordinate + // get x coordinate { std::byte(0x00) }, { !BN_is_bit_set(yCoordBN, 0) ? std::byte(0x02) : std::byte(0x03) }, { publicKey.begin() + 2, publicKey.end() - EC_KEY_LENGTH } @@ -78,4 +78,4 @@ void ASN1ECPublicKey::populateXYcoords() } } -} // namespace Hedera::internal:asn1 +} // namespace Hiero::internal:asn1 diff --git a/src/sdk/main/src/impl/ASN1ED25519PrivateKey.cc b/src/sdk/main/src/impl/ASN1ED25519PrivateKey.cc index e1ed288f4..810532fe7 100644 --- a/src/sdk/main/src/impl/ASN1ED25519PrivateKey.cc +++ b/src/sdk/main/src/impl/ASN1ED25519PrivateKey.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include "impl/ASN1ED25519PrivateKey.h" #include "impl/HexConverter.h" -namespace Hedera::internal::asn1 +namespace Hiero::internal::asn1 { ASN1ED25519PrivateKey::ASN1ED25519PrivateKey(const std::vector& bytes) { @@ -52,4 +52,4 @@ std::vector ASN1ED25519PrivateKey::getKey() const return privateKey; } -} // namespace Hedera::internal:asn1 +} // namespace Hiero::internal:asn1 diff --git a/src/sdk/main/src/impl/ASN1ED25519PublicKey.cc b/src/sdk/main/src/impl/ASN1ED25519PublicKey.cc index ff509c790..2ec16ddbc 100644 --- a/src/sdk/main/src/impl/ASN1ED25519PublicKey.cc +++ b/src/sdk/main/src/impl/ASN1ED25519PublicKey.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include "impl/ASN1ED25519PublicKey.h" #include "impl/HexConverter.h" -namespace Hedera::internal::asn1 +namespace Hiero::internal::asn1 { ASN1ED25519PublicKey::ASN1ED25519PublicKey(const std::vector& bytes) { @@ -52,4 +52,4 @@ std::vector ASN1ED25519PublicKey::getKey() const return publicKey; } -} // namespace Hedera::internal:asn1 +} // namespace Hiero::internal:asn1 diff --git a/src/sdk/main/src/impl/BaseNetwork.cc b/src/sdk/main/src/impl/BaseNetwork.cc index f4f9421db..71e213256 100644 --- a/src/sdk/main/src/impl/BaseNetwork.cc +++ b/src/sdk/main/src/impl/BaseNetwork.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -namespace Hedera::internal +namespace Hiero::internal { //----- template @@ -320,4 +320,4 @@ void BaseNetwork::removeNodeFromNetwork(const st template class BaseNetwork; template class BaseNetwork; -} // namespace Hedera::internal +} // namespace Hiero::internal diff --git a/src/sdk/main/src/impl/BaseNode.cc b/src/sdk/main/src/impl/BaseNode.cc index 7ad225535..3ecbd610d 100644 --- a/src/sdk/main/src/impl/BaseNode.cc +++ b/src/sdk/main/src/impl/BaseNode.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ #include #include -namespace Hedera::internal +namespace Hiero::internal { //----- template @@ -190,4 +190,4 @@ void BaseNode::closeChannel() template class BaseNode; template class BaseNode; -} // namespace Hedera::internal +} // namespace Hiero::internal diff --git a/src/sdk/main/src/impl/BaseNodeAddress.cc b/src/sdk/main/src/impl/BaseNodeAddress.cc index 9b6d8c0bd..3d1a53b58 100644 --- a/src/sdk/main/src/impl/BaseNodeAddress.cc +++ b/src/sdk/main/src/impl/BaseNodeAddress.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -namespace Hedera::internal +namespace Hiero::internal { //----- BaseNodeAddress::BaseNodeAddress(std::string_view name, std::string_view address, unsigned int port) @@ -86,4 +86,4 @@ std::string BaseNodeAddress::toString() const return (!mName.empty()) ? "in-process:" + mName : mAddress + ':' + std::to_string(mPort); } -} // namespace Hedera::internal +} // namespace Hiero::internal diff --git a/src/sdk/main/src/impl/DerivationPathUtils.cc b/src/sdk/main/src/impl/DerivationPathUtils.cc index c277eee3d..32989a55c 100644 --- a/src/sdk/main/src/impl/DerivationPathUtils.cc +++ b/src/sdk/main/src/impl/DerivationPathUtils.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include #include -namespace Hedera::internal::DerivationPathUtils +namespace Hiero::internal::DerivationPathUtils { //----- bool isHardenedChildIndex(uint32_t index) diff --git a/src/sdk/main/src/impl/DurationConverter.cc b/src/sdk/main/src/impl/DurationConverter.cc index 1db65f94d..adebf8018 100644 --- a/src/sdk/main/src/impl/DurationConverter.cc +++ b/src/sdk/main/src/impl/DurationConverter.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ #include -namespace Hedera::internal::DurationConverter +namespace Hiero::internal::DurationConverter { //---- std::chrono::seconds fromProtobuf(const proto::Duration& duration) @@ -37,4 +37,4 @@ proto::Duration* toProtobuf(const std::chrono::system_clock::duration& duration) return proto.release(); } -} // namespace Hedera::internal::DurationConverter +} // namespace Hiero::internal::DurationConverter diff --git a/src/sdk/main/src/impl/EntityIdHelper.cc b/src/sdk/main/src/impl/EntityIdHelper.cc index b850017ca..c4c3cdf2d 100644 --- a/src/sdk/main/src/impl/EntityIdHelper.cc +++ b/src/sdk/main/src/impl/EntityIdHelper.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ #include #include -namespace Hedera::internal::EntityIdHelper +namespace Hiero::internal::EntityIdHelper { //----- template @@ -125,7 +125,7 @@ std::string checksum(std::string_view address, const LedgerId& ledgerId) // Step 2: Construct a byte array containing the ledger ID, followed by six zero bytes. const std::vector ledgerIdArray = Utilities::concatenateVectors({ ledgerId.toBytes(), - {std::byte(0x0), std::byte(0x0), std::byte(0x0), std::byte(0x0), std::byte(0x0), std::byte(0x0)} + { std::byte(0x0), std::byte(0x0), std::byte(0x0), std::byte(0x0), std::byte(0x0), std::byte(0x0) } }); // Step 3: Get the weighted sum of all the digits, modded by p3. Also get the sums of the digits in the array of @@ -282,4 +282,4 @@ template TokenId fromSolidityAddress (const std:: template TopicId fromSolidityAddress (const std::vector&); // clang-format on -} // namespace Hedera::internal::EntityIdHelper +} // namespace Hiero::internal::EntityIdHelper diff --git a/src/sdk/main/src/impl/HederaCertificateVerifier.cc b/src/sdk/main/src/impl/HederaCertificateVerifier.cc index f23534f1b..d57905dd2 100644 --- a/src/sdk/main/src/impl/HederaCertificateVerifier.cc +++ b/src/sdk/main/src/impl/HederaCertificateVerifier.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include -namespace Hedera::internal +namespace Hiero::internal { //----- HederaCertificateVerifier::HederaCertificateVerifier(std::vector certificateHash) @@ -53,4 +53,4 @@ bool HederaCertificateVerifier::Verify(grpc::experimental::TlsCustomVerification return true; } -} // namespace Hedera::internal +} // namespace Hiero::internal diff --git a/src/sdk/main/src/impl/HexConverter.cc b/src/sdk/main/src/impl/HexConverter.cc index 2e0526e18..aa039488e 100644 --- a/src/sdk/main/src/impl/HexConverter.cc +++ b/src/sdk/main/src/impl/HexConverter.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ #include -namespace Hedera::internal::HexConverter +namespace Hiero::internal::HexConverter { //----- std::string bytesToHex(const std::vector& bytes) @@ -107,4 +107,4 @@ std::string base64ToHex(std::string_view base64) return hexString; } -} // namespace Hedera::internal::HexConverter +} // namespace Hiero::internal::HexConverter diff --git a/src/sdk/main/src/impl/HttpClient.cc b/src/sdk/main/src/impl/HttpClient.cc index 61a244691..413dba644 100644 --- a/src/sdk/main/src/impl/HttpClient.cc +++ b/src/sdk/main/src/impl/HttpClient.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -namespace Hedera::internal +namespace Hiero::internal { namespace { @@ -91,4 +91,4 @@ std::string HttpClient::invokeREST(std::string_view url, std::string_view httpMe //----- -} // namespace Hedera::internal \ No newline at end of file +} // namespace Hiero::internal \ No newline at end of file diff --git a/src/sdk/main/src/impl/MirrorNetwork.cc b/src/sdk/main/src/impl/MirrorNetwork.cc index f5963f0a7..f7c222e7c 100644 --- a/src/sdk/main/src/impl/MirrorNetwork.cc +++ b/src/sdk/main/src/impl/MirrorNetwork.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ #include "impl/MirrorNode.h" #include "impl/Utilities.h" -namespace Hedera::internal +namespace Hiero::internal { //----- MirrorNetwork MirrorNetwork::forMainnet() @@ -104,4 +104,4 @@ std::shared_ptr MirrorNetwork::createNodeFromNetworkEntry(std::strin return std::make_shared(address); } -} // namespace Hedera::internal +} // namespace Hiero::internal diff --git a/src/sdk/main/src/impl/MirrorNode.cc b/src/sdk/main/src/impl/MirrorNode.cc index acf0894e6..a8bfa1998 100644 --- a/src/sdk/main/src/impl/MirrorNode.cc +++ b/src/sdk/main/src/impl/MirrorNode.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -20,7 +20,7 @@ #include "impl/MirrorNode.h" #include "impl/BaseNodeAddress.h" -namespace Hedera::internal +namespace Hiero::internal { //----- MirrorNode::MirrorNode(const BaseNodeAddress& address) @@ -55,4 +55,4 @@ void MirrorNode::closeStubs() mNetworkStub = nullptr; } -} // namespace Hedera::internal +} // namespace Hiero::internal diff --git a/src/sdk/main/src/impl/MirrorNodeGateway.cc b/src/sdk/main/src/impl/MirrorNodeGateway.cc index b8f056059..644b60571 100644 --- a/src/sdk/main/src/impl/MirrorNodeGateway.cc +++ b/src/sdk/main/src/impl/MirrorNodeGateway.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2023 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2023 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ using json = nlohmann::json; -namespace Hedera::internal::MirrorNodeGateway +namespace Hiero::internal::MirrorNodeGateway { //----- json MirrorNodeQuery(std::string_view mirrorNodeUrl, const std::vector& params, std::string_view queryType) diff --git a/src/sdk/main/src/impl/MirrorNodeRouter.cc b/src/sdk/main/src/impl/MirrorNodeRouter.cc index 75777a088..a215677cd 100644 --- a/src/sdk/main/src/impl/MirrorNodeRouter.cc +++ b/src/sdk/main/src/impl/MirrorNodeRouter.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2023 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2023 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include #include -namespace Hedera::internal::MirrorNodeGateway +namespace Hiero::internal::MirrorNodeGateway { //----- std::string MirrorNodeRouter::getRoute(std::string_view queryType) const @@ -41,4 +41,4 @@ std::string MirrorNodeRouter::getRoute(std::string_view queryType) const } return queryRoute; } -} // namespace Hedera::internal::MirrorNodeGateway \ No newline at end of file +} // namespace Hiero::internal::MirrorNodeGateway \ No newline at end of file diff --git a/src/sdk/main/src/impl/Network.cc b/src/sdk/main/src/impl/Network.cc index 18c24c1cd..ce22d0bb4 100644 --- a/src/sdk/main/src/impl/Network.cc +++ b/src/sdk/main/src/impl/Network.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -namespace Hedera::internal +namespace Hiero::internal { //----- Network Network::forMainnet() @@ -195,7 +195,7 @@ Network Network::getNetworkForLedgerId(const LedgerId& ledgerId) //----- NodeAddressBook Network::getAddressBookForLedgerId(const LedgerId& ledgerId) { - // The address book can only be fetched for known Hedera networks. + // The address book can only be fetched for known Hiero networks. if (!ledgerId.isKnownNetwork()) { return {}; @@ -247,4 +247,4 @@ Network& Network::setLedgerIdInternal(const LedgerId& ledgerId, const NodeAddres return *this; } -} // namespace Hedera::internal \ No newline at end of file +} // namespace Hiero::internal \ No newline at end of file diff --git a/src/sdk/main/src/impl/Node.cc b/src/sdk/main/src/impl/Node.cc index eebd8827c..62aaf7cdf 100644 --- a/src/sdk/main/src/impl/Node.cc +++ b/src/sdk/main/src/impl/Node.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include #include -namespace Hedera::internal +namespace Hiero::internal { //----- Node::Node(AccountId accountId, const BaseNodeAddress& address) @@ -307,4 +307,4 @@ void Node::closeStubs() mAddressBookStub = nullptr; } -} // namespace Hedera::internal +} // namespace Hiero::internal diff --git a/src/sdk/main/src/impl/OpenSSLUtils.cc b/src/sdk/main/src/impl/OpenSSLUtils.cc index 272575e51..1b12e7982 100644 --- a/src/sdk/main/src/impl/OpenSSLUtils.cc +++ b/src/sdk/main/src/impl/OpenSSLUtils.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ #include #include -namespace Hedera::internal::OpenSSLUtils +namespace Hiero::internal::OpenSSLUtils { //----- std::vector computeSHA256(const std::vector& data) @@ -165,4 +165,4 @@ std::vector getRandomBytes(int count) return randomBytes; } -} // namespace Hedera::internal::OpenSSLUtils +} // namespace Hiero::internal::OpenSSLUtils diff --git a/src/sdk/main/src/impl/RLPItem.cc b/src/sdk/main/src/impl/RLPItem.cc index 618339100..99efa458f 100644 --- a/src/sdk/main/src/impl/RLPItem.cc +++ b/src/sdk/main/src/impl/RLPItem.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include #include -namespace Hedera +namespace Hiero { std::vector RLPItem::encodeBinary(size_t num) @@ -263,4 +263,4 @@ void RLPItem::decodeBytes(const std::vector& bytes, long& index) } } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/main/src/impl/TimestampConverter.cc b/src/sdk/main/src/impl/TimestampConverter.cc index 09e4006ec..b54d932ac 100644 --- a/src/sdk/main/src/impl/TimestampConverter.cc +++ b/src/sdk/main/src/impl/TimestampConverter.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ #include -namespace Hedera::internal::TimestampConverter +namespace Hiero::internal::TimestampConverter { //----- std::chrono::system_clock::time_point fromProtobuf(const proto::Timestamp& timestamp) @@ -66,4 +66,4 @@ std::string toString(const std::chrono::system_clock::time_point& timestamp) std::chrono::duration_cast(durationSinceEpoch - secondsSinceEpoch).count()); } -} // namespace Hedera::internal::TimestampConverter +} // namespace Hiero::internal::TimestampConverter diff --git a/src/sdk/main/src/impl/Utilities.cc b/src/sdk/main/src/impl/Utilities.cc index 6d8d8b697..19638bfc8 100644 --- a/src/sdk/main/src/impl/Utilities.cc +++ b/src/sdk/main/src/impl/Utilities.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ using json = nlohmann::json; -namespace Hedera::internal::Utilities +namespace Hiero::internal::Utilities { //----- bool isPrefixOf(const std::vector& bytes, const std::vector& prefix) @@ -129,4 +129,4 @@ json fromConfigFile(std::string_view path) return jsonObj; } -} // namespace Hedera::internal::Utilities +} // namespace Hiero::internal::Utilities diff --git a/src/sdk/tests/integration/AccountAllowanceApproveTransactionIntegrationTests.cc b/src/sdk/tests/integration/AccountAllowanceApproveTransactionIntegrationTests.cc index f7348f84c..24153f785 100644 --- a/src/sdk/tests/integration/AccountAllowanceApproveTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/AccountAllowanceApproveTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -33,7 +33,7 @@ #include -using namespace Hedera; +using namespace Hiero; class AccountAllowanceApproveTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/AccountBalanceQueryIntegrationTests.cc b/src/sdk/tests/integration/AccountBalanceQueryIntegrationTests.cc index 31fe0dbbc..85a43b3a0 100644 --- a/src/sdk/tests/integration/AccountBalanceQueryIntegrationTests.cc +++ b/src/sdk/tests/integration/AccountBalanceQueryIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -35,7 +35,7 @@ #include -using namespace Hedera; +using namespace Hiero; class AccountBalanceQueryIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/AccountCreateTransactionIntegrationTests.cc b/src/sdk/tests/integration/AccountCreateTransactionIntegrationTests.cc index acd22b3c0..a10d1cd12 100644 --- a/src/sdk/tests/integration/AccountCreateTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/AccountCreateTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -43,7 +43,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class AccountCreateTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/AccountDeleteTransactionIntegrationTests.cc b/src/sdk/tests/integration/AccountDeleteTransactionIntegrationTests.cc index 233f59dd9..175591bb8 100644 --- a/src/sdk/tests/integration/AccountDeleteTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/AccountDeleteTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -32,7 +32,7 @@ #include -using namespace Hedera; +using namespace Hiero; class AccountDeleteTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/AccountInfoQueryIntegrationTests.cc b/src/sdk/tests/integration/AccountInfoQueryIntegrationTests.cc index 5c8ded4e7..d881a5c5d 100644 --- a/src/sdk/tests/integration/AccountInfoQueryIntegrationTests.cc +++ b/src/sdk/tests/integration/AccountInfoQueryIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ #include -using namespace Hedera; +using namespace Hiero; class AccountInfoQueryIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/AccountRecordsQueryIntegrationTests.cc b/src/sdk/tests/integration/AccountRecordsQueryIntegrationTests.cc index d85450b46..3d5eb88f1 100644 --- a/src/sdk/tests/integration/AccountRecordsQueryIntegrationTests.cc +++ b/src/sdk/tests/integration/AccountRecordsQueryIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -35,7 +35,7 @@ #include -using namespace Hedera; +using namespace Hiero; class AccountRecordsQueryIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/AccountStakersQueryIntegrationTests.cc b/src/sdk/tests/integration/AccountStakersQueryIntegrationTests.cc index 8cbfbd0ae..4c88a4075 100644 --- a/src/sdk/tests/integration/AccountStakersQueryIntegrationTests.cc +++ b/src/sdk/tests/integration/AccountStakersQueryIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include -using namespace Hedera; +using namespace Hiero; class AccountStakersQueryIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/AccountUpdateTransactionIntegrationTests.cc b/src/sdk/tests/integration/AccountUpdateTransactionIntegrationTests.cc index 47698a138..8500c7ab4 100644 --- a/src/sdk/tests/integration/AccountUpdateTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/AccountUpdateTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -36,7 +36,7 @@ #include -using namespace Hedera; +using namespace Hiero; class AccountUpdateTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/AddressBookQueryIntegrationTests.cc b/src/sdk/tests/integration/AddressBookQueryIntegrationTests.cc index 0c0825da6..f4c8f3404 100644 --- a/src/sdk/tests/integration/AddressBookQueryIntegrationTests.cc +++ b/src/sdk/tests/integration/AddressBookQueryIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include -using namespace Hedera; +using namespace Hiero; class AddressBookQueryIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/BaseIntegrationTest.cc b/src/sdk/tests/integration/BaseIntegrationTest.cc index c97495794..cf5cc8fed 100644 --- a/src/sdk/tests/integration/BaseIntegrationTest.cc +++ b/src/sdk/tests/integration/BaseIntegrationTest.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -32,7 +32,7 @@ using json = nlohmann::json; using namespace std; -namespace Hedera +namespace Hiero { //----- void BaseIntegrationTest::SetUp() @@ -45,4 +45,4 @@ void BaseIntegrationTest::SetUp() .get()); } -} // namespace Hedera +} // namespace Hiero diff --git a/src/sdk/tests/integration/BaseIntegrationTest.h b/src/sdk/tests/integration/BaseIntegrationTest.h index a24242a3b..7d81a5e9e 100644 --- a/src/sdk/tests/integration/BaseIntegrationTest.h +++ b/src/sdk/tests/integration/BaseIntegrationTest.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ * limitations under the License. * */ -#ifndef HEDERA_SDK_CPP_BASE_INTEGRATION_TEST_H_ -#define HEDERA_SDK_CPP_BASE_INTEGRATION_TEST_H_ +#ifndef HIERO_SDK_CPP_BASE_INTEGRATION_TEST_H_ +#define HIERO_SDK_CPP_BASE_INTEGRATION_TEST_H_ #include "AccountId.h" #include "Client.h" @@ -26,7 +26,7 @@ #include #include -namespace Hedera +namespace Hiero { class BaseIntegrationTest : public testing::Test @@ -68,6 +68,6 @@ class BaseIntegrationTest : public testing::Test "964d4c3f6bc912a9d20e14e449721012d625aa3c8a12de41ae5519752fc89064736f6c63430006000033"; }; -} // namespace Hedera +} // namespace Hiero -#endif // HEDERA_SDK_CPP_BASE_INTEGRATION_TEST_H_ \ No newline at end of file +#endif // HIERO_SDK_CPP_BASE_INTEGRATION_TEST_H_ \ No newline at end of file diff --git a/src/sdk/tests/integration/ChunkedTransactionIntegrationTests.cc b/src/sdk/tests/integration/ChunkedTransactionIntegrationTests.cc index 511dbc7ca..80563f38c 100644 --- a/src/sdk/tests/integration/ChunkedTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/ChunkedTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; template class ChunkedTransactionIntegrationTests : public BaseIntegrationTest diff --git a/src/sdk/tests/integration/ClientIntegrationTests.cc b/src/sdk/tests/integration/ClientIntegrationTests.cc index 991cc95ce..68c6109fe 100644 --- a/src/sdk/tests/integration/ClientIntegrationTests.cc +++ b/src/sdk/tests/integration/ClientIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -46,7 +46,7 @@ using json = nlohmann::json; using namespace std; -using namespace Hedera; +using namespace Hiero; class ClientIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/ContractBytecodeQueryIntegrationTests.cc b/src/sdk/tests/integration/ContractBytecodeQueryIntegrationTests.cc index f1f7348d5..ff48b9d02 100644 --- a/src/sdk/tests/integration/ContractBytecodeQueryIntegrationTests.cc +++ b/src/sdk/tests/integration/ContractBytecodeQueryIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ #include -using namespace Hedera; +using namespace Hiero; class ContractBytecodeQueryIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/ContractCallQueryIntegrationTests.cc b/src/sdk/tests/integration/ContractCallQueryIntegrationTests.cc index 104b0c96c..e20c1930a 100644 --- a/src/sdk/tests/integration/ContractCallQueryIntegrationTests.cc +++ b/src/sdk/tests/integration/ContractCallQueryIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ #include -using namespace Hedera; +using namespace Hiero; class ContractCallQueryIntegrationTests : public BaseIntegrationTest { @@ -62,7 +62,7 @@ TEST_F(ContractCallQueryIntegrationTests, ExecuteContractCallQuery) ContractCreateTransaction() .setAdminKey(operatorKey->getPublicKey()) .setGas(1000000ULL) - .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hedera.").toBytes()) + .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hiero.").toBytes()) .setBytecodeFileId(fileId) .execute(getTestClient()) .getReceipt(getTestClient()) @@ -77,7 +77,7 @@ TEST_F(ContractCallQueryIntegrationTests, ExecuteContractCallQuery) .execute(getTestClient())); // Then - EXPECT_EQ(contractFunctionResult.getString(0), "Hello from Hedera."); + EXPECT_EQ(contractFunctionResult.getString(0), "Hello from Hiero."); // Clean up ASSERT_NO_THROW(const TransactionReceipt txReceipt = ContractDeleteTransaction() @@ -107,7 +107,7 @@ TEST_F(ContractCallQueryIntegrationTests, CannotCallContractFunctionWhenContract ContractCreateTransaction() .setAdminKey(operatorKey->getPublicKey()) .setGas(1000000ULL) - .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hedera.").toBytes()) + .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hiero.").toBytes()) .setBytecodeFileId(fileId) .execute(getTestClient()) .getReceipt(getTestClient()) @@ -146,7 +146,7 @@ TEST_F(ContractCallQueryIntegrationTests, CannotCallContractFunctionWhenGasIsNot ContractCreateTransaction() .setAdminKey(operatorKey->getPublicKey()) .setGas(1000000ULL) - .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hedera.").toBytes()) + .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hiero.").toBytes()) .setBytecodeFileId(fileId) .execute(getTestClient()) .getReceipt(getTestClient()) @@ -185,7 +185,7 @@ TEST_F(ContractCallQueryIntegrationTests, CannotCallContractFunctionWhenContract ContractCreateTransaction() .setAdminKey(operatorKey->getPublicKey()) .setGas(1000000ULL) - .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hedera.").toBytes()) + .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hiero.").toBytes()) .setBytecodeFileId(fileId) .execute(getTestClient()) .getReceipt(getTestClient()) diff --git a/src/sdk/tests/integration/ContractCreateFlowIntegrationTests.cc b/src/sdk/tests/integration/ContractCreateFlowIntegrationTests.cc index 8fc8fc518..e1419f2f2 100644 --- a/src/sdk/tests/integration/ContractCreateFlowIntegrationTests.cc +++ b/src/sdk/tests/integration/ContractCreateFlowIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -32,7 +32,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class ContractCreateFlowIntegrationTests : public BaseIntegrationTest { @@ -47,7 +47,7 @@ TEST_F(ContractCreateFlowIntegrationTests, ExecuteContractCreateFlow) .setBytecode(getTestSmartContractBytecode()) .setAdminKey(getTestClient().getOperatorPublicKey()) .setGas(1000000ULL) - .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hedera.")) + .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hiero.")) .execute(getTestClient())); // Then @@ -78,7 +78,7 @@ TEST_F(ContractCreateFlowIntegrationTests, CannotCreateContractWithFlowWithoutSi .setBytecode(getTestSmartContractBytecode()) .setAdminKey(adminKey) .setGas(1000000ULL) - .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hedera.")) + .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hiero.")) .execute(getTestClient()), ReceiptStatusException); // INVALID_SIGNATURE } @@ -95,7 +95,7 @@ TEST_F(ContractCreateFlowIntegrationTests, ExecuteContractCreateFlowWithPrivateK .setBytecode(getTestSmartContractBytecode()) .setAdminKey(adminKey) .setGas(1000000ULL) - .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hedera.")) + .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hiero.")) .freezeWith(getTestClient()) .sign(adminKey) .execute(getTestClient())); diff --git a/src/sdk/tests/integration/ContractCreateTransactionIntegrationTests.cc b/src/sdk/tests/integration/ContractCreateTransactionIntegrationTests.cc index 9f547361e..063178ae1 100644 --- a/src/sdk/tests/integration/ContractCreateTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/ContractCreateTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -39,7 +39,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class ContractCreateTransactionIntegrationTests : public BaseIntegrationTest { @@ -69,7 +69,7 @@ TEST_F(ContractCreateTransactionIntegrationTests, ExecuteContractCreateTransacti .setAdminKey(operatorKey->getPublicKey()) .setGas(1000000ULL) .setAutoRenewPeriod(autoRenewPeriod) - .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hedera.").toBytes()) + .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hiero.").toBytes()) .setMemo(memo) .setAutoRenewAccountId(AccountId(2ULL)) .setStakedAccountId(AccountId(2ULL)) @@ -122,7 +122,7 @@ TEST_F(ContractCreateTransactionIntegrationTests, CreateContractWithNoAdminKey) .setBytecodeFileId(fileId) .setGas(1000000ULL) .setAutoRenewPeriod(autoRenewPeriod) - .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hedera.").toBytes()) + .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hiero.").toBytes()) .setMemo(memo) .setAutoRenewAccountId(AccountId(2ULL)) .setStakedAccountId(AccountId(2ULL)) @@ -164,7 +164,7 @@ TEST_F(ContractCreateTransactionIntegrationTests, CannotCreateContractWithNoGas) EXPECT_THROW(const TransactionReceipt txReceipt = ContractCreateTransaction() .setAdminKey(operatorKey->getPublicKey()) - .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hedera.").toBytes()) + .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hiero.").toBytes()) .setBytecodeFileId(fileId) .setMemo("[e2e::ContractCreateTransaction]") .execute(getTestClient()) @@ -212,7 +212,7 @@ TEST_F(ContractCreateTransactionIntegrationTests, CannotCreateContractWithByteco EXPECT_THROW(const TransactionReceipt txReceipt = ContractCreateTransaction() .setGas(1000000ULL) - .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hedera.").toBytes()) + .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hiero.").toBytes()) .setMemo("[e2e::ContractCreateTransaction]") .execute(getTestClient()) .getReceipt(getTestClient()), diff --git a/src/sdk/tests/integration/ContractDeleteTransactionIntegrationTests.cc b/src/sdk/tests/integration/ContractDeleteTransactionIntegrationTests.cc index c155bff90..e8fa712d8 100644 --- a/src/sdk/tests/integration/ContractDeleteTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/ContractDeleteTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -35,7 +35,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class ContractDeleteTransactionIntegrationTests : public BaseIntegrationTest { @@ -65,7 +65,7 @@ TEST_F(ContractDeleteTransactionIntegrationTests, DeleteContractWithAdminKey) .setBytecodeFileId(fileId) .setAdminKey(operatorKey->getPublicKey()) .setGas(1000000ULL) - .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hedera.").toBytes()) + .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hiero.").toBytes()) .execute(getTestClient()) .getReceipt(getTestClient()) .mContractId.value()); diff --git a/src/sdk/tests/integration/ContractExecuteTransactionIntegrationTests.cc b/src/sdk/tests/integration/ContractExecuteTransactionIntegrationTests.cc index 6998b1160..333ecea15 100644 --- a/src/sdk/tests/integration/ContractExecuteTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/ContractExecuteTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -40,7 +40,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class ContractExecuteTransactionIntegrationTests : public BaseIntegrationTest { @@ -66,7 +66,7 @@ TEST_F(ContractExecuteTransactionIntegrationTests, ExecuteContractExecuteTransac .setBytecodeFileId(fileId) .setAdminKey(operatorKey->getPublicKey()) .setGas(1000000ULL) - .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hedera.").toBytes()) + .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hiero.").toBytes()) .execute(getTestClient()) .getReceipt(getTestClient()) .mContractId.value()); @@ -134,7 +134,7 @@ TEST_F(ContractExecuteTransactionIntegrationTests, CannotExecuteContractWithNoFu .setBytecodeFileId(fileId) .setAdminKey(operatorKey->getPublicKey()) .setGas(1000000ULL) - .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hedera.").toBytes()) + .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hiero.").toBytes()) .execute(getTestClient()) .getReceipt(getTestClient()) .mContractId.value()); @@ -177,7 +177,7 @@ TEST_F(ContractExecuteTransactionIntegrationTests, CannotExecuteContractWithNoGa .setBytecodeFileId(fileId) .setAdminKey(operatorKey->getPublicKey()) .setGas(1000000ULL) - .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hedera.").toBytes()) + .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hiero.").toBytes()) .execute(getTestClient()) .getReceipt(getTestClient()) .mContractId.value()); diff --git a/src/sdk/tests/integration/ContractInfoQueryIntegrationTests.cc b/src/sdk/tests/integration/ContractInfoQueryIntegrationTests.cc index 2fcc68e8a..6db059f2e 100644 --- a/src/sdk/tests/integration/ContractInfoQueryIntegrationTests.cc +++ b/src/sdk/tests/integration/ContractInfoQueryIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ #include -using namespace Hedera; +using namespace Hiero; class ContractInfoQueryIntegrationTests : public BaseIntegrationTest { @@ -62,7 +62,7 @@ TEST_F(ContractInfoQueryIntegrationTests, ExecuteContractInfoQuery) ContractCreateTransaction() .setAdminKey(operatorKey->getPublicKey()) .setGas(1000000ULL) - .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hedera.").toBytes()) + .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hiero.").toBytes()) .setBytecodeFileId(fileId) .setMemo(memo) .execute(getTestClient()) @@ -111,7 +111,7 @@ TEST_F(ContractInfoQueryIntegrationTests, CanQueryContractInfoWhenAdminKeyIsNull ASSERT_NO_THROW(contractId = ContractCreateTransaction() .setGas(1000000ULL) - .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hedera.").toBytes()) + .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hiero.").toBytes()) .setBytecodeFileId(fileId) .setMemo(memo) .execute(getTestClient()) diff --git a/src/sdk/tests/integration/ContractNonceInfoIntegrationTests.cc b/src/sdk/tests/integration/ContractNonceInfoIntegrationTests.cc index b141d1fc1..017711ded 100644 --- a/src/sdk/tests/integration/ContractNonceInfoIntegrationTests.cc +++ b/src/sdk/tests/integration/ContractNonceInfoIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -36,7 +36,7 @@ #include -using namespace Hedera; +using namespace Hiero; class ContractNonceInfoIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/ContractUpdateTransactionIntegrationTests.cc b/src/sdk/tests/integration/ContractUpdateTransactionIntegrationTests.cc index 795febf2a..4a08794dd 100644 --- a/src/sdk/tests/integration/ContractUpdateTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/ContractUpdateTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -40,7 +40,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class ContractUpdateTransactionIntegrationTests : public BaseIntegrationTest { @@ -68,7 +68,7 @@ TEST_F(ContractUpdateTransactionIntegrationTests, ExecuteContractUpdateTransacti .setBytecodeFileId(fileId) .setAdminKey(operatorKey->getPublicKey()) .setGas(1000000ULL) - .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hedera.").toBytes()) + .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hiero.").toBytes()) .setAutoRenewAccountId(AccountId(2ULL)) .setStakedAccountId(AccountId(2ULL)) .execute(getTestClient()) @@ -137,7 +137,7 @@ TEST_F(ContractUpdateTransactionIntegrationTests, CannotModifyImmutableContract) ContractCreateTransaction() .setBytecodeFileId(fileId) .setGas(1000000ULL) - .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hedera.").toBytes()) + .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hiero.").toBytes()) .execute(getTestClient()) .getReceipt(getTestClient()) .mContractId.value()); diff --git a/src/sdk/tests/integration/EthereumTransactionIntegrationTests.cc b/src/sdk/tests/integration/EthereumTransactionIntegrationTests.cc index 6c3042f01..04f7ae5eb 100644 --- a/src/sdk/tests/integration/EthereumTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/EthereumTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -46,7 +46,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class EthereumTransactionIntegrationTests : public BaseIntegrationTest { @@ -89,7 +89,7 @@ TEST_F(EthereumTransactionIntegrationTests, DISABLED_SignerNonceChangedOnEthereu .setBytecodeFileId(fileId) .setAdminKey(getTestClient().getOperatorPublicKey()) .setGas(200000ULL) - .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hedera.").toBytes()) + .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hiero.").toBytes()) .setMemo(memo) .execute(getTestClient()) .getReceipt(getTestClient()) diff --git a/src/sdk/tests/integration/ExecutableIntegrationTests.cc b/src/sdk/tests/integration/ExecutableIntegrationTests.cc index 74c377b71..a0c989902 100644 --- a/src/sdk/tests/integration/ExecutableIntegrationTests.cc +++ b/src/sdk/tests/integration/ExecutableIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -95,7 +95,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; template class ExecutableIntegrationTests : public BaseIntegrationTest diff --git a/src/sdk/tests/integration/FileAppendTransactionIntegrationTests.cc b/src/sdk/tests/integration/FileAppendTransactionIntegrationTests.cc index 89f7ecaf4..d7b38a1e2 100644 --- a/src/sdk/tests/integration/FileAppendTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/FileAppendTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -33,7 +33,7 @@ #include -using namespace Hedera; +using namespace Hiero; class FileAppendTransactionIntegrationTests : public BaseIntegrationTest { @@ -192,7 +192,7 @@ TEST_F(FileAppendTransactionIntegrationTests, ExecuteFileAppendTransaction) ASSERT_NO_THROW( operatorKey = ED25519PrivateKey::fromString( "302e020100300506032b65700422042091132178e72057a1d7528025956fe39b0b847f200ab59b2fdd367017f3087137")); - ASSERT_NO_THROW(origContents = internal::Utilities::stringToByteVector("Hedera is great!")); + ASSERT_NO_THROW(origContents = internal::Utilities::stringToByteVector("Hiero is great!")); ASSERT_NO_THROW(appendedContents = internal::Utilities::stringToByteVector(" It is also awesome!")); ASSERT_NO_THROW(fileId = FileCreateTransaction() .setKeys({ operatorKey->getPublicKey() }) @@ -230,7 +230,7 @@ TEST_F(FileAppendTransactionIntegrationTests, CanAppendLargeContents) ASSERT_NO_THROW( operatorKey = ED25519PrivateKey::fromString( "302e020100300506032b65700422042091132178e72057a1d7528025956fe39b0b847f200ab59b2fdd367017f3087137")); - ASSERT_NO_THROW(origContents = internal::Utilities::stringToByteVector("Hedera is great! ")); + ASSERT_NO_THROW(origContents = internal::Utilities::stringToByteVector("Hiero is great! ")); ASSERT_NO_THROW(appendedContents = internal::Utilities::stringToByteVector(getContent())); ASSERT_NO_THROW(fileId = FileCreateTransaction() .setKeys({ operatorKey->getPublicKey() }) @@ -266,7 +266,7 @@ TEST_F(FileAppendTransactionIntegrationTests, SerializeDeserializeExecute) ASSERT_NO_THROW( operatorKey = ED25519PrivateKey::fromString( "302e020100300506032b65700422042091132178e72057a1d7528025956fe39b0b847f200ab59b2fdd367017f3087137")); - ASSERT_NO_THROW(origContents = internal::Utilities::stringToByteVector("Hedera is great! ")); + ASSERT_NO_THROW(origContents = internal::Utilities::stringToByteVector("Hiero is great! ")); ASSERT_NO_THROW(appendedContents = internal::Utilities::stringToByteVector(getContent())); ASSERT_NO_THROW(fileId = FileCreateTransaction() .setKeys({ operatorKey->getPublicKey() }) @@ -311,7 +311,7 @@ TEST_F(FileAppendTransactionIntegrationTests, FreezeSignSerializeDeserializeAndC const TransactionType expectedType = TransactionType::FILE_APPEND_TRANSACTION; - ASSERT_NO_THROW(origContents = internal::Utilities::stringToByteVector("Hedera is great! ")); + ASSERT_NO_THROW(origContents = internal::Utilities::stringToByteVector("Hiero is great! ")); ASSERT_NO_THROW(appendedContents = internal::Utilities::stringToByteVector(getContent())); ASSERT_NO_THROW(fileId = FileCreateTransaction() .setKeys({ operatorKey->getPublicKey() }) diff --git a/src/sdk/tests/integration/FileContentsQueryIntegrationTests.cc b/src/sdk/tests/integration/FileContentsQueryIntegrationTests.cc index 866cfe607..bb088be00 100644 --- a/src/sdk/tests/integration/FileContentsQueryIntegrationTests.cc +++ b/src/sdk/tests/integration/FileContentsQueryIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ #include -using namespace Hedera; +using namespace Hiero; class FileContentsQueryIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/FileCreateTransactionIntegrationTests.cc b/src/sdk/tests/integration/FileCreateTransactionIntegrationTests.cc index 5d71c92e3..b4aeb4ac5 100644 --- a/src/sdk/tests/integration/FileCreateTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/FileCreateTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -31,7 +31,7 @@ #include -using namespace Hedera; +using namespace Hiero; class FileCreateTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/FileDeleteTransactionIntegrationTests.cc b/src/sdk/tests/integration/FileDeleteTransactionIntegrationTests.cc index b52850445..6e6e8d64f 100644 --- a/src/sdk/tests/integration/FileDeleteTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/FileDeleteTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -31,7 +31,7 @@ #include -using namespace Hedera; +using namespace Hiero; class FileDeleteTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/FileInfoQueryIntegrationTests.cc b/src/sdk/tests/integration/FileInfoQueryIntegrationTests.cc index 71f985980..dd833aaf4 100644 --- a/src/sdk/tests/integration/FileInfoQueryIntegrationTests.cc +++ b/src/sdk/tests/integration/FileInfoQueryIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -32,7 +32,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class FileInfoQueryIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/FileUpdateTransactionIntegrationTests.cc b/src/sdk/tests/integration/FileUpdateTransactionIntegrationTests.cc index b6561b6e8..035bb2e93 100644 --- a/src/sdk/tests/integration/FileUpdateTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/FileUpdateTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -33,7 +33,7 @@ #include -using namespace Hedera; +using namespace Hiero; class FileUpdateTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/FreezeTransactionIntegrationTests.cc b/src/sdk/tests/integration/FreezeTransactionIntegrationTests.cc index 8d1d33570..7ae476835 100644 --- a/src/sdk/tests/integration/FreezeTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/FreezeTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ #include -using namespace Hedera; +using namespace Hiero; class FreezeTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/HttpClientIntegrationTests.cc b/src/sdk/tests/integration/HttpClientIntegrationTests.cc index 93bb02e4c..b610a1893 100644 --- a/src/sdk/tests/integration/HttpClientIntegrationTests.cc +++ b/src/sdk/tests/integration/HttpClientIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ #include using json = nlohmann::json; -using namespace Hedera; +using namespace Hiero; class HttpClientIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/JSONIntegrationTests.cc b/src/sdk/tests/integration/JSONIntegrationTests.cc index 3b268290c..bab0babdd 100644 --- a/src/sdk/tests/integration/JSONIntegrationTests.cc +++ b/src/sdk/tests/integration/JSONIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/src/sdk/tests/integration/MirrorNodeGatewayIntegrationTests.cc b/src/sdk/tests/integration/MirrorNodeGatewayIntegrationTests.cc index de9dfaee3..ef2f38a67 100644 --- a/src/sdk/tests/integration/MirrorNodeGatewayIntegrationTests.cc +++ b/src/sdk/tests/integration/MirrorNodeGatewayIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2023 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2023 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include using json = nlohmann::json; -using namespace Hedera; +using namespace Hiero; class MirrorNodeGatewayIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/NetworkVersionInfoQueryIntegrationTests.cc b/src/sdk/tests/integration/NetworkVersionInfoQueryIntegrationTests.cc index f87112c44..c9b9ada6f 100644 --- a/src/sdk/tests/integration/NetworkVersionInfoQueryIntegrationTests.cc +++ b/src/sdk/tests/integration/NetworkVersionInfoQueryIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include -using namespace Hedera; +using namespace Hiero; class NetworkVersionInfoQueryIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/NodeCreateTransactionIntegrationTests.cc b/src/sdk/tests/integration/NodeCreateTransactionIntegrationTests.cc index c73a3b9a1..97e82aa5a 100644 --- a/src/sdk/tests/integration/NodeCreateTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/NodeCreateTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include -using namespace Hedera; +using namespace Hiero; class NodeCreateTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/PrngTransactionIntegrationTests.cc b/src/sdk/tests/integration/PrngTransactionIntegrationTests.cc index 3702d3b8b..80244a53e 100644 --- a/src/sdk/tests/integration/PrngTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/PrngTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include -using namespace Hedera; +using namespace Hiero; class PrngTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/QueryIntegrationTests.cc b/src/sdk/tests/integration/QueryIntegrationTests.cc index dc204babe..3eac9bd69 100644 --- a/src/sdk/tests/integration/QueryIntegrationTests.cc +++ b/src/sdk/tests/integration/QueryIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -56,7 +56,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; template class QueryIntegrationTests : public BaseIntegrationTest diff --git a/src/sdk/tests/integration/ScheduleCreateTransactionIntegrationTests.cc b/src/sdk/tests/integration/ScheduleCreateTransactionIntegrationTests.cc index 232d5895c..ef2afffab 100644 --- a/src/sdk/tests/integration/ScheduleCreateTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/ScheduleCreateTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -33,7 +33,7 @@ #include -using namespace Hedera; +using namespace Hiero; class ScheduleCreateTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/ScheduleDeleteTransactionIntegrationTests.cc b/src/sdk/tests/integration/ScheduleDeleteTransactionIntegrationTests.cc index c3bebb121..54c9ce6c3 100644 --- a/src/sdk/tests/integration/ScheduleDeleteTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/ScheduleDeleteTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -35,7 +35,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class ScheduleDeleteTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/ScheduleInfoQueryIntegrationTests.cc b/src/sdk/tests/integration/ScheduleInfoQueryIntegrationTests.cc index 463a2c14e..2de04f5ed 100644 --- a/src/sdk/tests/integration/ScheduleInfoQueryIntegrationTests.cc +++ b/src/sdk/tests/integration/ScheduleInfoQueryIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -33,7 +33,7 @@ #include -using namespace Hedera; +using namespace Hiero; class ScheduleInfoQueryIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/ScheduleSignTransactionIntegrationTests.cc b/src/sdk/tests/integration/ScheduleSignTransactionIntegrationTests.cc index c0d6e758d..764a96321 100644 --- a/src/sdk/tests/integration/ScheduleSignTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/ScheduleSignTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class ScheduleSignTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/SystemDeleteTransactionIntegrationTests.cc b/src/sdk/tests/integration/SystemDeleteTransactionIntegrationTests.cc index 41f7b79d3..878b980a4 100644 --- a/src/sdk/tests/integration/SystemDeleteTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/SystemDeleteTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -36,7 +36,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class SystemDeleteTransactionIntegrationTests : public BaseIntegrationTest { @@ -89,7 +89,7 @@ TEST_F(SystemDeleteTransactionIntegrationTests, DeleteContract) ContractCreateTransaction() .setAdminKey(operatorKey) .setGas(100000ULL) - .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hedera.").toBytes()) + .setConstructorParameters(ContractFunctionParameters().addString("Hello from Hiero.").toBytes()) .setBytecodeFileId(fileId) .execute(getTestClient()) .getReceipt(getTestClient()) diff --git a/src/sdk/tests/integration/SystemUndeleteTransactionIntegrationTests.cc b/src/sdk/tests/integration/SystemUndeleteTransactionIntegrationTests.cc index 0a5fe6eb9..8483a3d69 100644 --- a/src/sdk/tests/integration/SystemUndeleteTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/SystemUndeleteTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -32,7 +32,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class SystemUndeleteTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TokenAirdropTransactionIntegrationTests.cc b/src/sdk/tests/integration/TokenAirdropTransactionIntegrationTests.cc index d90955948..e6fe40034 100644 --- a/src/sdk/tests/integration/TokenAirdropTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/TokenAirdropTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ #include -using namespace Hedera; +using namespace Hiero; class TokenAirdropTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TokenAssociateTransactionIntegrationTests.cc b/src/sdk/tests/integration/TokenAssociateTransactionIntegrationTests.cc index 549e314ae..7eb3cbf4c 100644 --- a/src/sdk/tests/integration/TokenAssociateTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/TokenAssociateTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -35,7 +35,7 @@ #include -using namespace Hedera; +using namespace Hiero; class TokenAssociateTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TokenBurnTransactionIntegrationTests.cc b/src/sdk/tests/integration/TokenBurnTransactionIntegrationTests.cc index 90831ad89..86447ca54 100644 --- a/src/sdk/tests/integration/TokenBurnTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/TokenBurnTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ #include -using namespace Hedera; +using namespace Hiero; class TokenBurnTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TokenCancelAirdropTransactionIntegrationTests.cc b/src/sdk/tests/integration/TokenCancelAirdropTransactionIntegrationTests.cc index 63de7fe44..0f330f00b 100644 --- a/src/sdk/tests/integration/TokenCancelAirdropTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/TokenCancelAirdropTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -41,7 +41,7 @@ #include -using namespace Hedera; +using namespace Hiero; class TokenCancelAirdropTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TokenClaimAirdropTransactionIntegrationTests.cc b/src/sdk/tests/integration/TokenClaimAirdropTransactionIntegrationTests.cc index c7d6d6081..88f1fb92c 100644 --- a/src/sdk/tests/integration/TokenClaimAirdropTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/TokenClaimAirdropTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -41,7 +41,7 @@ #include -using namespace Hedera; +using namespace Hiero; class TokenClaimAirdropTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TokenCreateTransactionIntegrationTests.cc b/src/sdk/tests/integration/TokenCreateTransactionIntegrationTests.cc index a19abf5fb..bf7543c11 100644 --- a/src/sdk/tests/integration/TokenCreateTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/TokenCreateTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ #include -using namespace Hedera; +using namespace Hiero; class TokenCreateTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TokenDeleteTransactionIntegrationTests.cc b/src/sdk/tests/integration/TokenDeleteTransactionIntegrationTests.cc index fb0ae142e..f12cf4bdf 100644 --- a/src/sdk/tests/integration/TokenDeleteTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/TokenDeleteTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -31,7 +31,7 @@ #include -using namespace Hedera; +using namespace Hiero; class TokenDeleteTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TokenDissociateTransactionIntegrationTests.cc b/src/sdk/tests/integration/TokenDissociateTransactionIntegrationTests.cc index bd6bcfb7a..0d9edbc03 100644 --- a/src/sdk/tests/integration/TokenDissociateTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/TokenDissociateTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -36,7 +36,7 @@ #include -using namespace Hedera; +using namespace Hiero; class TokenDissociateTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TokenFeeScheduleUpdateTransactionIntegrationTests.cc b/src/sdk/tests/integration/TokenFeeScheduleUpdateTransactionIntegrationTests.cc index 7ffd2bce3..6aa1bf20d 100644 --- a/src/sdk/tests/integration/TokenFeeScheduleUpdateTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/TokenFeeScheduleUpdateTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -36,7 +36,7 @@ #include -using namespace Hedera; +using namespace Hiero; class TokenFeeScheduleUpdateTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TokenFreezeTransactionIntegrationTests.cc b/src/sdk/tests/integration/TokenFreezeTransactionIntegrationTests.cc index a066ca1a8..3dd6203fe 100644 --- a/src/sdk/tests/integration/TokenFreezeTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/TokenFreezeTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ #include -using namespace Hedera; +using namespace Hiero; class TokenFreezeTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TokenGrantKycTransactionIntegrationTests.cc b/src/sdk/tests/integration/TokenGrantKycTransactionIntegrationTests.cc index bd029e373..1037be85f 100644 --- a/src/sdk/tests/integration/TokenGrantKycTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/TokenGrantKycTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -34,7 +34,7 @@ #include -using namespace Hedera; +using namespace Hiero; class TokenGrantKycTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TokenInfoQueryIntegrationTests.cc b/src/sdk/tests/integration/TokenInfoQueryIntegrationTests.cc index 0ee3f03ad..3f7d4b2df 100644 --- a/src/sdk/tests/integration/TokenInfoQueryIntegrationTests.cc +++ b/src/sdk/tests/integration/TokenInfoQueryIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -33,7 +33,7 @@ #include -using namespace Hedera; +using namespace Hiero; class TokenInfoQueryIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TokenMintTransactionIntegrationTests.cc b/src/sdk/tests/integration/TokenMintTransactionIntegrationTests.cc index 6ab1a96f2..edda7295c 100644 --- a/src/sdk/tests/integration/TokenMintTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/TokenMintTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -31,7 +31,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenMintTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TokenNftInfoQueryIntegrationTests.cc b/src/sdk/tests/integration/TokenNftInfoQueryIntegrationTests.cc index 6901a8bb6..3037dd08d 100644 --- a/src/sdk/tests/integration/TokenNftInfoQueryIntegrationTests.cc +++ b/src/sdk/tests/integration/TokenNftInfoQueryIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -33,7 +33,7 @@ #include -using namespace Hedera; +using namespace Hiero; class TokenNftInfoQueryIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TokenPauseTransactionIntegrationTests.cc b/src/sdk/tests/integration/TokenPauseTransactionIntegrationTests.cc index f8f2b922e..30c34e0dd 100644 --- a/src/sdk/tests/integration/TokenPauseTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/TokenPauseTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -34,7 +34,7 @@ #include -using namespace Hedera; +using namespace Hiero; class TokenPauseTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TokenRejectTransactionIntegrationTests.cc b/src/sdk/tests/integration/TokenRejectTransactionIntegrationTests.cc index 312419950..559bb08b2 100644 --- a/src/sdk/tests/integration/TokenRejectTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/TokenRejectTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ #include -using namespace Hedera; +using namespace Hiero; class TokenRejectTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TokenRevokeKycTransactionIntegrationTests.cc b/src/sdk/tests/integration/TokenRevokeKycTransactionIntegrationTests.cc index 26a11fd16..8e3b4fe19 100644 --- a/src/sdk/tests/integration/TokenRevokeKycTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/TokenRevokeKycTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -34,7 +34,7 @@ #include -using namespace Hedera; +using namespace Hiero; class TokenRevokeKycTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TokenUnfreezeTransactionIntegrationTests.cc b/src/sdk/tests/integration/TokenUnfreezeTransactionIntegrationTests.cc index e4aca7176..15ab7fe63 100644 --- a/src/sdk/tests/integration/TokenUnfreezeTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/TokenUnfreezeTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ #include -using namespace Hedera; +using namespace Hiero; class TokenUnfreezeTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TokenUnpauseTransactionIntegrationTests.cc b/src/sdk/tests/integration/TokenUnpauseTransactionIntegrationTests.cc index d55fce153..9a709bb60 100644 --- a/src/sdk/tests/integration/TokenUnpauseTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/TokenUnpauseTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -36,7 +36,7 @@ #include -using namespace Hedera; +using namespace Hiero; class TokenUnpauseTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TokenUpdateNftsTransactionIntegrationTests.cc b/src/sdk/tests/integration/TokenUpdateNftsTransactionIntegrationTests.cc index 8bf95674e..2b361db07 100644 --- a/src/sdk/tests/integration/TokenUpdateNftsTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/TokenUpdateNftsTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -33,7 +33,7 @@ #include -using namespace Hedera; +using namespace Hiero; /** * @notice Integration-HIP-657 @@ -160,7 +160,7 @@ TEST_F(TokenUpdateNftsTransactionIntegrationTests, UpdateNFTMetadata) } //----- -// Would need to be looked at by Hedera Services teams. It Is disabled as it is no longer failing +// Would need to be looked at by Hiero Services teams. It Is disabled as it is no longer failing TEST_F(TokenUpdateNftsTransactionIntegrationTests, DISABLED_CannotUpdateNFTMetadataWhenNotSignedWithMetadataKey) { // Given diff --git a/src/sdk/tests/integration/TokenUpdateTransactionIntegrationTests.cc b/src/sdk/tests/integration/TokenUpdateTransactionIntegrationTests.cc index ecd57aea6..928f94b69 100644 --- a/src/sdk/tests/integration/TokenUpdateTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/TokenUpdateTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -40,7 +40,7 @@ #include -using namespace Hedera; +using namespace Hiero; class TokenUpdateTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TokenWipeTransactionIntegrationTests.cc b/src/sdk/tests/integration/TokenWipeTransactionIntegrationTests.cc index 6adc3e6f4..eee32166f 100644 --- a/src/sdk/tests/integration/TokenWipeTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/TokenWipeTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenWipeTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TopicCreateTransactionIntegrationTests.cc b/src/sdk/tests/integration/TopicCreateTransactionIntegrationTests.cc index 0fd5ede55..3f90d8262 100644 --- a/src/sdk/tests/integration/TopicCreateTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/TopicCreateTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -33,7 +33,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TopicCreateTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TopicDeleteTransactionIntegrationTests.cc b/src/sdk/tests/integration/TopicDeleteTransactionIntegrationTests.cc index 2a3e2c422..b9a4f160b 100644 --- a/src/sdk/tests/integration/TopicDeleteTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/TopicDeleteTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -32,7 +32,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TopicDeleteTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TopicInfoQueryIntegrationTests.cc b/src/sdk/tests/integration/TopicInfoQueryIntegrationTests.cc index 6883b1dc9..ce8d48708 100644 --- a/src/sdk/tests/integration/TopicInfoQueryIntegrationTests.cc +++ b/src/sdk/tests/integration/TopicInfoQueryIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -32,7 +32,7 @@ #include -using namespace Hedera; +using namespace Hiero; class TopicInfoQueryIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TopicMessageQueryIntegrationTests.cc b/src/sdk/tests/integration/TopicMessageQueryIntegrationTests.cc index f820d3c05..7eb08e120 100644 --- a/src/sdk/tests/integration/TopicMessageQueryIntegrationTests.cc +++ b/src/sdk/tests/integration/TopicMessageQueryIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -33,7 +33,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TopicMessageQueryIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TopicMessageSubmitTransactionIntegrationTests.cc b/src/sdk/tests/integration/TopicMessageSubmitTransactionIntegrationTests.cc index 3a2f89082..cae1e7c67 100644 --- a/src/sdk/tests/integration/TopicMessageSubmitTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/TopicMessageSubmitTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -35,7 +35,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TopicMessageSubmitTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TopicUpdateTransactionIntegrationTests.cc b/src/sdk/tests/integration/TopicUpdateTransactionIntegrationTests.cc index a7fd138f8..68bd0e623 100644 --- a/src/sdk/tests/integration/TopicUpdateTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/TopicUpdateTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -33,7 +33,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TopicUpdateTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TransactionIntegrationTests.cc b/src/sdk/tests/integration/TransactionIntegrationTests.cc index 23730700d..8d4900260 100644 --- a/src/sdk/tests/integration/TransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/TransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -36,7 +36,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TransactionReceiptIntegrationTests.cc b/src/sdk/tests/integration/TransactionReceiptIntegrationTests.cc index 50d7dbb28..a6c1dda84 100644 --- a/src/sdk/tests/integration/TransactionReceiptIntegrationTests.cc +++ b/src/sdk/tests/integration/TransactionReceiptIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TransactionReceiptIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TransactionReceiptQueryIntegrationTests.cc b/src/sdk/tests/integration/TransactionReceiptQueryIntegrationTests.cc index 7297318fb..96c81837d 100644 --- a/src/sdk/tests/integration/TransactionReceiptQueryIntegrationTests.cc +++ b/src/sdk/tests/integration/TransactionReceiptQueryIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -32,7 +32,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TransactionReceiptQueryIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TransactionRecordIntegrationTests.cc b/src/sdk/tests/integration/TransactionRecordIntegrationTests.cc index 686a0007e..72a008125 100644 --- a/src/sdk/tests/integration/TransactionRecordIntegrationTests.cc +++ b/src/sdk/tests/integration/TransactionRecordIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -35,7 +35,7 @@ #include -using namespace Hedera; +using namespace Hiero; class TransactionRecordIntegrationTests : public BaseIntegrationTest { @@ -47,7 +47,7 @@ TEST_F(TransactionRecordIntegrationTests, ExecuteEmptyAccountCreateTransaction) // Given / When / Then TransactionRecord txRecord; EXPECT_THROW(txRecord = AccountCreateTransaction().execute(getTestClient()).getRecord(getTestClient()), - Hedera::PrecheckStatusException); + Hiero::PrecheckStatusException); } //----- diff --git a/src/sdk/tests/integration/TransactionRecordQueryIntegrationTests.cc b/src/sdk/tests/integration/TransactionRecordQueryIntegrationTests.cc index 32eddb956..d503d370d 100644 --- a/src/sdk/tests/integration/TransactionRecordQueryIntegrationTests.cc +++ b/src/sdk/tests/integration/TransactionRecordQueryIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -31,7 +31,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TransactionRecordQueryIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/integration/TransferTransactionIntegrationTests.cc b/src/sdk/tests/integration/TransferTransactionIntegrationTests.cc index c88b00f12..73c142cd9 100644 --- a/src/sdk/tests/integration/TransferTransactionIntegrationTests.cc +++ b/src/sdk/tests/integration/TransferTransactionIntegrationTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -44,7 +44,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TransferTransactionIntegrationTests : public BaseIntegrationTest { diff --git a/src/sdk/tests/unit/AccountAllowanceApproveTransactionUnitTests.cc b/src/sdk/tests/unit/AccountAllowanceApproveTransactionUnitTests.cc index 79e586573..c3aa5f6ce 100644 --- a/src/sdk/tests/unit/AccountAllowanceApproveTransactionUnitTests.cc +++ b/src/sdk/tests/unit/AccountAllowanceApproveTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -31,7 +31,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class AccountAllowanceApproveTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/AccountAllowanceDeleteTransactionUnitTests.cc b/src/sdk/tests/unit/AccountAllowanceDeleteTransactionUnitTests.cc index f67cffbc6..3f5d36007 100644 --- a/src/sdk/tests/unit/AccountAllowanceDeleteTransactionUnitTests.cc +++ b/src/sdk/tests/unit/AccountAllowanceDeleteTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class AccountAllowanceDeleteTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/AccountBalanceQueryUnitTests.cc b/src/sdk/tests/unit/AccountBalanceQueryUnitTests.cc index 66c43f56c..971affe2e 100644 --- a/src/sdk/tests/unit/AccountBalanceQueryUnitTests.cc +++ b/src/sdk/tests/unit/AccountBalanceQueryUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include -using namespace Hedera; +using namespace Hiero; class AccountBalanceQueryUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/AccountBalanceUnitTests.cc b/src/sdk/tests/unit/AccountBalanceUnitTests.cc index 4f36088ff..830a4e9fe 100644 --- a/src/sdk/tests/unit/AccountBalanceUnitTests.cc +++ b/src/sdk/tests/unit/AccountBalanceUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class AccountBalanceUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/AccountCreateTransactionUnitTests.cc b/src/sdk/tests/unit/AccountCreateTransactionUnitTests.cc index 41ad49bd8..5e2006435 100644 --- a/src/sdk/tests/unit/AccountCreateTransactionUnitTests.cc +++ b/src/sdk/tests/unit/AccountCreateTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class AccountCreateTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/AccountDeleteTransactionUnitTests.cc b/src/sdk/tests/unit/AccountDeleteTransactionUnitTests.cc index 702bb40af..e2a5c1c90 100644 --- a/src/sdk/tests/unit/AccountDeleteTransactionUnitTests.cc +++ b/src/sdk/tests/unit/AccountDeleteTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class AccountDeleteTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/AccountIdUnitTests.cc b/src/sdk/tests/unit/AccountIdUnitTests.cc index f0768cb2f..e64959b85 100644 --- a/src/sdk/tests/unit/AccountIdUnitTests.cc +++ b/src/sdk/tests/unit/AccountIdUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class AccountIdUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/AccountInfoQueryUnitTests.cc b/src/sdk/tests/unit/AccountInfoQueryUnitTests.cc index b5d45bd7f..d52bd9890 100644 --- a/src/sdk/tests/unit/AccountInfoQueryUnitTests.cc +++ b/src/sdk/tests/unit/AccountInfoQueryUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include -using namespace Hedera; +using namespace Hiero; class AccountInfoQueryUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/AccountInfoUnitTests.cc b/src/sdk/tests/unit/AccountInfoUnitTests.cc index dcd275733..41f21dcc1 100644 --- a/src/sdk/tests/unit/AccountInfoUnitTests.cc +++ b/src/sdk/tests/unit/AccountInfoUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -32,7 +32,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class AccountInfoUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/AccountRecordsQueryUnitTests.cc b/src/sdk/tests/unit/AccountRecordsQueryUnitTests.cc index 2e2842d58..b752db4fc 100644 --- a/src/sdk/tests/unit/AccountRecordsQueryUnitTests.cc +++ b/src/sdk/tests/unit/AccountRecordsQueryUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ #include -using namespace Hedera; +using namespace Hiero; class AccountRecordsQueryUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/AccountRecordsUnitTests.cc b/src/sdk/tests/unit/AccountRecordsUnitTests.cc index bfa4fc7cd..bcb7feb3a 100644 --- a/src/sdk/tests/unit/AccountRecordsUnitTests.cc +++ b/src/sdk/tests/unit/AccountRecordsUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class AccountRecordsUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/AccountStakersQueryUnitTests.cc b/src/sdk/tests/unit/AccountStakersQueryUnitTests.cc index a19ae0658..e1a4da49a 100644 --- a/src/sdk/tests/unit/AccountStakersQueryUnitTests.cc +++ b/src/sdk/tests/unit/AccountStakersQueryUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ #include -using namespace Hedera; +using namespace Hiero; class AccountStakersQueryUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/AccountUpdateTransactionUnitTests.cc b/src/sdk/tests/unit/AccountUpdateTransactionUnitTests.cc index 92ff192be..3fb707099 100644 --- a/src/sdk/tests/unit/AccountUpdateTransactionUnitTests.cc +++ b/src/sdk/tests/unit/AccountUpdateTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class AccountUpdateTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/AddressBookQueryUnitTests.cc b/src/sdk/tests/unit/AddressBookQueryUnitTests.cc index 482896d61..6f6d979fd 100644 --- a/src/sdk/tests/unit/AddressBookQueryUnitTests.cc +++ b/src/sdk/tests/unit/AddressBookQueryUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ #include -using namespace Hedera; +using namespace Hiero; class AddressBookQueryUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/AssessedCustomFeesUnitTests.cc b/src/sdk/tests/unit/AssessedCustomFeesUnitTests.cc index 3dd0d515d..545a88e46 100644 --- a/src/sdk/tests/unit/AssessedCustomFeesUnitTests.cc +++ b/src/sdk/tests/unit/AssessedCustomFeesUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class AssessedCustomFeeUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/ChunkedTransactionUnitTests.cc b/src/sdk/tests/unit/ChunkedTransactionUnitTests.cc index 616143d53..cf5d85311 100644 --- a/src/sdk/tests/unit/ChunkedTransactionUnitTests.cc +++ b/src/sdk/tests/unit/ChunkedTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class ChunkedTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/ClientUnitTests.cc b/src/sdk/tests/unit/ClientUnitTests.cc index def9f75e2..b716d68e2 100644 --- a/src/sdk/tests/unit/ClientUnitTests.cc +++ b/src/sdk/tests/unit/ClientUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include -using namespace Hedera; +using namespace Hiero; class ClientUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/ContractByteCodeQueryUnitTests.cc b/src/sdk/tests/unit/ContractByteCodeQueryUnitTests.cc index 63b83c21a..d3d1d751c 100644 --- a/src/sdk/tests/unit/ContractByteCodeQueryUnitTests.cc +++ b/src/sdk/tests/unit/ContractByteCodeQueryUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include -using namespace Hedera; +using namespace Hiero; class ContractByteCodeQueryUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/ContractCallQueryUnitTests.cc b/src/sdk/tests/unit/ContractCallQueryUnitTests.cc index 02452b414..7d811546b 100644 --- a/src/sdk/tests/unit/ContractCallQueryUnitTests.cc +++ b/src/sdk/tests/unit/ContractCallQueryUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class ContractCallQueryUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/ContractCreateFlowUnitTests.cc b/src/sdk/tests/unit/ContractCreateFlowUnitTests.cc index 4f28466b1..4668c2a11 100644 --- a/src/sdk/tests/unit/ContractCreateFlowUnitTests.cc +++ b/src/sdk/tests/unit/ContractCreateFlowUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class ContractCreateFlowUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/ContractCreateTransactionUnitTests.cc b/src/sdk/tests/unit/ContractCreateTransactionUnitTests.cc index 312ca527a..d7d0e04cf 100644 --- a/src/sdk/tests/unit/ContractCreateTransactionUnitTests.cc +++ b/src/sdk/tests/unit/ContractCreateTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -32,7 +32,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class ContractCreateTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/ContractDeleteTransactionUnitTests.cc b/src/sdk/tests/unit/ContractDeleteTransactionUnitTests.cc index d9dd49348..1d2191d9d 100644 --- a/src/sdk/tests/unit/ContractDeleteTransactionUnitTests.cc +++ b/src/sdk/tests/unit/ContractDeleteTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class ContractDeleteTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/ContractExecuteTransactionUnitTests.cc b/src/sdk/tests/unit/ContractExecuteTransactionUnitTests.cc index e8f1885ca..d2c6c18b9 100644 --- a/src/sdk/tests/unit/ContractExecuteTransactionUnitTests.cc +++ b/src/sdk/tests/unit/ContractExecuteTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class ContractExecuteTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/ContractFunctionParametersUnitTests.cc b/src/sdk/tests/unit/ContractFunctionParametersUnitTests.cc index 30b5fe2ce..27aef2431 100644 --- a/src/sdk/tests/unit/ContractFunctionParametersUnitTests.cc +++ b/src/sdk/tests/unit/ContractFunctionParametersUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class ContractFunctionParametersUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/ContractFunctionResultUnitTests.cc b/src/sdk/tests/unit/ContractFunctionResultUnitTests.cc index e88c26da6..09aed5107 100644 --- a/src/sdk/tests/unit/ContractFunctionResultUnitTests.cc +++ b/src/sdk/tests/unit/ContractFunctionResultUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -33,7 +33,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class ContractFunctionResultUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/ContractFunctionSelectorUnitTests.cc b/src/sdk/tests/unit/ContractFunctionSelectorUnitTests.cc index df312bb6e..f64fb520c 100644 --- a/src/sdk/tests/unit/ContractFunctionSelectorUnitTests.cc +++ b/src/sdk/tests/unit/ContractFunctionSelectorUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class ContractFunctionSelectorUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/ContractIdUnitTests.cc b/src/sdk/tests/unit/ContractIdUnitTests.cc index 45de257d0..a9ba1dc9d 100644 --- a/src/sdk/tests/unit/ContractIdUnitTests.cc +++ b/src/sdk/tests/unit/ContractIdUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class ContractIdUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/ContractInfoQueryUnitTests.cc b/src/sdk/tests/unit/ContractInfoQueryUnitTests.cc index e349263d2..46e6a43d3 100644 --- a/src/sdk/tests/unit/ContractInfoQueryUnitTests.cc +++ b/src/sdk/tests/unit/ContractInfoQueryUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include -using namespace Hedera; +using namespace Hiero; class ContractInfoQueryUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/ContractInfoUnitTests.cc b/src/sdk/tests/unit/ContractInfoUnitTests.cc index 9bab3b219..4a79daac5 100644 --- a/src/sdk/tests/unit/ContractInfoUnitTests.cc +++ b/src/sdk/tests/unit/ContractInfoUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class ContractInfoUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/ContractLogInfoUnitTests.cc b/src/sdk/tests/unit/ContractLogInfoUnitTests.cc index 5cd107ab4..8490a4d93 100644 --- a/src/sdk/tests/unit/ContractLogInfoUnitTests.cc +++ b/src/sdk/tests/unit/ContractLogInfoUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class ContractLogInfoUnitTests : public ::testing::Test { @@ -40,9 +40,9 @@ class ContractLogInfoUnitTests : public ::testing::Test const ContractId mTestContractId = ContractId(1ULL); const std::vector mTestBloom = { std::byte(0x02), std::byte(0x03), std::byte(0x04) }; const std::vector> mTestTopics = { - {std::byte(0x05), std::byte(0x06), std::byte(0x07)}, - { std::byte(0x08), std::byte(0x09), std::byte(0x0A)}, - { std::byte(0x0B), std::byte(0x0C), std::byte(0x0D)} + { std::byte(0x05), std::byte(0x06), std::byte(0x07) }, + { std::byte(0x08), std::byte(0x09), std::byte(0x0A) }, + { std::byte(0x0B), std::byte(0x0C), std::byte(0x0D) } }; const std::vector mTestData = { std::byte(0x0E), std::byte(0x0F) }; }; diff --git a/src/sdk/tests/unit/ContractNonceInfoUnitTests.cc b/src/sdk/tests/unit/ContractNonceInfoUnitTests.cc index 4907c5965..579927f7a 100644 --- a/src/sdk/tests/unit/ContractNonceInfoUnitTests.cc +++ b/src/sdk/tests/unit/ContractNonceInfoUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class ContractNonceInfoUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/ContractUpdateTransactionUnitTests.cc b/src/sdk/tests/unit/ContractUpdateTransactionUnitTests.cc index b20ff6353..80d0ee940 100644 --- a/src/sdk/tests/unit/ContractUpdateTransactionUnitTests.cc +++ b/src/sdk/tests/unit/ContractUpdateTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class ContractUpdateTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/CustomFixedFeeUnitTests.cc b/src/sdk/tests/unit/CustomFixedFeeUnitTests.cc index b59c83ee7..6e09d45a8 100644 --- a/src/sdk/tests/unit/CustomFixedFeeUnitTests.cc +++ b/src/sdk/tests/unit/CustomFixedFeeUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class CustomFixedFeeUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/CustomFractionalFeeUnitTests.cc b/src/sdk/tests/unit/CustomFractionalFeeUnitTests.cc index f7064ce27..214d46225 100644 --- a/src/sdk/tests/unit/CustomFractionalFeeUnitTests.cc +++ b/src/sdk/tests/unit/CustomFractionalFeeUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class CustomFractionalFeeUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/CustomRoyaltyFeeUnitTests.cc b/src/sdk/tests/unit/CustomRoyaltyFeeUnitTests.cc index 62f0a6534..c9d83ca18 100644 --- a/src/sdk/tests/unit/CustomRoyaltyFeeUnitTests.cc +++ b/src/sdk/tests/unit/CustomRoyaltyFeeUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class CustomRoyaltyFeeUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/DelegateContractIdUnitTests.cc b/src/sdk/tests/unit/DelegateContractIdUnitTests.cc index 68a07dca9..96ecc5815 100644 --- a/src/sdk/tests/unit/DelegateContractIdUnitTests.cc +++ b/src/sdk/tests/unit/DelegateContractIdUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class DelegateContractIdUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/ECDSAsecp256k1PrivateKeyUnitTests.cc b/src/sdk/tests/unit/ECDSAsecp256k1PrivateKeyUnitTests.cc index 209d7b07d..5447f6eab 100644 --- a/src/sdk/tests/unit/ECDSAsecp256k1PrivateKeyUnitTests.cc +++ b/src/sdk/tests/unit/ECDSAsecp256k1PrivateKeyUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -32,8 +32,8 @@ #include #include -using namespace Hedera; -using namespace Hedera::internal::Utilities; +using namespace Hiero; +using namespace Hiero::internal::Utilities; class ECDSAsecp256k1PrivateKeyUnitTests : public ::testing::Test { @@ -85,24 +85,24 @@ class ECDSAsecp256k1PrivateKeyUnitTests : public ::testing::Test "302e0201010420a6170a6aa6389a5bd3a3a8f9375f57bd91aa7f7d8b8b46ce0b702e000a21a5fea00706052b8104000a"; const std::unordered_map> expectedPrivateKeyPairs{ - {unencryptedUncompressedPEMPrivateKey, + { unencryptedUncompressedPEMPrivateKey, { "6F08FA32A2FA21956BBB6D6DF9E59CC2F901DBCFBA06E00569EC7988EB95EEAA", - "02A9FE4198C781CE453545AF5401B649A37B72B553A56FB7AB4DCDFA2D12CFDB49" }}, + "02A9FE4198C781CE453545AF5401B649A37B72B553A56FB7AB4DCDFA2D12CFDB49" } }, { unencryptedCompressedPEMPrivateKey, { "E1F285C9701DB85ADDFDBCD4ABDDF3CE2B841CE5B71189C4267269009A807F63", - "02444AFA80565AE0AEE104FF9B036E5576043ED0004580CFA0E51630FD6E93D4E8" }}, + "02444AFA80565AE0AEE104FF9B036E5576043ED0004580CFA0E51630FD6E93D4E8" } }, { legacyDERPrivateKey, { "8C2CDC9575FE67493443967D74958FD7808A3787FD3337E99CFEEBBC7566B586", - "028173079D2E996EF6B2D064FC82D5FC7094367211E28422BEC50A2F75C365F5FD" }}, + "028173079D2E996EF6B2D064FC82D5FC7094367211E28422BEC50A2F75C365F5FD" } }, { openSSLCompatibleCompressedDERPrivateKey, { "AC318EA8FF8D991AB2F16172B4738E74DC35A56681199CFB1C0CB2E7CB560FFD", - "036843F5CB338BBB4CDB21B0DA4EA739D910951D6E8A5F703D313EFE31AFE788F4" }}, + "036843F5CB338BBB4CDB21B0DA4EA739D910951D6E8A5F703D313EFE31AFE788F4" } }, { openSSLCompatibleUncompressedDERPrivateKey, { "8927647AD12B29646A1D051DA8453462937BB2C813C6815CAC6C0B720526FFC6", - "03AAAC1C3AC1BEA0245B8E00CE1E2018F9EAB61B6331FBEF7266F2287750A65977" }}, + "03AAAC1C3AC1BEA0245B8E00CE1E2018F9EAB61B6331FBEF7266F2287750A65977" } }, { openSSLCompatibleDERPrivateKeyWithoutPublicKey, { "A6170A6AA6389A5BD3A3A8F9375F57BD91AA7F7D8B8B46CE0B702E000A21A5FE", - "03B69A75A5DDB1C0747E995D47555019E5D8A28003AB5202BD92F534361FB4EC8A" }} + "03B69A75A5DDB1C0747E995D47555019E5D8A28003AB5202BD92F534361FB4EC8A" } } }; }; diff --git a/src/sdk/tests/unit/ECDSAsecp256k1PublicKeyUnitTests.cc b/src/sdk/tests/unit/ECDSAsecp256k1PublicKeyUnitTests.cc index da667e898..0eb1a57a9 100644 --- a/src/sdk/tests/unit/ECDSAsecp256k1PublicKeyUnitTests.cc +++ b/src/sdk/tests/unit/ECDSAsecp256k1PublicKeyUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,8 +31,8 @@ #include #include -using namespace Hedera; -using namespace Hedera::internal::Utilities; +using namespace Hiero; +using namespace Hiero::internal::Utilities; class ECDSAsecp256k1PublicKeyUnitTests : public ::testing::Test { @@ -93,9 +93,9 @@ class ECDSAsecp256k1PublicKeyUnitTests : public ::testing::Test "f855ddcad2377e22259d1fcb4e0f1d35e8f2056300c15070bcbfce3759cc9d"; const std::unordered_map expectedPublicKeyPairs{ - {legacyDERPublicKey, "028173079D2E996EF6B2D064FC82D5FC7094367211E28422BEC50A2F75C365F5FD"}, - { openSSLCompatibleCompressedDERPublicKey, "036843F5CB338BBB4CDB21B0DA4EA739D910951D6E8A5F703D313EFE31AFE788F4"}, - { openSSLCompatibleUncompressedDERPublicKey, "03AAAC1C3AC1BEA0245B8E00CE1E2018F9EAB61B6331FBEF7266F2287750A65977"}, + { legacyDERPublicKey, "028173079D2E996EF6B2D064FC82D5FC7094367211E28422BEC50A2F75C365F5FD" }, + { openSSLCompatibleCompressedDERPublicKey, "036843F5CB338BBB4CDB21B0DA4EA739D910951D6E8A5F703D313EFE31AFE788F4" }, + { openSSLCompatibleUncompressedDERPublicKey, "03AAAC1C3AC1BEA0245B8E00CE1E2018F9EAB61B6331FBEF7266F2287750A65977" }, }; }; @@ -205,7 +205,7 @@ TEST_F(ECDSAsecp256k1PublicKeyUnitTests, FromBytes) EXPECT_THROW( const std::shared_ptr key = ECDSAsecp256k1PublicKey::fromBytes(concatenateVectors({ ECDSAsecp256k1PublicKey::DER_ENCODED_UNCOMPRESSED_PREFIX_BYTES, - {std::byte(0x76), std::byte(0x47), std::byte(0x85), std::byte(0x47), std::byte(0x15), std::byte(0xd4)} + { std::byte(0x76), std::byte(0x47), std::byte(0x85), std::byte(0x47), std::byte(0x15), std::byte(0xd4) } })), BadKeyException); EXPECT_THROW(const std::shared_ptr key = diff --git a/src/sdk/tests/unit/ED25519PrivateKeyUnitTests.cc b/src/sdk/tests/unit/ED25519PrivateKeyUnitTests.cc index d6503cb6c..8f194e0f9 100644 --- a/src/sdk/tests/unit/ED25519PrivateKeyUnitTests.cc +++ b/src/sdk/tests/unit/ED25519PrivateKeyUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,8 +31,8 @@ #include #include -using namespace Hedera; -using namespace Hedera::internal::Utilities; +using namespace Hiero; +using namespace Hiero::internal::Utilities; class ED25519PrivateKeyUnitTests : public ::testing::Test { @@ -69,12 +69,12 @@ class ED25519PrivateKeyUnitTests : public ::testing::Test "KEY-----"; const std::unordered_map> expectedPrivateKeyPairs{ - {openSSLCompatiblePrivateKey, + { openSSLCompatiblePrivateKey, { "FEB858A4A69600A5EEF2D9C76F7FB84FC0B6627F29E0AB17E160F640C267D404", - "8CCD31B53D1835B467AAC795DAB19B274DD3B37E3DAF12FCEC6BC02BAC87B53D" }}, + "8CCD31B53D1835B467AAC795DAB19B274DD3B37E3DAF12FCEC6BC02BAC87B53D" } }, { unencryptedPemPrivateKey, { "E81B8DA1E012A17B3D8D2DD9D51FD95534BB5311A0A8A2FDFCB00E5CDEE25BE5", - "F7B9AA4A8E4EEE94E4277DFE757D8D7CDE027E7CD5349B7D8E6EE21C9B9395BE" }}, + "F7B9AA4A8E4EEE94E4277DFE757D8D7CDE027E7CD5349B7D8E6EE21C9B9395BE" } }, }; }; diff --git a/src/sdk/tests/unit/ED25519PublicKeyUnitTests.cc b/src/sdk/tests/unit/ED25519PublicKeyUnitTests.cc index 635e43ea7..123c80f79 100644 --- a/src/sdk/tests/unit/ED25519PublicKeyUnitTests.cc +++ b/src/sdk/tests/unit/ED25519PublicKeyUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,8 +30,8 @@ #include #include -using namespace Hedera; -using namespace Hedera::internal::Utilities; +using namespace Hiero; +using namespace Hiero::internal::Utilities; class ED25519PublicKeyUnitTests : public ::testing::Test { @@ -63,7 +63,7 @@ class ED25519PublicKeyUnitTests : public ::testing::Test const std::string_view openSSLCompatibleDERPublicKey = "302A300506032B65700321008CCD31B53D1835B467AAC795DAB19B274DD3B37E3DAF12FCEC6BC02BAC87B53D"; const std::unordered_map expectedPublicKeyPairs{ - {openSSLCompatibleDERPublicKey, "8CCD31B53D1835B467AAC795DAB19B274DD3B37E3DAF12FCEC6BC02BAC87B53D"}, + { openSSLCompatibleDERPublicKey, "8CCD31B53D1835B467AAC795DAB19B274DD3B37E3DAF12FCEC6BC02BAC87B53D" }, }; }; @@ -142,7 +142,7 @@ TEST_F(ED25519PublicKeyUnitTests, FromBytes) EXPECT_THROW( const std::shared_ptr key = ED25519PublicKey::fromBytes(concatenateVectors({ ED25519PublicKey::DER_ENCODED_PREFIX_BYTES, - {std::byte(0x76), std::byte(0x47), std::byte(0x85), std::byte(0x47), std::byte(0x15), std::byte(0xD4)} + { std::byte(0x76), std::byte(0x47), std::byte(0x85), std::byte(0x47), std::byte(0x15), std::byte(0xD4) } })), BadKeyException); EXPECT_THROW(const std::shared_ptr key = diff --git a/src/sdk/tests/unit/EthereumFlowUnitTests.cc b/src/sdk/tests/unit/EthereumFlowUnitTests.cc index 71ac8499c..4a95ec419 100644 --- a/src/sdk/tests/unit/EthereumFlowUnitTests.cc +++ b/src/sdk/tests/unit/EthereumFlowUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class EthereumFlowUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/EthereumTransactionDataEip1559UnitTests.cc b/src/sdk/tests/unit/EthereumTransactionDataEip1559UnitTests.cc index 6591086b6..9a788b94b 100644 --- a/src/sdk/tests/unit/EthereumTransactionDataEip1559UnitTests.cc +++ b/src/sdk/tests/unit/EthereumTransactionDataEip1559UnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include -using namespace Hedera; +using namespace Hiero; class EthereumTransactionDataEip1559UnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/EthereumTransactionDataLegacyUnitTests.cc b/src/sdk/tests/unit/EthereumTransactionDataLegacyUnitTests.cc index 8073e7c23..d366de61a 100644 --- a/src/sdk/tests/unit/EthereumTransactionDataLegacyUnitTests.cc +++ b/src/sdk/tests/unit/EthereumTransactionDataLegacyUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include -using namespace Hedera; +using namespace Hiero; class EthereumTransactionDataLegacyUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/EthereumTransactionUnitTests.cc b/src/sdk/tests/unit/EthereumTransactionUnitTests.cc index 7f8145390..d3b2b5dc7 100644 --- a/src/sdk/tests/unit/EthereumTransactionUnitTests.cc +++ b/src/sdk/tests/unit/EthereumTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -32,7 +32,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class EthereumTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/EvmAddressUnitTests.cc b/src/sdk/tests/unit/EvmAddressUnitTests.cc index 36f14a102..503096758 100644 --- a/src/sdk/tests/unit/EvmAddressUnitTests.cc +++ b/src/sdk/tests/unit/EvmAddressUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class EvmAddressUnitTests : public testing::Test { diff --git a/src/sdk/tests/unit/ExchangeRateUnitTests.cc b/src/sdk/tests/unit/ExchangeRateUnitTests.cc index 6ba085879..857f84194 100644 --- a/src/sdk/tests/unit/ExchangeRateUnitTests.cc +++ b/src/sdk/tests/unit/ExchangeRateUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class ExchangeRateUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/FeeAssessmentMethodUnitTests.cc b/src/sdk/tests/unit/FeeAssessmentMethodUnitTests.cc index cc8bad632..d7570cde0 100644 --- a/src/sdk/tests/unit/FeeAssessmentMethodUnitTests.cc +++ b/src/sdk/tests/unit/FeeAssessmentMethodUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ #include -using namespace Hedera; +using namespace Hiero; class FeeAssessmentMethodUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/FileAppendTransactionUnitTests.cc b/src/sdk/tests/unit/FileAppendTransactionUnitTests.cc index 607bf3b7b..0c4e1de8d 100644 --- a/src/sdk/tests/unit/FileAppendTransactionUnitTests.cc +++ b/src/sdk/tests/unit/FileAppendTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -32,7 +32,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class FileAppendTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/FileContentsQueryUnitTests.cc b/src/sdk/tests/unit/FileContentsQueryUnitTests.cc index cc7425497..70c85f0d7 100644 --- a/src/sdk/tests/unit/FileContentsQueryUnitTests.cc +++ b/src/sdk/tests/unit/FileContentsQueryUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include -using namespace Hedera; +using namespace Hiero; class FileContentsQueryUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/FileCreateTransactionUnitTests.cc b/src/sdk/tests/unit/FileCreateTransactionUnitTests.cc index e9f2d1768..9535c6021 100644 --- a/src/sdk/tests/unit/FileCreateTransactionUnitTests.cc +++ b/src/sdk/tests/unit/FileCreateTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -34,7 +34,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class FileCreateTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/FileDeleteTransactionUnitTests.cc b/src/sdk/tests/unit/FileDeleteTransactionUnitTests.cc index 3fcab133d..467e7de6c 100644 --- a/src/sdk/tests/unit/FileDeleteTransactionUnitTests.cc +++ b/src/sdk/tests/unit/FileDeleteTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class FileDeleteTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/FileIdUnitTests.cc b/src/sdk/tests/unit/FileIdUnitTests.cc index d5d87ce6a..a5b5949a1 100644 --- a/src/sdk/tests/unit/FileIdUnitTests.cc +++ b/src/sdk/tests/unit/FileIdUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class FileIdUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/FileInfoQueryUnitTests.cc b/src/sdk/tests/unit/FileInfoQueryUnitTests.cc index 88c976505..a3b2970fa 100644 --- a/src/sdk/tests/unit/FileInfoQueryUnitTests.cc +++ b/src/sdk/tests/unit/FileInfoQueryUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include -using namespace Hedera; +using namespace Hiero; class FileInfoQueryUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/FileInfoUnitTests.cc b/src/sdk/tests/unit/FileInfoUnitTests.cc index 8e264e064..524eaa27c 100644 --- a/src/sdk/tests/unit/FileInfoUnitTests.cc +++ b/src/sdk/tests/unit/FileInfoUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class FileInfoUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/FileUpdateTransactionUnitTests.cc b/src/sdk/tests/unit/FileUpdateTransactionUnitTests.cc index b636a6608..1b7c54fd6 100644 --- a/src/sdk/tests/unit/FileUpdateTransactionUnitTests.cc +++ b/src/sdk/tests/unit/FileUpdateTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -34,7 +34,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class FileUpdateTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/FreezeTransactionUnitTests.cc b/src/sdk/tests/unit/FreezeTransactionUnitTests.cc index a50e4e20f..ab70c7d6f 100644 --- a/src/sdk/tests/unit/FreezeTransactionUnitTests.cc +++ b/src/sdk/tests/unit/FreezeTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -34,7 +34,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class FreezeTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/HbarAllowanceUnitTests.cc b/src/sdk/tests/unit/HbarAllowanceUnitTests.cc index c18eb829e..4a81005e7 100644 --- a/src/sdk/tests/unit/HbarAllowanceUnitTests.cc +++ b/src/sdk/tests/unit/HbarAllowanceUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class HbarAllowanceUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/HbarTransferUnitTests.cc b/src/sdk/tests/unit/HbarTransferUnitTests.cc index 6c111425b..fa0be3cb2 100644 --- a/src/sdk/tests/unit/HbarTransferUnitTests.cc +++ b/src/sdk/tests/unit/HbarTransferUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class HbarTransferUnitTests : public ::testing::Test { @@ -37,7 +37,7 @@ class HbarTransferUnitTests : public ::testing::Test const AccountId mAccountId = AccountId(10ULL); }; -// Tests serialization of Hedera::HbarTransfer -> proto::AccountAmount. +// Tests serialization of Hiero::HbarTransfer -> proto::AccountAmount. TEST_F(HbarTransferUnitTests, SerializeTransferToProtobuf) { // Given @@ -52,7 +52,7 @@ TEST_F(HbarTransferUnitTests, SerializeTransferToProtobuf) EXPECT_FALSE(protoAccountAmountPtr->is_approval()); } -// Tests deserialization of proto::AccountAmount -> Hedera::HbarTransfer. +// Tests deserialization of proto::AccountAmount -> Hiero::HbarTransfer. TEST_F(HbarTransferUnitTests, DeserializeTransferFromProtobuf) { // Given @@ -72,7 +72,7 @@ TEST_F(HbarTransferUnitTests, DeserializeTransferFromProtobuf) EXPECT_TRUE(transfer.mIsApproved); } -// Tests serialization & deserialization of Hedera::HbarTransfer -> proto::AccountAmount -> Hedera::HbarTransfer. +// Tests serialization & deserialization of Hiero::HbarTransfer -> proto::AccountAmount -> Hiero::HbarTransfer. TEST_F(HbarTransferUnitTests, ProtoTransfer) { AccountId accountId(10ULL); diff --git a/src/sdk/tests/unit/HbarUnitTests.cc b/src/sdk/tests/unit/HbarUnitTests.cc index 5f8f767a1..616c3a16c 100644 --- a/src/sdk/tests/unit/HbarUnitTests.cc +++ b/src/sdk/tests/unit/HbarUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ #include -using namespace Hedera; +using namespace Hiero; class HbarUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/KeyListUnitTests.cc b/src/sdk/tests/unit/KeyListUnitTests.cc index 28da16bba..a7050ce1f 100644 --- a/src/sdk/tests/unit/KeyListUnitTests.cc +++ b/src/sdk/tests/unit/KeyListUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class KeyListUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/LedgerIdUnitTests.cc b/src/sdk/tests/unit/LedgerIdUnitTests.cc index 4ac4ae9f0..77ac8d863 100644 --- a/src/sdk/tests/unit/LedgerIdUnitTests.cc +++ b/src/sdk/tests/unit/LedgerIdUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class LedgerIdUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/NetworkUnitTests.cc b/src/sdk/tests/unit/NetworkUnitTests.cc index 732701a02..f534fa56b 100644 --- a/src/sdk/tests/unit/NetworkUnitTests.cc +++ b/src/sdk/tests/unit/NetworkUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class NetworkUnitTests : public ::testing::Test { @@ -35,7 +35,7 @@ class NetworkUnitTests : public ::testing::Test TEST_F(NetworkUnitTests, ConstructForMainnet) { // Given / When - Hedera::internal::Network mainnetNetwork = Hedera::internal::Network::forMainnet(); + Hiero::internal::Network mainnetNetwork = Hiero::internal::Network::forMainnet(); // Then std::unordered_map networkMap; @@ -54,7 +54,7 @@ TEST_F(NetworkUnitTests, ConstructForMainnet) TEST_F(NetworkUnitTests, ConstructForTestnet) { // Given / When - Hedera::internal::Network testnetNetwork = Hedera::internal::Network::forTestnet(); + Hiero::internal::Network testnetNetwork = Hiero::internal::Network::forTestnet(); // Then std::unordered_map networkMap; @@ -73,7 +73,7 @@ TEST_F(NetworkUnitTests, ConstructForTestnet) TEST_F(NetworkUnitTests, ConstructForPreviewnet) { // Given / When - Hedera::internal::Network previewnetNetwork = Hedera::internal::Network::forPreviewnet(); + Hiero::internal::Network previewnetNetwork = Hiero::internal::Network::forPreviewnet(); // Then std::unordered_map networkMap; @@ -93,12 +93,12 @@ TEST_F(NetworkUnitTests, ConstructCustomNetwork) { // Given const std::unordered_map testNetwork = { - {"2.testnet.hedera.com:50211", AccountId(5ULL)}, - { "3.testnet.hedera.com:50211", AccountId(6ULL)} + { "2.testnet.hedera.com:50211", AccountId(5ULL) }, + { "3.testnet.hedera.com:50211", AccountId(6ULL) } }; // When - Hedera::internal::Network customNetwork = Hedera::internal::Network::forNetwork(testNetwork); + Hiero::internal::Network customNetwork = Hiero::internal::Network::forNetwork(testNetwork); // Then std::unordered_map networkMap; @@ -117,7 +117,7 @@ TEST_F(NetworkUnitTests, ConstructCustomNetwork) TEST_F(NetworkUnitTests, GetSetLedgerIdForMainnet) { // Given - Hedera::internal::Network mainnetNetwork = Hedera::internal::Network::forMainnet(); + Hiero::internal::Network mainnetNetwork = Hiero::internal::Network::forMainnet(); // When mainnetNetwork.setLedgerId(LedgerId::TESTNET); @@ -132,13 +132,13 @@ TEST_F(NetworkUnitTests, GetSetLedgerIdForMainnet) TEST_F(NetworkUnitTests, GetSetTransportSecurity) { // Given - Hedera::internal::Network testnetNetwork = Hedera::internal::Network::forTestnet(); + Hiero::internal::Network testnetNetwork = Hiero::internal::Network::forTestnet(); // When - testnetNetwork.setTransportSecurity(Hedera::internal::TLSBehavior::DISABLE); + testnetNetwork.setTransportSecurity(Hiero::internal::TLSBehavior::DISABLE); // Then - EXPECT_EQ(testnetNetwork.isTransportSecurity(), Hedera::internal::TLSBehavior::DISABLE); + EXPECT_EQ(testnetNetwork.isTransportSecurity(), Hiero::internal::TLSBehavior::DISABLE); // Clean up testnetNetwork.close(); @@ -147,7 +147,7 @@ TEST_F(NetworkUnitTests, GetSetTransportSecurity) TEST_F(NetworkUnitTests, GetSetGetMaxNodesPerRequest) { // Given - Hedera::internal::Network testnetNetwork = Hedera::internal::Network::forTestnet(); + Hiero::internal::Network testnetNetwork = Hiero::internal::Network::forTestnet(); // When testnetNetwork.setMaxNodesPerRequest(10); @@ -162,7 +162,7 @@ TEST_F(NetworkUnitTests, GetSetGetMaxNodesPerRequest) TEST_F(NetworkUnitTests, VerifyCertificates) { // Given - Hedera::internal::Network testnetNetwork = Hedera::internal::Network::forTestnet(); + Hiero::internal::Network testnetNetwork = Hiero::internal::Network::forTestnet(); // When testnetNetwork.setVerifyCertificates(false); diff --git a/src/sdk/tests/unit/NetworkVersionInfoUnitTests.cc b/src/sdk/tests/unit/NetworkVersionInfoUnitTests.cc index 52a126b13..f089e3558 100644 --- a/src/sdk/tests/unit/NetworkVersionInfoUnitTests.cc +++ b/src/sdk/tests/unit/NetworkVersionInfoUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class NetworkVersionInfoUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/NftIdUnitTests.cc b/src/sdk/tests/unit/NftIdUnitTests.cc index 0856ecc34..fa05d3e26 100644 --- a/src/sdk/tests/unit/NftIdUnitTests.cc +++ b/src/sdk/tests/unit/NftIdUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class NftIdUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/NodeAddressUnitTests.cc b/src/sdk/tests/unit/NodeAddressUnitTests.cc index 820caf07a..3e38abb6b 100644 --- a/src/sdk/tests/unit/NodeAddressUnitTests.cc +++ b/src/sdk/tests/unit/NodeAddressUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,8 +28,8 @@ #include #include -using namespace Hedera; -using namespace Hedera::internal; +using namespace Hiero; +using namespace Hiero::internal; class NodeAddressUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/NodeCreateTransactionUnitTests.cc b/src/sdk/tests/unit/NodeCreateTransactionUnitTests.cc index 336a7128b..04245a24b 100644 --- a/src/sdk/tests/unit/NodeCreateTransactionUnitTests.cc +++ b/src/sdk/tests/unit/NodeCreateTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class NodeCreateTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/NodeDeleteTransactionUnitTests.cc b/src/sdk/tests/unit/NodeDeleteTransactionUnitTests.cc index a96ef5d75..1653915b5 100644 --- a/src/sdk/tests/unit/NodeDeleteTransactionUnitTests.cc +++ b/src/sdk/tests/unit/NodeDeleteTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class NodeDeleteTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/NodeUpdateTransactionUnitTests.cc b/src/sdk/tests/unit/NodeUpdateTransactionUnitTests.cc index ce4c8b95b..1661d6b1d 100644 --- a/src/sdk/tests/unit/NodeUpdateTransactionUnitTests.cc +++ b/src/sdk/tests/unit/NodeUpdateTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class NodeUpdateTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/PendingAirdropIdUnitTests.cc b/src/sdk/tests/unit/PendingAirdropIdUnitTests.cc index eb3c3cef0..aa6404296 100644 --- a/src/sdk/tests/unit/PendingAirdropIdUnitTests.cc +++ b/src/sdk/tests/unit/PendingAirdropIdUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class PendingAirdropIdUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/PendingAirdropRecordUnitTests.cc b/src/sdk/tests/unit/PendingAirdropRecordUnitTests.cc index 9d427e072..2a4911390 100644 --- a/src/sdk/tests/unit/PendingAirdropRecordUnitTests.cc +++ b/src/sdk/tests/unit/PendingAirdropRecordUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class PendingAirdropRecordUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/PrngTransactionUnitTests.cc b/src/sdk/tests/unit/PrngTransactionUnitTests.cc index b07779763..9eba47dd1 100644 --- a/src/sdk/tests/unit/PrngTransactionUnitTests.cc +++ b/src/sdk/tests/unit/PrngTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class PrngTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/ProxyStakerUnitTests.cc b/src/sdk/tests/unit/ProxyStakerUnitTests.cc index 92c0df391..ee358565e 100644 --- a/src/sdk/tests/unit/ProxyStakerUnitTests.cc +++ b/src/sdk/tests/unit/ProxyStakerUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class ProxyStakerUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/ScheduleCreateTransactionUnitTests.cc b/src/sdk/tests/unit/ScheduleCreateTransactionUnitTests.cc index 41903bb7a..b4311b09e 100644 --- a/src/sdk/tests/unit/ScheduleCreateTransactionUnitTests.cc +++ b/src/sdk/tests/unit/ScheduleCreateTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class ScheduleCreateTransactionTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/ScheduleDeleteTransactionUnitTests.cc b/src/sdk/tests/unit/ScheduleDeleteTransactionUnitTests.cc index adb8c2bb6..381a31edc 100644 --- a/src/sdk/tests/unit/ScheduleDeleteTransactionUnitTests.cc +++ b/src/sdk/tests/unit/ScheduleDeleteTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class ScheduleDeleteTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/ScheduleIdUnitTests.cc b/src/sdk/tests/unit/ScheduleIdUnitTests.cc index a9343ede5..d5f83bec9 100644 --- a/src/sdk/tests/unit/ScheduleIdUnitTests.cc +++ b/src/sdk/tests/unit/ScheduleIdUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class ScheduleIdUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/ScheduleInfoQueryUnitTests.cc b/src/sdk/tests/unit/ScheduleInfoQueryUnitTests.cc index e50b97546..e93f3f50a 100644 --- a/src/sdk/tests/unit/ScheduleInfoQueryUnitTests.cc +++ b/src/sdk/tests/unit/ScheduleInfoQueryUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ #include -using namespace Hedera; +using namespace Hiero; class ScheduleInfoQueryUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/ScheduleInfoUnitTests.cc b/src/sdk/tests/unit/ScheduleInfoUnitTests.cc index 0813ead25..fbf894654 100644 --- a/src/sdk/tests/unit/ScheduleInfoUnitTests.cc +++ b/src/sdk/tests/unit/ScheduleInfoUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class ScheduleInfoUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/ScheduleSignTransactionUnitTests.cc b/src/sdk/tests/unit/ScheduleSignTransactionUnitTests.cc index bacaa8b4b..5cb2d2afe 100644 --- a/src/sdk/tests/unit/ScheduleSignTransactionUnitTests.cc +++ b/src/sdk/tests/unit/ScheduleSignTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class ScheduleSignTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/SemanticVersionUnitTests.cc b/src/sdk/tests/unit/SemanticVersionUnitTests.cc index c94109e92..eb6c9b903 100644 --- a/src/sdk/tests/unit/SemanticVersionUnitTests.cc +++ b/src/sdk/tests/unit/SemanticVersionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class SemanticVersionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/StakingInfoUnitTests.cc b/src/sdk/tests/unit/StakingInfoUnitTests.cc index 407b7a8a7..dcf3a85d9 100644 --- a/src/sdk/tests/unit/StakingInfoUnitTests.cc +++ b/src/sdk/tests/unit/StakingInfoUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class StakingInfoUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/SystemDeleteTransactionUnitTests.cc b/src/sdk/tests/unit/SystemDeleteTransactionUnitTests.cc index 3e78e52a6..e046bd6b3 100644 --- a/src/sdk/tests/unit/SystemDeleteTransactionUnitTests.cc +++ b/src/sdk/tests/unit/SystemDeleteTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class SystemDeleteTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/SystemUndeleteTransactionUnitTests.cc b/src/sdk/tests/unit/SystemUndeleteTransactionUnitTests.cc index a28343538..df586f7fa 100644 --- a/src/sdk/tests/unit/SystemUndeleteTransactionUnitTests.cc +++ b/src/sdk/tests/unit/SystemUndeleteTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class SystemUndeleteTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenAirdropTransactionUnitTests.cc b/src/sdk/tests/unit/TokenAirdropTransactionUnitTests.cc index 26c86e0aa..c58676aa8 100644 --- a/src/sdk/tests/unit/TokenAirdropTransactionUnitTests.cc +++ b/src/sdk/tests/unit/TokenAirdropTransactionUnitTests.cc @@ -5,7 +5,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenAirdropTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenAllowanceUnitTests.cc b/src/sdk/tests/unit/TokenAllowanceUnitTests.cc index 03fc7a6f7..9963d3035 100644 --- a/src/sdk/tests/unit/TokenAllowanceUnitTests.cc +++ b/src/sdk/tests/unit/TokenAllowanceUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenAllowanceUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenAssociateTransactionUnitTests.cc b/src/sdk/tests/unit/TokenAssociateTransactionUnitTests.cc index 084469dfb..1630834e2 100644 --- a/src/sdk/tests/unit/TokenAssociateTransactionUnitTests.cc +++ b/src/sdk/tests/unit/TokenAssociateTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenAssociateTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenAssociationUnitTests.cc b/src/sdk/tests/unit/TokenAssociationUnitTests.cc index 2aadf3aa2..531735e1a 100644 --- a/src/sdk/tests/unit/TokenAssociationUnitTests.cc +++ b/src/sdk/tests/unit/TokenAssociationUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenAssociationUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenBurnTransactionUnitTests.cc b/src/sdk/tests/unit/TokenBurnTransactionUnitTests.cc index de9663559..0060b30b9 100644 --- a/src/sdk/tests/unit/TokenBurnTransactionUnitTests.cc +++ b/src/sdk/tests/unit/TokenBurnTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenBurnTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenCancelAirdropTransactionUnitTests.cc b/src/sdk/tests/unit/TokenCancelAirdropTransactionUnitTests.cc index a641a8c8d..7a3045d3d 100644 --- a/src/sdk/tests/unit/TokenCancelAirdropTransactionUnitTests.cc +++ b/src/sdk/tests/unit/TokenCancelAirdropTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenCancelAirdropTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenClaimAirdropTransactionUnitTests.cc b/src/sdk/tests/unit/TokenClaimAirdropTransactionUnitTests.cc index 2f212a5c2..2ded8b66c 100644 --- a/src/sdk/tests/unit/TokenClaimAirdropTransactionUnitTests.cc +++ b/src/sdk/tests/unit/TokenClaimAirdropTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenClaimAirdropTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenCreateTransactionUnitTests.cc b/src/sdk/tests/unit/TokenCreateTransactionUnitTests.cc index b3b0d43b3..b68985350 100644 --- a/src/sdk/tests/unit/TokenCreateTransactionUnitTests.cc +++ b/src/sdk/tests/unit/TokenCreateTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenCreateTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenDeleteTransactionUnitTests.cc b/src/sdk/tests/unit/TokenDeleteTransactionUnitTests.cc index 99666fb16..760d4f1a3 100644 --- a/src/sdk/tests/unit/TokenDeleteTransactionUnitTests.cc +++ b/src/sdk/tests/unit/TokenDeleteTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenDeleteTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenDissociateTransactionUnitTests.cc b/src/sdk/tests/unit/TokenDissociateTransactionUnitTests.cc index 26e9e8847..1593aaa3e 100644 --- a/src/sdk/tests/unit/TokenDissociateTransactionUnitTests.cc +++ b/src/sdk/tests/unit/TokenDissociateTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenDissociateTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenFeeScheduleUpdateTransactionUnitTests.cc b/src/sdk/tests/unit/TokenFeeScheduleUpdateTransactionUnitTests.cc index e82dfeabc..8a653031b 100644 --- a/src/sdk/tests/unit/TokenFeeScheduleUpdateTransactionUnitTests.cc +++ b/src/sdk/tests/unit/TokenFeeScheduleUpdateTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenFeeScheduleUpdateTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenFreezeTransactionUnitTests.cc b/src/sdk/tests/unit/TokenFreezeTransactionUnitTests.cc index 87714adeb..8335c9d21 100644 --- a/src/sdk/tests/unit/TokenFreezeTransactionUnitTests.cc +++ b/src/sdk/tests/unit/TokenFreezeTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenFreezeTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenGrantKycTransactionUnitTests.cc b/src/sdk/tests/unit/TokenGrantKycTransactionUnitTests.cc index 0e5c95793..3d19ad403 100644 --- a/src/sdk/tests/unit/TokenGrantKycTransactionUnitTests.cc +++ b/src/sdk/tests/unit/TokenGrantKycTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenGrantKycTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenIdUnitTests.cc b/src/sdk/tests/unit/TokenIdUnitTests.cc index cdc6e32f0..ae75d879f 100644 --- a/src/sdk/tests/unit/TokenIdUnitTests.cc +++ b/src/sdk/tests/unit/TokenIdUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenIdUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenInfoQueryUnitTests.cc b/src/sdk/tests/unit/TokenInfoQueryUnitTests.cc index 74d7e0e5b..38db36d77 100644 --- a/src/sdk/tests/unit/TokenInfoQueryUnitTests.cc +++ b/src/sdk/tests/unit/TokenInfoQueryUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ #include -using namespace Hedera; +using namespace Hiero; class TokenInfoQueryUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenInfoUnitTests.cc b/src/sdk/tests/unit/TokenInfoUnitTests.cc index 783357a6b..1772de443 100644 --- a/src/sdk/tests/unit/TokenInfoUnitTests.cc +++ b/src/sdk/tests/unit/TokenInfoUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenInfoUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenMintTransactionUnitTests.cc b/src/sdk/tests/unit/TokenMintTransactionUnitTests.cc index 76cac0476..6254ed916 100644 --- a/src/sdk/tests/unit/TokenMintTransactionUnitTests.cc +++ b/src/sdk/tests/unit/TokenMintTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenMintTransactionUnitTests : public ::testing::Test { @@ -45,9 +45,9 @@ class TokenMintTransactionUnitTests : public ::testing::Test const TokenId mTestTokenId = TokenId(1ULL, 2ULL, 3ULL); const uint64_t mTestAmount = 4ULL; const std::vector> mTestMetadataList = { - {std::byte(0x05), std::byte(0x06), std::byte(0x07)}, - { std::byte(0x08), std::byte(0x09), std::byte(0x0A)}, - { std::byte(0x0B), std::byte(0x0C), std::byte(0x0D)} + { std::byte(0x05), std::byte(0x06), std::byte(0x07) }, + { std::byte(0x08), std::byte(0x09), std::byte(0x0A) }, + { std::byte(0x0B), std::byte(0x0C), std::byte(0x0D) } }; }; diff --git a/src/sdk/tests/unit/TokenNftAllowanceUnitTests.cc b/src/sdk/tests/unit/TokenNftAllowanceUnitTests.cc index a7b6e9271..6b3d55dd6 100644 --- a/src/sdk/tests/unit/TokenNftAllowanceUnitTests.cc +++ b/src/sdk/tests/unit/TokenNftAllowanceUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenNftAllowanceUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenNftInfoQueryUnitTests.cc b/src/sdk/tests/unit/TokenNftInfoQueryUnitTests.cc index 2c81a2803..56d9ea33d 100644 --- a/src/sdk/tests/unit/TokenNftInfoQueryUnitTests.cc +++ b/src/sdk/tests/unit/TokenNftInfoQueryUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ #include -using namespace Hedera; +using namespace Hiero; class TokenNftInfoQueryUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenNftTransferUnitTests.cc b/src/sdk/tests/unit/TokenNftTransferUnitTests.cc index 3695d4208..504aa3e2f 100644 --- a/src/sdk/tests/unit/TokenNftTransferUnitTests.cc +++ b/src/sdk/tests/unit/TokenNftTransferUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenNftTransferUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenPauseTransactionUnitTests.cc b/src/sdk/tests/unit/TokenPauseTransactionUnitTests.cc index a8050c070..848f86a58 100644 --- a/src/sdk/tests/unit/TokenPauseTransactionUnitTests.cc +++ b/src/sdk/tests/unit/TokenPauseTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenPauseTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenRejectTransactionUnitTests.cc b/src/sdk/tests/unit/TokenRejectTransactionUnitTests.cc index 9641430f2..0b0aea27f 100644 --- a/src/sdk/tests/unit/TokenRejectTransactionUnitTests.cc +++ b/src/sdk/tests/unit/TokenRejectTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenRejectTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenRevokeKycTransactionUnitTests.cc b/src/sdk/tests/unit/TokenRevokeKycTransactionUnitTests.cc index 6cf80a991..e961dff55 100644 --- a/src/sdk/tests/unit/TokenRevokeKycTransactionUnitTests.cc +++ b/src/sdk/tests/unit/TokenRevokeKycTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenRevokeKycTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenSupplyTypeUnitTests.cc b/src/sdk/tests/unit/TokenSupplyTypeUnitTests.cc index b9e6c528b..179b11832 100644 --- a/src/sdk/tests/unit/TokenSupplyTypeUnitTests.cc +++ b/src/sdk/tests/unit/TokenSupplyTypeUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenSupplyTypeUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenTransferUnitTests.cc b/src/sdk/tests/unit/TokenTransferUnitTests.cc index 009cc12e3..49db9c246 100644 --- a/src/sdk/tests/unit/TokenTransferUnitTests.cc +++ b/src/sdk/tests/unit/TokenTransferUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenTransferUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenTypeUnitTests.cc b/src/sdk/tests/unit/TokenTypeUnitTests.cc index d5bf51db8..a8a486d8a 100644 --- a/src/sdk/tests/unit/TokenTypeUnitTests.cc +++ b/src/sdk/tests/unit/TokenTypeUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenTypeUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenUnfreezeTransactionUnitTests.cc b/src/sdk/tests/unit/TokenUnfreezeTransactionUnitTests.cc index e8ea08189..e51af7941 100644 --- a/src/sdk/tests/unit/TokenUnfreezeTransactionUnitTests.cc +++ b/src/sdk/tests/unit/TokenUnfreezeTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenUnfreezeTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenUnpauseTransactionUnitTests.cc b/src/sdk/tests/unit/TokenUnpauseTransactionUnitTests.cc index 6589bb685..0cc153d07 100644 --- a/src/sdk/tests/unit/TokenUnpauseTransactionUnitTests.cc +++ b/src/sdk/tests/unit/TokenUnpauseTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenUnpauseTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenUpdateTransactionUnitTests.cc b/src/sdk/tests/unit/TokenUpdateTransactionUnitTests.cc index 31f6bba7d..11777d0ae 100644 --- a/src/sdk/tests/unit/TokenUpdateTransactionUnitTests.cc +++ b/src/sdk/tests/unit/TokenUpdateTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenUpdateTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TokenWipeTransactionUnitTests.cc b/src/sdk/tests/unit/TokenWipeTransactionUnitTests.cc index 7dec5fb13..bc39421df 100644 --- a/src/sdk/tests/unit/TokenWipeTransactionUnitTests.cc +++ b/src/sdk/tests/unit/TokenWipeTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TokenWipeTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TopicCreateTransactionUnitTests.cc b/src/sdk/tests/unit/TopicCreateTransactionUnitTests.cc index e23ca2076..852c94014 100644 --- a/src/sdk/tests/unit/TopicCreateTransactionUnitTests.cc +++ b/src/sdk/tests/unit/TopicCreateTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TopicCreateTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TopicDeleteTransactionUnitTests.cc b/src/sdk/tests/unit/TopicDeleteTransactionUnitTests.cc index 3783c72fe..708bb64e6 100644 --- a/src/sdk/tests/unit/TopicDeleteTransactionUnitTests.cc +++ b/src/sdk/tests/unit/TopicDeleteTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TopicDeleteTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TopicIdUnitTests.cc b/src/sdk/tests/unit/TopicIdUnitTests.cc index 69308124d..0439708af 100644 --- a/src/sdk/tests/unit/TopicIdUnitTests.cc +++ b/src/sdk/tests/unit/TopicIdUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TopicIdUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TopicInfoQueryUnitTests.cc b/src/sdk/tests/unit/TopicInfoQueryUnitTests.cc index b22ead3ea..b20dde84c 100644 --- a/src/sdk/tests/unit/TopicInfoQueryUnitTests.cc +++ b/src/sdk/tests/unit/TopicInfoQueryUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ #include -using namespace Hedera; +using namespace Hiero; class TopicInfoQueryUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TopicInfoUnitTests.cc b/src/sdk/tests/unit/TopicInfoUnitTests.cc index 691566d41..306ab6264 100644 --- a/src/sdk/tests/unit/TopicInfoUnitTests.cc +++ b/src/sdk/tests/unit/TopicInfoUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TopicInfoUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TopicMessageChunkUnitTests.cc b/src/sdk/tests/unit/TopicMessageChunkUnitTests.cc index 78d39a95f..60bb820db 100644 --- a/src/sdk/tests/unit/TopicMessageChunkUnitTests.cc +++ b/src/sdk/tests/unit/TopicMessageChunkUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TopicMessageChunkUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TopicMessageQueryUnitTests.cc b/src/sdk/tests/unit/TopicMessageQueryUnitTests.cc index d0f3f7e9a..296b55c5d 100644 --- a/src/sdk/tests/unit/TopicMessageQueryUnitTests.cc +++ b/src/sdk/tests/unit/TopicMessageQueryUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TopicMessageQueryUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TopicMessageSubmitTransactionUnitTests.cc b/src/sdk/tests/unit/TopicMessageSubmitTransactionUnitTests.cc index ac1353a68..d8ab34a05 100644 --- a/src/sdk/tests/unit/TopicMessageSubmitTransactionUnitTests.cc +++ b/src/sdk/tests/unit/TopicMessageSubmitTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TopicMessageSubmitTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TopicMessageUnitTests.cc b/src/sdk/tests/unit/TopicMessageUnitTests.cc index c16b2f43e..821069d1e 100644 --- a/src/sdk/tests/unit/TopicMessageUnitTests.cc +++ b/src/sdk/tests/unit/TopicMessageUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TopicMessageUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TopicUpdateTransactionUnitTests.cc b/src/sdk/tests/unit/TopicUpdateTransactionUnitTests.cc index 71f0166d9..3f15ce08d 100644 --- a/src/sdk/tests/unit/TopicUpdateTransactionUnitTests.cc +++ b/src/sdk/tests/unit/TopicUpdateTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TopicUpdateTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TransactionIdUnitTests.cc b/src/sdk/tests/unit/TransactionIdUnitTests.cc index 9bfb88150..fc39b48ce 100644 --- a/src/sdk/tests/unit/TransactionIdUnitTests.cc +++ b/src/sdk/tests/unit/TransactionIdUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TransactionIdUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TransactionReceiptQueryUnitTests.cc b/src/sdk/tests/unit/TransactionReceiptQueryUnitTests.cc index aa2395206..2f2677ba9 100644 --- a/src/sdk/tests/unit/TransactionReceiptQueryUnitTests.cc +++ b/src/sdk/tests/unit/TransactionReceiptQueryUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include -using namespace Hedera; +using namespace Hiero; class TransactionReceiptQueryUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TransactionReceiptUnitTests.cc b/src/sdk/tests/unit/TransactionReceiptUnitTests.cc index 9d50dfc41..2bcedcd8d 100644 --- a/src/sdk/tests/unit/TransactionReceiptUnitTests.cc +++ b/src/sdk/tests/unit/TransactionReceiptUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TransactionReceiptUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TransactionRecordQueryUnitTests.cc b/src/sdk/tests/unit/TransactionRecordQueryUnitTests.cc index 8c08c05db..cbbf280cb 100644 --- a/src/sdk/tests/unit/TransactionRecordQueryUnitTests.cc +++ b/src/sdk/tests/unit/TransactionRecordQueryUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include -using namespace Hedera; +using namespace Hiero; class TransactionRecordQueryUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TransactionRecordUnitTests.cc b/src/sdk/tests/unit/TransactionRecordUnitTests.cc index 414bc5856..0de6204a2 100644 --- a/src/sdk/tests/unit/TransactionRecordUnitTests.cc +++ b/src/sdk/tests/unit/TransactionRecordUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TransactionRecordUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TransactionResponseUnitTests.cc b/src/sdk/tests/unit/TransactionResponseUnitTests.cc index b3ff451f5..d40ff44d5 100644 --- a/src/sdk/tests/unit/TransactionResponseUnitTests.cc +++ b/src/sdk/tests/unit/TransactionResponseUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TransactionResponseUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TransactionUnitTests.cc b/src/sdk/tests/unit/TransactionUnitTests.cc index ab2f434fb..546f57155 100644 --- a/src/sdk/tests/unit/TransactionUnitTests.cc +++ b/src/sdk/tests/unit/TransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -68,7 +68,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/TransferTransactionUnitTests.cc b/src/sdk/tests/unit/TransferTransactionUnitTests.cc index 2b8c4c531..89a44d847 100644 --- a/src/sdk/tests/unit/TransferTransactionUnitTests.cc +++ b/src/sdk/tests/unit/TransferTransactionUnitTests.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class TransferTransactionUnitTests : public ::testing::Test { diff --git a/src/sdk/tests/unit/vectors/BIP39TestVectors.cc b/src/sdk/tests/unit/vectors/BIP39TestVectors.cc index 001482dfc..38787d59d 100644 --- a/src/sdk/tests/unit/vectors/BIP39TestVectors.cc +++ b/src/sdk/tests/unit/vectors/BIP39TestVectors.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class BIP39TestVectors : public testing::TestWithParam> { diff --git a/src/sdk/tests/unit/vectors/Hedera12WordMnemonicBIP39TestVectors.cc b/src/sdk/tests/unit/vectors/Hedera12WordMnemonicBIP39TestVectors.cc index bcf64e6f5..8f9edac41 100644 --- a/src/sdk/tests/unit/vectors/Hedera12WordMnemonicBIP39TestVectors.cc +++ b/src/sdk/tests/unit/vectors/Hedera12WordMnemonicBIP39TestVectors.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class Hedera12WordMnemonicBIP39TestVectors : public testing::TestWithParam> diff --git a/src/sdk/tests/unit/vectors/Hedera24WordMnemonicBIP39TestVectors.cc b/src/sdk/tests/unit/vectors/Hedera24WordMnemonicBIP39TestVectors.cc index b524c0a10..57463042b 100644 --- a/src/sdk/tests/unit/vectors/Hedera24WordMnemonicBIP39TestVectors.cc +++ b/src/sdk/tests/unit/vectors/Hedera24WordMnemonicBIP39TestVectors.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class Hedera24WordMnemonicBIP39TestVectors : public testing::TestWithParam> diff --git a/src/sdk/tests/unit/vectors/RFC8032TestVectors.cc b/src/sdk/tests/unit/vectors/RFC8032TestVectors.cc index 83a8dc7eb..134b832a3 100644 --- a/src/sdk/tests/unit/vectors/RFC8032TestVectors.cc +++ b/src/sdk/tests/unit/vectors/RFC8032TestVectors.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,8 +24,8 @@ #include #include -using namespace Hedera; -using namespace Hedera::internal::HexConverter; +using namespace Hiero; +using namespace Hiero::internal::HexConverter; class RFC8032TestVectors : public testing::TestWithParam> { diff --git a/src/sdk/tests/unit/vectors/SLIP10TestVectors.cc b/src/sdk/tests/unit/vectors/SLIP10TestVectors.cc index 8fb48dbae..7818d0185 100644 --- a/src/sdk/tests/unit/vectors/SLIP10TestVectors.cc +++ b/src/sdk/tests/unit/vectors/SLIP10TestVectors.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -using namespace Hedera; +using namespace Hiero; class SLIP10TestVectors : public testing::Test { diff --git a/src/tck/include/TckServer.h b/src/tck/include/TckServer.h index 705034cb1..31c932b27 100644 --- a/src/tck/include/TckServer.h +++ b/src/tck/include/TckServer.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -namespace Hedera::TCK +namespace Hiero::TCK { /** * Class encompassing all HTTP and JSON processing of TCK requests. @@ -156,6 +156,6 @@ class TckServer int mPort = DEFAULT_HTTP_PORT; }; -} // namespace Hedera::TCK +} // namespace Hiero::TCK #endif // HEDERA_TCK_CPP_TCK_SERVER_H_ diff --git a/src/tck/include/account/AccountService.h b/src/tck/include/account/AccountService.h index 785ceeef7..d790fc5b3 100644 --- a/src/tck/include/account/AccountService.h +++ b/src/tck/include/account/AccountService.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include -namespace Hedera::TCK::AccountService +namespace Hiero::TCK::AccountService { /** * Forward declarations. @@ -55,6 +55,6 @@ nlohmann::json deleteAccount(const DeleteAccountParams& params); */ nlohmann::json updateAccount(const UpdateAccountParams& params); -} // namespace Hedera::TCK::AccountService +} // namespace Hiero::TCK::AccountService #endif // HEDERA_TCK_CPP_ACCOUNT_SERVICE_H_ diff --git a/src/tck/include/account/params/CreateAccountParams.h b/src/tck/include/account/params/CreateAccountParams.h index 21d7056a6..635268f73 100644 --- a/src/tck/include/account/params/CreateAccountParams.h +++ b/src/tck/include/account/params/CreateAccountParams.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ #include #include -namespace Hedera::TCK::AccountService +namespace Hiero::TCK::AccountService { /** * Struct to hold the arguments for a `createAccount` JSON-RPC method call. @@ -91,7 +91,7 @@ struct CreateAccountParams std::optional mCommonTxParams; }; -} // namespace Hedera::TCK::AccountService +} // namespace Hiero::TCK::AccountService namespace nlohmann { @@ -99,7 +99,7 @@ namespace nlohmann * JSON serializer template specialization required to convert CreateAccountParams arguments properly. */ template<> -struct [[maybe_unused]] adl_serializer +struct [[maybe_unused]] adl_serializer { /** * Convert a JSON object to a CreateAccountParams. @@ -107,22 +107,22 @@ struct [[maybe_unused]] adl_serializer(jsonFrom, "key"); - params.mInitialBalance = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "initialBalance"); + params.mKey = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "key"); + params.mInitialBalance = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "initialBalance"); params.mReceiverSignatureRequired = - Hedera::TCK::getOptionalJsonParameter(jsonFrom, "receiverSignatureRequired"); - params.mAutoRenewPeriod = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "autoRenewPeriod"); - params.mMemo = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "memo"); + Hiero::TCK::getOptionalJsonParameter(jsonFrom, "receiverSignatureRequired"); + params.mAutoRenewPeriod = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "autoRenewPeriod"); + params.mMemo = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "memo"); params.mMaxAutoTokenAssociations = - Hedera::TCK::getOptionalJsonParameter(jsonFrom, "maxAutoTokenAssociations"); - params.mStakedAccountId = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "stakedAccountId"); - params.mStakedNodeId = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "stakedNodeId"); - params.mDeclineStakingReward = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "declineStakingReward"); - params.mAlias = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "alias"); + Hiero::TCK::getOptionalJsonParameter(jsonFrom, "maxAutoTokenAssociations"); + params.mStakedAccountId = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "stakedAccountId"); + params.mStakedNodeId = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "stakedNodeId"); + params.mDeclineStakingReward = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "declineStakingReward"); + params.mAlias = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "alias"); params.mCommonTxParams = - Hedera::TCK::getOptionalJsonParameter(jsonFrom, "commonTransactionParams"); + Hiero::TCK::getOptionalJsonParameter(jsonFrom, "commonTransactionParams"); } }; diff --git a/src/tck/include/account/params/DeleteAccountParams.h b/src/tck/include/account/params/DeleteAccountParams.h index de3b5738a..f2abd30b3 100644 --- a/src/tck/include/account/params/DeleteAccountParams.h +++ b/src/tck/include/account/params/DeleteAccountParams.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ #include #include -namespace Hedera::TCK::AccountService +namespace Hiero::TCK::AccountService { /** * Struct to hold the arguments for a `deleteAccount` JSON-RPC method call. @@ -50,7 +50,7 @@ struct DeleteAccountParams std::optional mCommonTxParams; }; -} // namespace Hedera::TCK::AccountService +} // namespace Hiero::TCK::AccountService namespace nlohmann { @@ -58,7 +58,7 @@ namespace nlohmann * JSON serializer template specialization required to convert DeleteAccountParams arguments properly. */ template<> -struct [[maybe_unused]] adl_serializer +struct [[maybe_unused]] adl_serializer { /** * Convert a JSON object to a DeleteAccountParams. @@ -66,12 +66,12 @@ struct [[maybe_unused]] adl_serializer(jsonFrom, "deleteAccountId"); - params.mTransferAccountId = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "transferAccountId"); + params.mDeleteAccountId = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "deleteAccountId"); + params.mTransferAccountId = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "transferAccountId"); params.mCommonTxParams = - Hedera::TCK::getOptionalJsonParameter(jsonFrom, "commonTransactionParams"); + Hiero::TCK::getOptionalJsonParameter(jsonFrom, "commonTransactionParams"); } }; diff --git a/src/tck/include/account/params/UpdateAccountParams.h b/src/tck/include/account/params/UpdateAccountParams.h index 437513e45..4ddd2a10c 100644 --- a/src/tck/include/account/params/UpdateAccountParams.h +++ b/src/tck/include/account/params/UpdateAccountParams.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ #include #include -namespace Hedera::TCK::AccountService +namespace Hiero::TCK::AccountService { /** * Struct to hold the arguments for an `updateAccount` JSON-RPC method call. @@ -91,7 +91,7 @@ struct UpdateAccountParams std::optional mCommonTxParams; }; -} // namespace Hedera::TCK::AccountService +} // namespace Hiero::TCK::AccountService namespace nlohmann { @@ -99,7 +99,7 @@ namespace nlohmann * JSON serializer template specialization required to convert UpdateAccountParams arguments properly. */ template<> -struct [[maybe_unused]] adl_serializer +struct [[maybe_unused]] adl_serializer { /** * Convert a JSON object to a UpdateAccountParams. @@ -107,22 +107,22 @@ struct [[maybe_unused]] adl_serializer(jsonFrom, "accountId"); - params.mKey = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "key"); - params.mAutoRenewPeriod = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "autoRenewPeriod"); - params.mExpirationTime = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "expirationTime"); + params.mAccountId = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "accountId"); + params.mKey = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "key"); + params.mAutoRenewPeriod = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "autoRenewPeriod"); + params.mExpirationTime = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "expirationTime"); params.mReceiverSignatureRequired = - Hedera::TCK::getOptionalJsonParameter(jsonFrom, "receiverSignatureRequired"); - params.mMemo = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "memo"); + Hiero::TCK::getOptionalJsonParameter(jsonFrom, "receiverSignatureRequired"); + params.mMemo = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "memo"); params.mMaxAutoTokenAssociations = - Hedera::TCK::getOptionalJsonParameter(jsonFrom, "maxAutoTokenAssociations"); - params.mStakedAccountId = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "stakedAccountId"); - params.mStakedNodeId = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "stakedNodeId"); - params.mDeclineStakingReward = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "declineStakingReward"); + Hiero::TCK::getOptionalJsonParameter(jsonFrom, "maxAutoTokenAssociations"); + params.mStakedAccountId = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "stakedAccountId"); + params.mStakedNodeId = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "stakedNodeId"); + params.mDeclineStakingReward = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "declineStakingReward"); params.mCommonTxParams = - Hedera::TCK::getOptionalJsonParameter(jsonFrom, "commonTransactionParams"); + Hiero::TCK::getOptionalJsonParameter(jsonFrom, "commonTransactionParams"); } }; diff --git a/src/tck/include/common/CommonTransactionParams.h b/src/tck/include/common/CommonTransactionParams.h index a21c0c727..113a62881 100644 --- a/src/tck/include/common/CommonTransactionParams.h +++ b/src/tck/include/common/CommonTransactionParams.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -35,7 +35,7 @@ #include #include -namespace Hedera::TCK +namespace Hiero::TCK { /** * Struct the contains the common parameters of a Transaction. @@ -117,7 +117,7 @@ struct CommonTransactionParams std::optional> mSigners; }; -} // namespace Hedera::TCK +} // namespace Hiero::TCK namespace nlohmann { @@ -125,7 +125,7 @@ namespace nlohmann * JSON serializer template specialization required to convert CommonTransactionParams arguments properly. */ template<> -struct [[maybe_unused]] adl_serializer +struct [[maybe_unused]] adl_serializer { /** * Convert a JSON object to a CommonTransactionParams. @@ -133,15 +133,15 @@ struct [[maybe_unused]] adl_serializer * @param jsonFrom The JSON object with which to fill the CommonTransactionParams. * @param params The CommonTransactionParams to fill with the JSON object. */ - static void from_json(const json& jsonFrom, Hedera::TCK::CommonTransactionParams& params) + static void from_json(const json& jsonFrom, Hiero::TCK::CommonTransactionParams& params) { - params.mTransactionId = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "transactionId"); - params.mMaxTransactionFee = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "maxTransactionFee"); + params.mTransactionId = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "transactionId"); + params.mMaxTransactionFee = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "maxTransactionFee"); params.mValidTransactionDuration = - Hedera::TCK::getOptionalJsonParameter(jsonFrom, "validTransactionDuration"); - params.mMemo = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "memo"); - params.mRegenerateTransactionId = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "regenerateTransactionId"); - params.mSigners = Hedera::TCK::getOptionalJsonParameter>(jsonFrom, "signers"); + Hiero::TCK::getOptionalJsonParameter(jsonFrom, "validTransactionDuration"); + params.mMemo = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "memo"); + params.mRegenerateTransactionId = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "regenerateTransactionId"); + params.mSigners = Hiero::TCK::getOptionalJsonParameter>(jsonFrom, "signers"); } }; diff --git a/src/tck/include/json/JsonErrorType.h b/src/tck/include/json/JsonErrorType.h index 9968d0b06..38169203c 100644 --- a/src/tck/include/json/JsonErrorType.h +++ b/src/tck/include/json/JsonErrorType.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -20,7 +20,7 @@ #ifndef HEDERA_TCK_CPP_JSON_ERROR_TYPE_H_ #define HEDERA_TCK_CPP_JSON_ERROR_TYPE_H_ -namespace Hedera::TCK +namespace Hiero::TCK { /** * Enum used to describe an error seen while handling a JSON RPC request. @@ -48,11 +48,11 @@ enum class JsonErrorType : short */ INTERNAL_ERROR = -32603, /** - * The Hedera C++ SDK failed to execute the JSON request. + * The Hiero C++ SDK failed to execute the JSON request. */ HEDERA_ERROR = -32001 }; -} // namespace Hedera::TCK +} // namespace Hiero::TCK #endif // HEDERA_TCK_CPP_JSON_ERROR_TYPE_H_ diff --git a/src/tck/include/json/JsonRpcException.h b/src/tck/include/json/JsonRpcException.h index 83f2dc592..0646910b1 100644 --- a/src/tck/include/json/JsonRpcException.h +++ b/src/tck/include/json/JsonRpcException.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ #include #include -namespace Hedera::TCK +namespace Hiero::TCK { /** * An exception thrown when there is any issue parsing/executing JSON RPC calls. @@ -102,6 +102,6 @@ class JsonRpcException : public std::exception std::string mError; }; -} // namespace Hedera::TCK +} // namespace Hiero::TCK #endif // HEDERA_TCK_CPP_JSON_RPC_EXCEPTION_H_ diff --git a/src/tck/include/json/JsonUtils.h b/src/tck/include/json/JsonUtils.h index 4f84f5214..539850001 100644 --- a/src/tck/include/json/JsonUtils.h +++ b/src/tck/include/json/JsonUtils.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ #include #include -namespace Hedera::TCK +namespace Hiero::TCK { /** * Get a required parameter from a JSON object. @@ -102,6 +102,6 @@ bool hasKeyType(const nlohmann::json& request, std::string_view key, nlohmann::j */ bool hasValidId(const nlohmann::json& request); -} // namespace Hedera::TCK +} // namespace Hiero::TCK #endif // HEDERA_TCK_CPP_JSON_UTILS_H_ diff --git a/src/tck/include/key/KeyService.h b/src/tck/include/key/KeyService.h index a9b3cb200..e5b463dfa 100644 --- a/src/tck/include/key/KeyService.h +++ b/src/tck/include/key/KeyService.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ #include #include -namespace Hedera::TCK::KeyService +namespace Hiero::TCK::KeyService { /** * Forward declarations. @@ -76,6 +76,6 @@ nlohmann::json generateKey(const GenerateKeyParams& params); */ std::shared_ptr getHederaKey(const std::string& key); -} // namespace Hedera::TCK::KeyService +} // namespace Hiero::TCK::KeyService #endif // HEDERA_TCK_CPP_KEY_SERVICE_H_ diff --git a/src/tck/include/key/params/GenerateKeyParams.h b/src/tck/include/key/params/GenerateKeyParams.h index 6bb30e3aa..436031332 100644 --- a/src/tck/include/key/params/GenerateKeyParams.h +++ b/src/tck/include/key/params/GenerateKeyParams.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ #include #include -namespace Hedera::TCK::KeyService +namespace Hiero::TCK::KeyService { /** * Struct to hold the arguments for a `generateKey` JSON-RPC method call. @@ -59,7 +59,7 @@ struct GenerateKeyParams std::optional> mKeys; }; -} // namespace Hedera::TCK::KeyService +} // namespace Hiero::TCK::KeyService namespace nlohmann { @@ -67,7 +67,7 @@ namespace nlohmann * JSON serializer template specialization required to convert GenerateKeyParams arguments properly. */ template<> -struct [[maybe_unused]] adl_serializer +struct [[maybe_unused]] adl_serializer { /** * Convert a JSON object to a GenerateKeyParams. @@ -75,14 +75,14 @@ struct [[maybe_unused]] adl_serializer(jsonFrom, "type")); - params.mFromKey = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "fromKey"); - params.mThreshold = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "threshold"); + params.mType = + Hiero::TCK::KeyService::gStringToKeyType.at(Hiero::TCK::getRequiredJsonParameter(jsonFrom, "type")); + params.mFromKey = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "fromKey"); + params.mThreshold = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "threshold"); params.mKeys = - Hedera::TCK::getOptionalJsonParameter>(jsonFrom, "keys"); + Hiero::TCK::getOptionalJsonParameter>(jsonFrom, "keys"); } }; diff --git a/src/tck/include/sdk/SdkClient.h b/src/tck/include/sdk/SdkClient.h index 7cf56f232..8851c7f85 100644 --- a/src/tck/include/sdk/SdkClient.h +++ b/src/tck/include/sdk/SdkClient.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ #include #include -namespace Hedera::TCK::SdkClient +namespace Hiero::TCK::SdkClient { /** * Forward declarations. @@ -58,12 +58,12 @@ nlohmann::json reset(const ResetParams& params); nlohmann::json setup(const SetupParams& params); /** - * Get the Hedera C++ SDK client this SdkClient is using to execute requests. + * Get the Hiero C++ SDK client this SdkClient is using to execute requests. * - * @return Reference to the Hedera C++ SDK client this SdkClient is using to execute requests. + * @return Reference to the Hiero C++ SDK client this SdkClient is using to execute requests. */ [[nodiscard]] const Client& getClient(); -} // namespace Hedera::TCK::SdkClient +} // namespace Hiero::TCK::SdkClient #endif // HEDERA_TCK_CPP_SDK_CLIENT_H_ diff --git a/src/tck/include/sdk/params/ResetParams.h b/src/tck/include/sdk/params/ResetParams.h index f75e8a17b..ad93ca496 100644 --- a/src/tck/include/sdk/params/ResetParams.h +++ b/src/tck/include/sdk/params/ResetParams.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include -namespace Hedera::TCK::SdkClient +namespace Hiero::TCK::SdkClient { /** * Struct to hold the arguments for a `reset` JSON-RPC method call. It takes no arguments @@ -31,7 +31,7 @@ struct ResetParams { }; -} // namespace Hedera::TCK::SdkClient +} // namespace Hiero::TCK::SdkClient namespace nlohmann { @@ -39,7 +39,7 @@ namespace nlohmann * JSON serializer template specialization required to convert ResetParams arguments properly. */ template<> -struct [[maybe_unused]] adl_serializer +struct [[maybe_unused]] adl_serializer { /** * Convert a JSON object to a ResetParams. @@ -47,7 +47,7 @@ struct [[maybe_unused]] adl_serializer * @param jsonFrom The JSON object with which to fill the ResetParams. * @param params The ResetParams to fill with the JSON object. */ - static void from_json(const json&, Hedera::TCK::SdkClient::ResetParams&) {} + static void from_json(const json&, Hiero::TCK::SdkClient::ResetParams&) {} }; } // namespace nlohmann diff --git a/src/tck/include/sdk/params/SetupParams.h b/src/tck/include/sdk/params/SetupParams.h index f5f084b63..4e662730d 100644 --- a/src/tck/include/sdk/params/SetupParams.h +++ b/src/tck/include/sdk/params/SetupParams.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ #include #include -namespace Hedera::TCK::SdkClient +namespace Hiero::TCK::SdkClient { /** * Struct to hold the arguments for a `setup` JSON-RPC method call. @@ -59,7 +59,7 @@ struct SetupParams std::optional mirrorNetworkIp; }; -} // namespace Hedera::TCK::SdkClient +} // namespace Hiero::TCK::SdkClient namespace nlohmann { @@ -67,7 +67,7 @@ namespace nlohmann * JSON serializer template specialization required to convert SetupParams arguments properly. */ template<> -struct [[maybe_unused]] adl_serializer +struct [[maybe_unused]] adl_serializer { /** * Convert a JSON object to a SetupParams. @@ -75,13 +75,13 @@ struct [[maybe_unused]] adl_serializer * @param jsonFrom The JSON object with which to fill the SetupParams. * @param params The SetupParams to fill with the JSON object. */ - static void from_json(const json& jsonFrom, Hedera::TCK::SdkClient::SetupParams& params) + static void from_json(const json& jsonFrom, Hiero::TCK::SdkClient::SetupParams& params) { - params.operatorAccountId = Hedera::TCK::getRequiredJsonParameter(jsonFrom, "operatorAccountId"); - params.operatorPrivateKey = Hedera::TCK::getRequiredJsonParameter(jsonFrom, "operatorPrivateKey"); - params.nodeIp = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "nodeIp"); - params.nodeAccountId = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "nodeAccountId"); - params.mirrorNetworkIp = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "mirrorNetworkIp"); + params.operatorAccountId = Hiero::TCK::getRequiredJsonParameter(jsonFrom, "operatorAccountId"); + params.operatorPrivateKey = Hiero::TCK::getRequiredJsonParameter(jsonFrom, "operatorPrivateKey"); + params.nodeIp = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "nodeIp"); + params.nodeAccountId = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "nodeAccountId"); + params.mirrorNetworkIp = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "mirrorNetworkIp"); } }; diff --git a/src/tck/include/token/CustomFeeSerializer.h b/src/tck/include/token/CustomFeeSerializer.h index 183ec9310..2c31a81c5 100644 --- a/src/tck/include/token/CustomFeeSerializer.h +++ b/src/tck/include/token/CustomFeeSerializer.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -39,7 +39,7 @@ namespace nlohmann * JSON serializer template specialization required to convert CustomFee arguments properly. */ template<> -struct [[maybe_unused]] adl_serializer> +struct [[maybe_unused]] adl_serializer> { /** * Convert a CustomFee to a JSON object. @@ -47,16 +47,16 @@ struct [[maybe_unused]] adl_serializer> * @param jsonTo The JSON object to fill with the CustomFee. * @param fee The CustomFee with which to fill the JSON object. */ - static void to_json(json& jsonTo, const std::shared_ptr& fee) + static void to_json(json& jsonTo, const std::shared_ptr& fee) { jsonTo["feeCollectorAccountId"] = fee->getFeeCollectorAccountId().toString(); jsonTo["feeCollectorsExempt"] = fee->getAllCollectorsAreExempt(); - if (const std::shared_ptr fixedFee = std::dynamic_pointer_cast(fee); + if (const std::shared_ptr fixedFee = std::dynamic_pointer_cast(fee); fixedFee) { jsonTo["fixedFee"] = { - {"amount", fixedFee->getAmount()} + { "amount", fixedFee->getAmount() } }; if (fixedFee->getDenominatingTokenId().has_value()) { @@ -64,38 +64,38 @@ struct [[maybe_unused]] adl_serializer> } } - else if (const std::shared_ptr fractionalFee = - std::dynamic_pointer_cast(fee); + else if (const std::shared_ptr fractionalFee = + std::dynamic_pointer_cast(fee); fractionalFee) { - std::string assessmentMethod = Hedera::gFeeAssessmentMethodToString.at(fractionalFee->getAssessmentMethod()); + std::string assessmentMethod = Hiero::gFeeAssessmentMethodToString.at(fractionalFee->getAssessmentMethod()); std::transform(assessmentMethod.begin(), assessmentMethod.end(), assessmentMethod.begin(), [](unsigned char c) { return std::tolower(c); }); jsonTo["fractionalFee"] = { - {"numerator", fractionalFee->getNumerator() }, - { "denominator", fractionalFee->getDenominator() }, - { "minimumAmount", fractionalFee->getMinimumAmount()}, - { "maximumAmount", fractionalFee->getMaximumAmount()}, - { "assessmentMethod", assessmentMethod } + { "numerator", fractionalFee->getNumerator() }, + { "denominator", fractionalFee->getDenominator() }, + { "minimumAmount", fractionalFee->getMinimumAmount() }, + { "maximumAmount", fractionalFee->getMaximumAmount() }, + { "assessmentMethod", assessmentMethod } }; } else { - const std::shared_ptr royaltyFee = - std::dynamic_pointer_cast(fee); + const std::shared_ptr royaltyFee = + std::dynamic_pointer_cast(fee); jsonTo["royaltyFee"] = { - {"numerator", royaltyFee->getNumerator() }, - { "denominator", royaltyFee->getDenominator()} + { "numerator", royaltyFee->getNumerator() }, + { "denominator", royaltyFee->getDenominator() } }; if (royaltyFee->getFallbackFee().has_value()) { jsonTo["royaltyFee"]["fallbackFee"] = { - {"amount", royaltyFee->getFallbackFee()->getAmount()} + { "amount", royaltyFee->getFallbackFee()->getAmount() } }; if (royaltyFee->getFallbackFee()->getDenominatingTokenId().has_value()) { @@ -112,76 +112,75 @@ struct [[maybe_unused]] adl_serializer> * @param jsonFrom The JSON object with which to fill the CustomFee. * @param fee The CustomFee to fill with the JSON object. */ - static void from_json(const json& jsonFrom, std::shared_ptr& fee) + static void from_json(const json& jsonFrom, std::shared_ptr& fee) { if (!jsonFrom.contains("feeCollectorAccountId")) { - throw Hedera::TCK::JsonRpcException(Hedera::TCK::JsonErrorType::INVALID_PARAMS, - "invalid parameters: feeCollectorAccountId is REQUIRED."); + throw Hiero::TCK::JsonRpcException(Hiero::TCK::JsonErrorType::INVALID_PARAMS, + "invalid parameters: feeCollectorAccountId is REQUIRED."); } if (!jsonFrom["feeCollectorAccountId"].is_string()) { - throw Hedera::TCK::JsonRpcException(Hedera::TCK::JsonErrorType::INVALID_PARAMS, - "invalid parameters: feeCollectorAccountId MUST be a string."); + throw Hiero::TCK::JsonRpcException(Hiero::TCK::JsonErrorType::INVALID_PARAMS, + "invalid parameters: feeCollectorAccountId MUST be a string."); } - const Hedera::AccountId feeCollectorAccountId = - Hedera::AccountId::fromString(jsonFrom["feeCollectorAccountId"].get()); + const Hiero::AccountId feeCollectorAccountId = + Hiero::AccountId::fromString(jsonFrom["feeCollectorAccountId"].get()); if (!jsonFrom.contains("feeCollectorsExempt")) { - throw Hedera::TCK::JsonRpcException(Hedera::TCK::JsonErrorType::INVALID_PARAMS, - "invalid parameters: feeCollectorsExempt is REQUIRED."); + throw Hiero::TCK::JsonRpcException(Hiero::TCK::JsonErrorType::INVALID_PARAMS, + "invalid parameters: feeCollectorsExempt is REQUIRED."); } if (!jsonFrom["feeCollectorsExempt"].is_boolean()) { - throw Hedera::TCK::JsonRpcException(Hedera::TCK::JsonErrorType::INVALID_PARAMS, - "invalid parameters: feeCollectorsExempt MUST be a boolean."); + throw Hiero::TCK::JsonRpcException(Hiero::TCK::JsonErrorType::INVALID_PARAMS, + "invalid parameters: feeCollectorsExempt MUST be a boolean."); } const bool feeCollectorsExempt = jsonFrom["feeCollectorsExempt"].get(); if (jsonFrom.contains("fixedFee")) { - auto fixedFee = std::make_shared(); + auto fixedFee = std::make_shared(); fixedFee->setFeeCollectorAccountId(feeCollectorAccountId); fixedFee->setAllCollectorsAreExempt(feeCollectorsExempt); if (!jsonFrom["fixedFee"].contains("amount")) { - throw Hedera::TCK::JsonRpcException(Hedera::TCK::JsonErrorType::INVALID_PARAMS, - "invalid parameters: amount is REQUIRED for fixedFee fee types."); + throw Hiero::TCK::JsonRpcException(Hiero::TCK::JsonErrorType::INVALID_PARAMS, + "invalid parameters: amount is REQUIRED for fixedFee fee types."); } if (!jsonFrom["fixedFee"]["amount"].is_string()) { - throw Hedera::TCK::JsonRpcException(Hedera::TCK::JsonErrorType::INVALID_PARAMS, - "invalid parameters: amount MUST be a string."); + throw Hiero::TCK::JsonRpcException(Hiero::TCK::JsonErrorType::INVALID_PARAMS, + "invalid parameters: amount MUST be a string."); } try { fixedFee->setAmount( - Hedera::internal::EntityIdHelper::getNum(jsonFrom["fixedFee"]["amount"].get())); + Hiero::internal::EntityIdHelper::getNum(jsonFrom["fixedFee"]["amount"].get())); } catch (const std::invalid_argument&) { - fixedFee->setAmount( - Hedera::internal::EntityIdHelper::getNum(jsonFrom["fixedFee"]["amount"].get())); + fixedFee->setAmount(Hiero::internal::EntityIdHelper::getNum(jsonFrom["fixedFee"]["amount"].get())); } if (jsonFrom["fixedFee"].contains("denominatingTokenId")) { if (!jsonFrom["fixedFee"]["denominatingTokenId"].is_string()) { - throw Hedera::TCK::JsonRpcException(Hedera::TCK::JsonErrorType::INVALID_PARAMS, - "invalid parameters: denominatingTokenId MUST be a string."); + throw Hiero::TCK::JsonRpcException(Hiero::TCK::JsonErrorType::INVALID_PARAMS, + "invalid parameters: denominatingTokenId MUST be a string."); } fixedFee->setDenominatingTokenId( - Hedera::TokenId::fromString(jsonFrom["fixedFee"]["denominatingTokenId"].get())); + Hiero::TokenId::fromString(jsonFrom["fixedFee"]["denominatingTokenId"].get())); } fee = fixedFee; @@ -189,115 +188,115 @@ struct [[maybe_unused]] adl_serializer> else if (jsonFrom.contains("fractionalFee")) { - auto fractionalFee = std::make_shared(); + auto fractionalFee = std::make_shared(); fractionalFee->setFeeCollectorAccountId(feeCollectorAccountId); fractionalFee->setAllCollectorsAreExempt(feeCollectorsExempt); if (!jsonFrom["fractionalFee"].contains("numerator")) { - throw Hedera::TCK::JsonRpcException(Hedera::TCK::JsonErrorType::INVALID_PARAMS, - "invalid parameters: numerator is REQUIRED for fractionalFee fee types."); + throw Hiero::TCK::JsonRpcException(Hiero::TCK::JsonErrorType::INVALID_PARAMS, + "invalid parameters: numerator is REQUIRED for fractionalFee fee types."); } if (!jsonFrom["fractionalFee"]["numerator"].is_string()) { - throw Hedera::TCK::JsonRpcException(Hedera::TCK::JsonErrorType::INVALID_PARAMS, - "invalid parameters: numerator MUST be a string."); + throw Hiero::TCK::JsonRpcException(Hiero::TCK::JsonErrorType::INVALID_PARAMS, + "invalid parameters: numerator MUST be a string."); } try { fractionalFee->setNumerator( - Hedera::internal::EntityIdHelper::getNum(jsonFrom["fractionalFee"]["numerator"].get())); + Hiero::internal::EntityIdHelper::getNum(jsonFrom["fractionalFee"]["numerator"].get())); } catch (const std::invalid_argument&) { fractionalFee->setNumerator( - Hedera::internal::EntityIdHelper::getNum(jsonFrom["fractionalFee"]["numerator"].get())); + Hiero::internal::EntityIdHelper::getNum(jsonFrom["fractionalFee"]["numerator"].get())); } if (!jsonFrom["fractionalFee"].contains("denominator")) { - throw Hedera::TCK::JsonRpcException(Hedera::TCK::JsonErrorType::INVALID_PARAMS, - "invalid parameters: denominator is REQUIRED for fractionalFee fee types."); + throw Hiero::TCK::JsonRpcException(Hiero::TCK::JsonErrorType::INVALID_PARAMS, + "invalid parameters: denominator is REQUIRED for fractionalFee fee types."); } if (!jsonFrom["fractionalFee"]["denominator"].is_string()) { - throw Hedera::TCK::JsonRpcException(Hedera::TCK::JsonErrorType::INVALID_PARAMS, - "invalid parameters: denominator MUST be a string."); + throw Hiero::TCK::JsonRpcException(Hiero::TCK::JsonErrorType::INVALID_PARAMS, + "invalid parameters: denominator MUST be a string."); } try { - fractionalFee->setDenominator(Hedera::internal::EntityIdHelper::getNum( + fractionalFee->setDenominator(Hiero::internal::EntityIdHelper::getNum( jsonFrom["fractionalFee"]["denominator"].get())); } catch (const std::invalid_argument&) { fractionalFee->setDenominator( - Hedera::internal::EntityIdHelper::getNum(jsonFrom["fractionalFee"]["denominator"].get())); + Hiero::internal::EntityIdHelper::getNum(jsonFrom["fractionalFee"]["denominator"].get())); } if (!jsonFrom["fractionalFee"].contains("minimumAmount")) { - throw Hedera::TCK::JsonRpcException( - Hedera::TCK::JsonErrorType::INVALID_PARAMS, + throw Hiero::TCK::JsonRpcException( + Hiero::TCK::JsonErrorType::INVALID_PARAMS, "invalid parameters: minimumAmount is REQUIRED for fractionalFee fee types."); } if (!jsonFrom["fractionalFee"]["minimumAmount"].is_string()) { - throw Hedera::TCK::JsonRpcException(Hedera::TCK::JsonErrorType::INVALID_PARAMS, - "invalid parameters: minimumAmount MUST be a string."); + throw Hiero::TCK::JsonRpcException(Hiero::TCK::JsonErrorType::INVALID_PARAMS, + "invalid parameters: minimumAmount MUST be a string."); } try { - fractionalFee->setMinimumAmount(Hedera::internal::EntityIdHelper::getNum( + fractionalFee->setMinimumAmount(Hiero::internal::EntityIdHelper::getNum( jsonFrom["fractionalFee"]["minimumAmount"].get())); } catch (const std::invalid_argument&) { fractionalFee->setMinimumAmount( - Hedera::internal::EntityIdHelper::getNum(jsonFrom["fractionalFee"]["minimumAmount"].get())); + Hiero::internal::EntityIdHelper::getNum(jsonFrom["fractionalFee"]["minimumAmount"].get())); } if (!jsonFrom["fractionalFee"].contains("maximumAmount")) { - throw Hedera::TCK::JsonRpcException( - Hedera::TCK::JsonErrorType::INVALID_PARAMS, + throw Hiero::TCK::JsonRpcException( + Hiero::TCK::JsonErrorType::INVALID_PARAMS, "invalid parameters: maximumAmount is REQUIRED for fractionalFee fee types."); } if (!jsonFrom["fractionalFee"]["maximumAmount"].is_string()) { - throw Hedera::TCK::JsonRpcException(Hedera::TCK::JsonErrorType::INVALID_PARAMS, - "invalid parameters: maximumAmount MUST be a string."); + throw Hiero::TCK::JsonRpcException(Hiero::TCK::JsonErrorType::INVALID_PARAMS, + "invalid parameters: maximumAmount MUST be a string."); } try { - fractionalFee->setMaximumAmount(Hedera::internal::EntityIdHelper::getNum( + fractionalFee->setMaximumAmount(Hiero::internal::EntityIdHelper::getNum( jsonFrom["fractionalFee"]["maximumAmount"].get())); } catch (const std::invalid_argument&) { fractionalFee->setMaximumAmount( - Hedera::internal::EntityIdHelper::getNum(jsonFrom["fractionalFee"]["maximumAmount"].get())); + Hiero::internal::EntityIdHelper::getNum(jsonFrom["fractionalFee"]["maximumAmount"].get())); } if (!jsonFrom["fractionalFee"].contains("assessmentMethod")) { - throw Hedera::TCK::JsonRpcException( - Hedera::TCK::JsonErrorType::INVALID_PARAMS, + throw Hiero::TCK::JsonRpcException( + Hiero::TCK::JsonErrorType::INVALID_PARAMS, "invalid parameters: assessmentMethod is REQUIRED for fractionalFee fee types."); } if (!jsonFrom["fractionalFee"]["assessmentMethod"].is_string()) { - throw Hedera::TCK::JsonRpcException(Hedera::TCK::JsonErrorType::INVALID_PARAMS, - "invalid parameters: assessmentMethod MUST be a string."); + throw Hiero::TCK::JsonRpcException(Hiero::TCK::JsonErrorType::INVALID_PARAMS, + "invalid parameters: assessmentMethod MUST be a string."); } std::string assessmentMethod = jsonFrom["fractionalFee"]["assessmentMethod"].get(); @@ -305,87 +304,87 @@ struct [[maybe_unused]] adl_serializer> assessmentMethod.end(), assessmentMethod.begin(), [](unsigned char c) { return std::toupper(c); }); - fractionalFee->setAssessmentMethod(Hedera::gStringToFeeAssessmentMethod.at(assessmentMethod)); + fractionalFee->setAssessmentMethod(Hiero::gStringToFeeAssessmentMethod.at(assessmentMethod)); fee = fractionalFee; } else if (jsonFrom.contains("royaltyFee")) { - auto royaltyFee = std::make_shared(); + auto royaltyFee = std::make_shared(); royaltyFee->setFeeCollectorAccountId(feeCollectorAccountId); royaltyFee->setAllCollectorsAreExempt(feeCollectorsExempt); if (!jsonFrom["royaltyFee"].contains("numerator")) { - throw Hedera::TCK::JsonRpcException(Hedera::TCK::JsonErrorType::INVALID_PARAMS, - "invalid parameters: numerator is REQUIRED for royaltyFee fee types."); + throw Hiero::TCK::JsonRpcException(Hiero::TCK::JsonErrorType::INVALID_PARAMS, + "invalid parameters: numerator is REQUIRED for royaltyFee fee types."); } if (!jsonFrom["royaltyFee"]["numerator"].is_string()) { - throw Hedera::TCK::JsonRpcException(Hedera::TCK::JsonErrorType::INVALID_PARAMS, - "invalid parameters: numerator MUST be a string."); + throw Hiero::TCK::JsonRpcException(Hiero::TCK::JsonErrorType::INVALID_PARAMS, + "invalid parameters: numerator MUST be a string."); } try { royaltyFee->setNumerator( - Hedera::internal::EntityIdHelper::getNum(jsonFrom["royaltyFee"]["numerator"].get())); + Hiero::internal::EntityIdHelper::getNum(jsonFrom["royaltyFee"]["numerator"].get())); } catch (const std::invalid_argument&) { royaltyFee->setNumerator( - Hedera::internal::EntityIdHelper::getNum(jsonFrom["royaltyFee"]["numerator"].get())); + Hiero::internal::EntityIdHelper::getNum(jsonFrom["royaltyFee"]["numerator"].get())); } if (!jsonFrom["royaltyFee"].contains("denominator")) { - throw Hedera::TCK::JsonRpcException(Hedera::TCK::JsonErrorType::INVALID_PARAMS, - "invalid parameters: denominator is REQUIRED for royaltyFee fee types."); + throw Hiero::TCK::JsonRpcException(Hiero::TCK::JsonErrorType::INVALID_PARAMS, + "invalid parameters: denominator is REQUIRED for royaltyFee fee types."); } if (!jsonFrom["royaltyFee"]["denominator"].is_string()) { - throw Hedera::TCK::JsonRpcException(Hedera::TCK::JsonErrorType::INVALID_PARAMS, - "invalid parameters: denominator MUST be a string."); + throw Hiero::TCK::JsonRpcException(Hiero::TCK::JsonErrorType::INVALID_PARAMS, + "invalid parameters: denominator MUST be a string."); } try { royaltyFee->setDenominator( - Hedera::internal::EntityIdHelper::getNum(jsonFrom["royaltyFee"]["denominator"].get())); + Hiero::internal::EntityIdHelper::getNum(jsonFrom["royaltyFee"]["denominator"].get())); } catch (const std::invalid_argument&) { royaltyFee->setDenominator( - Hedera::internal::EntityIdHelper::getNum(jsonFrom["royaltyFee"]["denominator"].get())); + Hiero::internal::EntityIdHelper::getNum(jsonFrom["royaltyFee"]["denominator"].get())); } if (jsonFrom["royaltyFee"].contains("fallbackFee")) { - Hedera::CustomFixedFee fallbackFee; + Hiero::CustomFixedFee fallbackFee; if (!jsonFrom["royaltyFee"]["fallbackFee"].contains("amount")) { - throw Hedera::TCK::JsonRpcException(Hedera::TCK::JsonErrorType::INVALID_PARAMS, - "invalid parameters: amount is REQUIRED for a fallback fee."); + throw Hiero::TCK::JsonRpcException(Hiero::TCK::JsonErrorType::INVALID_PARAMS, + "invalid parameters: amount is REQUIRED for a fallback fee."); } if (!jsonFrom["royaltyFee"]["fallbackFee"]["amount"].is_string()) { - throw Hedera::TCK::JsonRpcException(Hedera::TCK::JsonErrorType::INVALID_PARAMS, - "invalid parameters: amount MUST be a string."); + throw Hiero::TCK::JsonRpcException(Hiero::TCK::JsonErrorType::INVALID_PARAMS, + "invalid parameters: amount MUST be a string."); } try { - fallbackFee.setAmount(Hedera::internal::EntityIdHelper::getNum( + fallbackFee.setAmount(Hiero::internal::EntityIdHelper::getNum( jsonFrom["royaltyFee"]["fallbackFee"]["amount"].get())); } catch (const std::invalid_argument&) { - fallbackFee.setAmount(Hedera::internal::EntityIdHelper::getNum( + fallbackFee.setAmount(Hiero::internal::EntityIdHelper::getNum( jsonFrom["royaltyFee"]["fallbackFee"]["amount"].get())); } @@ -393,11 +392,11 @@ struct [[maybe_unused]] adl_serializer> { if (!jsonFrom["royaltyFee"]["fallbackFee"]["denominatingTokenId"].is_string()) { - throw Hedera::TCK::JsonRpcException(Hedera::TCK::JsonErrorType::INVALID_PARAMS, - "invalid parameters: denominatingTokenId MUST be a string."); + throw Hiero::TCK::JsonRpcException(Hiero::TCK::JsonErrorType::INVALID_PARAMS, + "invalid parameters: denominatingTokenId MUST be a string."); } - fallbackFee.setDenominatingTokenId(Hedera::TokenId::fromString( + fallbackFee.setDenominatingTokenId(Hiero::TokenId::fromString( jsonFrom["royaltyFee"]["fallbackFee"]["denominatingTokenId"].get())); } @@ -409,9 +408,9 @@ struct [[maybe_unused]] adl_serializer> else { - throw Hedera::TCK::JsonRpcException(Hedera::TCK::JsonErrorType::INVALID_PARAMS, - "invalid parameters: fee MUST contain one of fixedFee, fractionalFee, or " - "royaltyFee."); + throw Hiero::TCK::JsonRpcException(Hiero::TCK::JsonErrorType::INVALID_PARAMS, + "invalid parameters: fee MUST contain one of fixedFee, fractionalFee, or " + "royaltyFee."); } } }; diff --git a/src/tck/include/token/TokenService.h b/src/tck/include/token/TokenService.h index d0af1b1d0..5adcbe946 100644 --- a/src/tck/include/token/TokenService.h +++ b/src/tck/include/token/TokenService.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include -namespace Hedera::TCK::TokenService +namespace Hiero::TCK::TokenService { /** * Forward declarations. @@ -37,6 +37,6 @@ class CreateTokenParams; */ nlohmann::json createToken(const CreateTokenParams& params); -} // namespace Hedera::TCK::TokenService +} // namespace Hiero::TCK::TokenService #endif // HEDERA_TCK_CPP_TOKEN_SERVICE_H_ diff --git a/src/tck/include/token/params/CreateTokenParams.h b/src/tck/include/token/params/CreateTokenParams.h index 8bc804cf7..7960b85c3 100644 --- a/src/tck/include/token/params/CreateTokenParams.h +++ b/src/tck/include/token/params/CreateTokenParams.h @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -33,7 +33,7 @@ #include #include -namespace Hedera::TCK::TokenService +namespace Hiero::TCK::TokenService { /** * Struct to hold the arguments for a `createToken` JSON-RPC method call. @@ -174,7 +174,7 @@ struct CreateTokenParams std::optional mCommonTxParams; }; -} // namespace Hedera::TCK::TokenService +} // namespace Hiero::TCK::TokenService namespace nlohmann { @@ -182,7 +182,7 @@ namespace nlohmann * JSON serializer template specialization required to convert CreateTokenParams arguments properly. */ template<> -struct [[maybe_unused]] adl_serializer +struct [[maybe_unused]] adl_serializer { /** * Convert a JSON object to a CreateTokenParams. @@ -190,34 +190,34 @@ struct [[maybe_unused]] adl_serializer(jsonFrom, "name"); - params.mSymbol = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "symbol"); - params.mDecimals = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "decimals"); - params.mInitialSupply = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "initialSupply"); - params.mTreasuryAccountId = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "treasuryAccountId"); - params.mAdminKey = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "adminKey"); - params.mKycKey = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "kycKey"); - params.mFreezeKey = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "freezeKey"); - params.mWipeKey = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "wipeKey"); - params.mSupplyKey = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "supplyKey"); - params.mFreezeDefault = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "freezeDefault"); - params.mExpirationTime = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "expirationTime"); - params.mAutoRenewAccountId = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "autoRenewAccountId"); - params.mAutoRenewPeriod = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "autoRenewPeriod"); - params.mMemo = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "memo"); - params.mTokenType = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "tokenType"); - params.mSupplyType = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "supplyType"); - params.mMaxSupply = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "maxSupply"); - params.mFeeScheduleKey = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "feeScheduleKey"); + params.mName = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "name"); + params.mSymbol = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "symbol"); + params.mDecimals = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "decimals"); + params.mInitialSupply = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "initialSupply"); + params.mTreasuryAccountId = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "treasuryAccountId"); + params.mAdminKey = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "adminKey"); + params.mKycKey = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "kycKey"); + params.mFreezeKey = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "freezeKey"); + params.mWipeKey = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "wipeKey"); + params.mSupplyKey = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "supplyKey"); + params.mFreezeDefault = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "freezeDefault"); + params.mExpirationTime = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "expirationTime"); + params.mAutoRenewAccountId = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "autoRenewAccountId"); + params.mAutoRenewPeriod = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "autoRenewPeriod"); + params.mMemo = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "memo"); + params.mTokenType = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "tokenType"); + params.mSupplyType = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "supplyType"); + params.mMaxSupply = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "maxSupply"); + params.mFeeScheduleKey = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "feeScheduleKey"); params.mCustomFees = - Hedera::TCK::getOptionalJsonParameter>>(jsonFrom, "customFees"); - params.mPauseKey = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "pauseKey"); - params.mMetadata = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "metadata"); - params.mMetadataKey = Hedera::TCK::getOptionalJsonParameter(jsonFrom, "metadataKey"); + Hiero::TCK::getOptionalJsonParameter>>(jsonFrom, "customFees"); + params.mPauseKey = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "pauseKey"); + params.mMetadata = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "metadata"); + params.mMetadataKey = Hiero::TCK::getOptionalJsonParameter(jsonFrom, "metadataKey"); params.mCommonTxParams = - Hedera::TCK::getOptionalJsonParameter(jsonFrom, "commonTransactionParams"); + Hiero::TCK::getOptionalJsonParameter(jsonFrom, "commonTransactionParams"); } }; diff --git a/src/tck/src/TckServer.cc b/src/tck/src/TckServer.cc index 4094f79e6..34a9dd516 100644 --- a/src/tck/src/TckServer.cc +++ b/src/tck/src/TckServer.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -42,7 +42,7 @@ #include #include -namespace Hedera::TCK +namespace Hiero::TCK { namespace { @@ -246,9 +246,9 @@ nlohmann::json TckServer::handleSingleRequest(const nlohmann::json& request) } return { - {"jsonrpc", "2.0" }, - { "id", requestId }, - { "result", method->second(hasParams ? request["params"] : nlohmann::json::array())} + { "jsonrpc", "2.0" }, + { "id", requestId }, + { "result", method->second(hasParams ? request["params"] : nlohmann::json::array()) } }; } @@ -268,8 +268,8 @@ nlohmann::json TckServer::handleSingleRequest(const nlohmann::json& request) catch (const JsonRpcException& ex) { nlohmann::json error = { - {"code", ex.getCode() }, - { "message", ex.getMessage()} + { "code", ex.getCode() }, + { "message", ex.getMessage() } }; if (!ex.getData().is_null()) @@ -278,13 +278,13 @@ nlohmann::json TckServer::handleSingleRequest(const nlohmann::json& request) } return nlohmann::json{ - {"jsonrpc", "2.0" }, - { "id", requestId}, - { "error", error } + { "jsonrpc", "2.0" }, + { "id", requestId }, + { "error", error } }; } - // PrecheckStatusExceptions and ReceiptStatusExceptions should be Hedera errors. + // PrecheckStatusExceptions and ReceiptStatusExceptions should be Hiero errors. catch (const ReceiptStatusException& ex) { // clang-format off @@ -293,7 +293,7 @@ nlohmann::json TckServer::handleSingleRequest(const nlohmann::json& request) { "id", requestId }, { "error", { { "code", JsonErrorType::HEDERA_ERROR }, - { "message", "Hedera error" }, + { "message", "Hiero error" }, { "data", { { "status", gStatusToString.at(ex.mStatus) }, { "message", ex.what() } @@ -311,7 +311,7 @@ nlohmann::json TckServer::handleSingleRequest(const nlohmann::json& request) { "id", requestId }, { "error", { { "code", JsonErrorType::HEDERA_ERROR }, - { "message", "Hedera error" }, + { "message", "Hiero error" }, { "data", { { "status", gStatusToString.at(ex.mStatus) }, { "message", ex.what() } @@ -369,4 +369,4 @@ template TckServer::MethodHandle TckServer::getHandle( template TckServer::MethodHandle TckServer::getHandle( nlohmann::json (*method)(const TokenService::CreateTokenParams&)); -} // namespace Hedera::TCK +} // namespace Hiero::TCK diff --git a/src/tck/src/account/AccountService.cc b/src/tck/src/account/AccountService.cc index 22002fa9d..0907e3542 100644 --- a/src/tck/src/account/AccountService.cc +++ b/src/tck/src/account/AccountService.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -39,7 +39,7 @@ #include #include -namespace Hedera::TCK::AccountService +namespace Hiero::TCK::AccountService { //----- nlohmann::json createAccount(const CreateAccountParams& params) @@ -105,8 +105,8 @@ nlohmann::json createAccount(const CreateAccountParams& params) const TransactionReceipt txReceipt = accountCreateTransaction.execute(SdkClient::getClient()).getReceipt(SdkClient::getClient()); return { - {"accountId", txReceipt.mAccountId->toString() }, - { "status", gStatusToString.at(txReceipt.mStatus)} + { "accountId", txReceipt.mAccountId->toString() }, + { "status", gStatusToString.at(txReceipt.mStatus) } }; } @@ -132,9 +132,9 @@ nlohmann::json deleteAccount(const DeleteAccountParams& params) } return { - {"status", + { "status", gStatusToString.at( - accountDeleteTransaction.execute(SdkClient::getClient()).getReceipt(SdkClient::getClient()).mStatus)} + accountDeleteTransaction.execute(SdkClient::getClient()).getReceipt(SdkClient::getClient()).mStatus) } }; } @@ -203,8 +203,8 @@ nlohmann::json updateAccount(const UpdateAccountParams& params) const TransactionReceipt txReceipt = accountUpdateTransaction.execute(SdkClient::getClient()).getReceipt(SdkClient::getClient()); return { - {"status", gStatusToString.at(txReceipt.mStatus)} + { "status", gStatusToString.at(txReceipt.mStatus) } }; } -} // namespace Hedera::TCK::AccountService +} // namespace Hiero::TCK::AccountService diff --git a/src/tck/src/json/JsonRpcException.cc b/src/tck/src/json/JsonRpcException.cc index 51124a7a6..39bea4804 100644 --- a/src/tck/src/json/JsonRpcException.cc +++ b/src/tck/src/json/JsonRpcException.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include #include -namespace Hedera::TCK +namespace Hiero::TCK { //----- JsonRpcException::JsonRpcException(JsonErrorType code, std::string_view message) noexcept @@ -44,4 +44,4 @@ JsonRpcException::JsonRpcException(JsonErrorType code, std::string_view message, { } -} // namespace Hedera::TCK +} // namespace Hiero::TCK diff --git a/src/tck/src/json/JsonUtils.cc b/src/tck/src/json/JsonUtils.cc index c1443feef..cd8b695fb 100644 --- a/src/tck/src/json/JsonUtils.cc +++ b/src/tck/src/json/JsonUtils.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ #include #include -namespace Hedera::TCK +namespace Hiero::TCK { //----- bool hasKeyType(const nlohmann::json& request, std::string_view key, nlohmann::json::value_t type) @@ -36,4 +36,4 @@ bool hasValidId(const nlohmann::json& request) return request.contains("id") && (request["id"].is_number() || request["id"].is_string() || request["id"].is_null()); } -} // namespace Hedera::TCK +} // namespace Hiero::TCK diff --git a/src/tck/src/key/KeyService.cc b/src/tck/src/key/KeyService.cc index 7dc1f180c..3bc977780 100644 --- a/src/tck/src/key/KeyService.cc +++ b/src/tck/src/key/KeyService.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -40,7 +40,7 @@ #include #include -namespace Hedera::TCK::KeyService +namespace Hiero::TCK::KeyService { namespace { @@ -188,24 +188,24 @@ std::string generateKeyRecursively(const GenerateKeyParams& params, nlohmann::js //----- const std::unordered_map gStringToKeyType = { - {"ed25519PrivateKey", KeyType::ED25519_PRIVATE_KEY_TYPE }, - { "ed25519PublicKey", KeyType::ED25519_PUBLIC_KEY_TYPE }, - { "ecdsaSecp256k1PrivateKey", KeyType::ECDSA_SECP256k1_PRIVATE_KEY_TYPE}, - { "ecdsaSecp256k1PublicKey", KeyType::ECDSA_SECP256k1_PUBLIC_KEY_TYPE }, - { "keyList", KeyType::LIST_KEY_TYPE }, - { "thresholdKey", KeyType::THRESHOLD_KEY_TYPE }, - { "evmAddress", KeyType::EVM_ADDRESS_KEY_TYPE } + { "ed25519PrivateKey", KeyType::ED25519_PRIVATE_KEY_TYPE }, + { "ed25519PublicKey", KeyType::ED25519_PUBLIC_KEY_TYPE }, + { "ecdsaSecp256k1PrivateKey", KeyType::ECDSA_SECP256k1_PRIVATE_KEY_TYPE }, + { "ecdsaSecp256k1PublicKey", KeyType::ECDSA_SECP256k1_PUBLIC_KEY_TYPE }, + { "keyList", KeyType::LIST_KEY_TYPE }, + { "thresholdKey", KeyType::THRESHOLD_KEY_TYPE }, + { "evmAddress", KeyType::EVM_ADDRESS_KEY_TYPE } }; //----- const std::unordered_map gKeyTypeToString = { - {KeyType::ED25519_PRIVATE_KEY_TYPE, "ed25519PrivateKey" }, - { KeyType::ED25519_PUBLIC_KEY_TYPE, "ed25519PublicKey" }, - { KeyType::ECDSA_SECP256k1_PRIVATE_KEY_TYPE, "ecdsaSecp256k1PrivateKey"}, - { KeyType::ECDSA_SECP256k1_PUBLIC_KEY_TYPE, "ecdsaSecp256k1PublicKey" }, - { KeyType::LIST_KEY_TYPE, "keyList" }, - { KeyType::THRESHOLD_KEY_TYPE, "thresholdKey" }, - { KeyType::EVM_ADDRESS_KEY_TYPE, "evmAddress" } + { KeyType::ED25519_PRIVATE_KEY_TYPE, "ed25519PrivateKey" }, + { KeyType::ED25519_PUBLIC_KEY_TYPE, "ed25519PublicKey" }, + { KeyType::ECDSA_SECP256k1_PRIVATE_KEY_TYPE, "ecdsaSecp256k1PrivateKey" }, + { KeyType::ECDSA_SECP256k1_PUBLIC_KEY_TYPE, "ecdsaSecp256k1PublicKey" }, + { KeyType::LIST_KEY_TYPE, "keyList" }, + { KeyType::THRESHOLD_KEY_TYPE, "thresholdKey" }, + { KeyType::EVM_ADDRESS_KEY_TYPE, "evmAddress" } }; //----- @@ -235,9 +235,9 @@ std::shared_ptr getHederaKey(const std::string& key) { proto::Key protoKey; protoKey.ParseFromString(internal::Utilities::byteVectorToString(internal::HexConverter::hexToBytes(key))); - return Hedera::Key::fromProtobuf(protoKey); + return Hiero::Key::fromProtobuf(protoKey); } } } -} // namespace Hedera::TCK +} // namespace Hiero::TCK diff --git a/src/tck/src/main.cc b/src/tck/src/main.cc index 50bb8ee60..b7985f940 100644 --- a/src/tck/src/main.cc +++ b/src/tck/src/main.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -25,12 +25,12 @@ #include -using namespace Hedera::TCK; +using namespace Hiero::TCK; int main(int argc, char** argv) { // Initialize the TCK server with the port number. - TckServer tckServer((argc > 1) ? static_cast(Hedera::internal::EntityIdHelper::getNum(argv[1])) : // NOLINT + TckServer tckServer((argc > 1) ? static_cast(Hiero::internal::EntityIdHelper::getNum(argv[1])) : // NOLINT TckServer::DEFAULT_HTTP_PORT); // Add the SDK client functions. diff --git a/src/tck/src/sdk/SdkClient.cc b/src/tck/src/sdk/SdkClient.cc index 9e66a1a7e..b0f126baa 100644 --- a/src/tck/src/sdk/SdkClient.cc +++ b/src/tck/src/sdk/SdkClient.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -29,11 +29,11 @@ #include #include -namespace Hedera::TCK::SdkClient +namespace Hiero::TCK::SdkClient { namespace { -// The Hedera C++ SDK Client the SdkClient will use to communicate with the network. +// The Hiero C++ SDK Client the SdkClient will use to communicate with the network. Client mClient; } @@ -42,7 +42,7 @@ nlohmann::json reset(const ResetParams&) { mClient.close(); return { - {"status", "SUCCESS"} + { "status", "SUCCESS" } }; } @@ -54,7 +54,7 @@ nlohmann::json setup(const SetupParams& params) if (params.nodeIp.has_value() && params.nodeAccountId.has_value() && params.mirrorNetworkIp.has_value()) { mClient = Client::forNetwork({ - {params.nodeIp.value(), AccountId::fromString(params.nodeAccountId.value())} + { params.nodeIp.value(), AccountId::fromString(params.nodeAccountId.value()) } }); mClient.setMirrorNetwork({ params.mirrorNetworkIp.value() }); clientType = "custom"; @@ -70,8 +70,8 @@ nlohmann::json setup(const SetupParams& params) mClient.setRequestTimeout(DEFAULT_TCK_REQUEST_TIMEOUT); return { - {"message", "Successfully setup " + clientType + " client."}, - { "status", "SUCCESS" } + { "message", "Successfully setup " + clientType + " client." }, + { "status", "SUCCESS" } }; } @@ -81,4 +81,4 @@ const Client& getClient() return mClient; } -} // namespace Hedera::TCK::SdkClient +} // namespace Hiero::TCK::SdkClient diff --git a/src/tck/src/token/TokenService.cc b/src/tck/src/token/TokenService.cc index 1955924a9..5e608d55d 100644 --- a/src/tck/src/token/TokenService.cc +++ b/src/tck/src/token/TokenService.cc @@ -1,8 +1,8 @@ /*- * - * Hedera C++ SDK + * Hiero C++ SDK * - * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC + * Copyright (C) 2020 - 2024 Hiero * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -39,7 +39,7 @@ #include #include -namespace Hedera::TCK::TokenService +namespace Hiero::TCK::TokenService { //----- nlohmann::json createToken(const CreateTokenParams& params) @@ -65,7 +65,7 @@ nlohmann::json createToken(const CreateTokenParams& params) if (params.mInitialSupply.has_value()) { tokenCreateTransaction.setInitialSupply( - Hedera::internal::EntityIdHelper::getNum(params.mInitialSupply.value())); + Hiero::internal::EntityIdHelper::getNum(params.mInitialSupply.value())); } if (params.mTreasuryAccountId.has_value()) @@ -107,7 +107,7 @@ nlohmann::json createToken(const CreateTokenParams& params) { tokenCreateTransaction.setExpirationTime( std::chrono::system_clock::from_time_t(0) + - std::chrono::seconds(Hedera::internal::EntityIdHelper::getNum(params.mExpirationTime.value()))); + std::chrono::seconds(Hiero::internal::EntityIdHelper::getNum(params.mExpirationTime.value()))); } if (params.mAutoRenewAccountId.has_value()) @@ -118,7 +118,7 @@ nlohmann::json createToken(const CreateTokenParams& params) if (params.mAutoRenewPeriod.has_value()) { tokenCreateTransaction.setAutoRenewPeriod( - std::chrono::seconds(Hedera::internal::EntityIdHelper::getNum(params.mAutoRenewPeriod.value()))); + std::chrono::seconds(Hiero::internal::EntityIdHelper::getNum(params.mAutoRenewPeriod.value()))); } if (params.mMemo.has_value()) @@ -151,7 +151,7 @@ nlohmann::json createToken(const CreateTokenParams& params) if (params.mMaxSupply.has_value()) { - tokenCreateTransaction.setMaxSupply(Hedera::internal::EntityIdHelper::getNum(params.mSupplyType.value())); + tokenCreateTransaction.setMaxSupply(Hiero::internal::EntityIdHelper::getNum(params.mSupplyType.value())); } if (params.mFeeScheduleKey.has_value()) @@ -187,9 +187,9 @@ nlohmann::json createToken(const CreateTokenParams& params) const TransactionReceipt txReceipt = tokenCreateTransaction.execute(SdkClient::getClient()).getReceipt(SdkClient::getClient()); return { - {"tokenId", txReceipt.mTokenId->toString() }, - { "status", gStatusToString.at(txReceipt.mStatus)} + { "tokenId", txReceipt.mTokenId->toString() }, + { "status", gStatusToString.at(txReceipt.mStatus) } }; } -} // namespace Hedera::TCK::TokenService +} // namespace Hiero::TCK::TokenService diff --git a/vcpkg.json b/vcpkg.json index bf4243cf7..d5d5ceee3 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -1,5 +1,5 @@ { - "name": "hedera-sdk-cpp", + "name": "hiero-sdk-cpp", "version-string": "0.1.0", "builtin-baseline": "fba75d09065fcc76a25dcf386b1d00d33f5175af", "dependencies": [