Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename Hedera references to Hiero #437

Merged
merged 2 commits into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "protobufs"]
path = protobufs
url = https://github.com/hashgraph/hedera-services.git
url = https://github.com/hiero-ledger/hiero-consensus-node.git
6 changes: 3 additions & 3 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
included:
- Examples/
- Sources/Hedera/
- Sources/HederaTCK/
- Sources/Hiero/
- Sources/HieroTCK/
- Tests/

excluded:
- .build/
- Sources/Hedera/Status.swift
- Sources/Hiero/Status.swift

disabled_rules:
# TODO: re-enable once the project is deemed complete
Expand Down
12 changes: 6 additions & 6 deletions Examples/AccountAlias/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* ‍
*/

import Hedera
import Hiero
import SwiftDotenv

@main
Expand All @@ -29,12 +29,12 @@ internal enum Program {

client.setOperator(env.operatorAccountId, env.operatorKey)

// 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
// without any need to 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 aliasKey: a public key that aliases (or will eventually alias)
// to a Hedera account.
// to a Hiero account.
//
// An AccountId takes one of two forms: a normal `AccountId` with no `aliasKey` takes the form 0.0.123,
// while an account ID with an `aliasKey` takes the form
Expand All @@ -46,9 +46,9 @@ internal enum Program {
// transactions, however most queries and transactions involving such an AccountId won't work until Hbar has
// been transferred to the aliasKey account.
//
// There is no record in the Hedera network of an account associated with a given `aliasKey`
// There is no record in the Hiero network of an account associated with a given `aliasKey`
// until an amount of Hbar is transferred to the account. The moment that Hbar is transferred to that `aliasKey`
// AccountId is the moment that that account actually begins to exist in the Hedera ledger.
// AccountId is the moment that that account actually begins to exist in the Hiero ledger.

print(#""Creating" a new account"#)

Expand Down
2 changes: 1 addition & 1 deletion Examples/AccountAllowance/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* ‍
*/

import Hedera
import Hiero
import SwiftDotenv

private struct Account {
Expand Down
4 changes: 2 additions & 2 deletions Examples/AddNftAllowance/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

import Foundation
import Hedera
import Hiero
import SwiftDotenv

@main
Expand Down Expand Up @@ -167,7 +167,7 @@ extension Environment {
PrivateKey(self["OPERATOR_KEY"]!.stringValue)!
}

/// The name of the Hedera network this example should run against.
/// The name of the Hiero network this example should run against.
internal var networkName: String {
self["HEDERA_NETWORK"]?.stringValue ?? "testnet"
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/ConsensusPubSub/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* ‍
*/

import Hedera
import Hiero
import SwiftDotenv

@main
Expand Down
6 changes: 3 additions & 3 deletions Examples/ConsensusPubSubChunked/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
*/

import Foundation
import Hedera
import HederaExampleUtilities
import Hiero
import HieroExampleUtilities
import SwiftDotenv

@main
Expand Down Expand Up @@ -49,7 +49,7 @@ internal enum Program {
try await Task.sleep(nanoseconds: 1_000_000_000 * 10)

_ = Task {
let bigContents = try await HederaExampleUtilities.Resources.bigContents
let bigContents = try await HieroExampleUtilities.Resources.bigContents

print(
"about to prepare a transaction to send a message of \(bigContents.count) bytes"
Expand Down
2 changes: 1 addition & 1 deletion Examples/ConsensusPubSubWithSubmitKey/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* ‍
*/

import Hedera
import Hiero
import SwiftDotenv

@main
Expand Down
2 changes: 1 addition & 1 deletion Examples/CreateAccount/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* ‍
*/

import Hedera
import Hiero
import SwiftDotenv

@main
Expand Down
2 changes: 1 addition & 1 deletion Examples/CreateAccountThresholdKey/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* ‍
*/

import Hedera
import Hiero
import SwiftDotenv

@main
Expand Down
4 changes: 2 additions & 2 deletions Examples/CreateFile/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* ‍
*/

import Hedera
import Hiero
import SwiftDotenv

@main
Expand All @@ -33,7 +33,7 @@ internal enum Program {

// The file is required to be a byte array,
// you can easily use the bytes of a file instead.
let fileContents = "Hedera hashgraph is great!"
let fileContents = "Hiero is great!"

let response = try await FileCreateTransaction()
.keys([.single(env.operatorKey.publicKey)])
Expand Down
6 changes: 3 additions & 3 deletions Examples/CreateSimpleContract/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
* ‍
*/

import Hedera
import HederaExampleUtilities
import Hiero
import HieroExampleUtilities
import SwiftDotenv

@main
Expand All @@ -30,7 +30,7 @@ internal enum Program {

client.setOperator(env.operatorAccountId, env.operatorKey)

let bytecode = try await HederaExampleUtilities.Resources.simpleContract
let bytecode = try await HieroExampleUtilities.Resources.simpleContract

// create the contract's bytecode file
let fileTransactionResponse = try await FileCreateTransaction()
Expand Down
6 changes: 3 additions & 3 deletions Examples/CreateStatefulContract/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
* ‍
*/

import Hedera
import HederaExampleUtilities
import Hiero
import HieroExampleUtilities
import SwiftDotenv

@main
Expand All @@ -30,7 +30,7 @@ internal enum Program {

client.setOperator(env.operatorAccountId, env.operatorKey)

let bytecode = try await HederaExampleUtilities.Resources.statefulContract
let bytecode = try await HieroExampleUtilities.Resources.statefulContract

// create the contract's bytecode file
let fileTransactionResponse = try await FileCreateTransaction()
Expand Down
2 changes: 1 addition & 1 deletion Examples/CreateTopic/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* ‍
*/

import Hedera
import Hiero
import SwiftDotenv

@main
Expand Down
2 changes: 1 addition & 1 deletion Examples/DeleteAccount/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* ‍
*/

import Hedera
import Hiero
import SwiftDotenv

@main
Expand Down
4 changes: 2 additions & 2 deletions Examples/DeleteFile/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* ‍
*/

import Hedera
import Hiero
import SwiftDotenv

@main
Expand All @@ -33,7 +33,7 @@ internal enum Program {

// The file is required to be a byte array,
// you can easily use the bytes of a file instead.
let fileContents = "Hedera hashgraph is great!"
let fileContents = "Hiero hashgraph is great!"

let receipt = try await FileCreateTransaction()
.keys([.single(env.operatorKey.publicKey)])
Expand Down
6 changes: 3 additions & 3 deletions Examples/FileAppendChunked/main.swift
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import Hedera
import HederaExampleUtilities
import Hiero
import HieroExampleUtilities
import SwiftDotenv

@main
internal enum Program {
internal static func main() async throws {
async let bigContents = HederaExampleUtilities.Resources.bigContents
async let bigContents = HieroExampleUtilities.Resources.bigContents
let env = try Dotenv.load()
let client = try Client.forName(env.networkName)

Expand Down
4 changes: 2 additions & 2 deletions Examples/GenerateKey/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
*/

import Foundation
import Hedera
import Hiero

@main
internal enum Program {
internal static func main() async throws {
// Generate a Ed25519 key
// This is the current recommended default for Hedera
// This is the current recommended default for Hiero

var keyPrivate = PrivateKey.generateEd25519()
var keyPublic = keyPrivate.publicKey
Expand Down
2 changes: 1 addition & 1 deletion Examples/GenerateKeyWithMnemonic/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/

import Foundation
import Hedera
import Hiero

@main
internal enum Program {
Expand Down
2 changes: 1 addition & 1 deletion Examples/GetAccountBalance/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* ‍
*/

import Hedera
import Hiero
import SwiftDotenv

@main
Expand Down
2 changes: 1 addition & 1 deletion Examples/GetAccountInfo/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* ‍
*/

import Hedera
import Hiero
import SwiftDotenv

@main
Expand Down
2 changes: 1 addition & 1 deletion Examples/GetAddressBook/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/

import Foundation
import Hedera
import Hiero
import SwiftDotenv

@main
Expand Down
2 changes: 1 addition & 1 deletion Examples/GetExchangeRates/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* ‍
*/

import Hedera
import Hiero
import SwiftDotenv

@main
Expand Down
2 changes: 1 addition & 1 deletion Examples/GetFileContents/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* ‍
*/

import Hedera
import Hiero
import SwiftDotenv

@main
Expand Down
4 changes: 2 additions & 2 deletions Examples/InitializeClientWithMirrorNetwork/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
* ‍
*/

import Hedera
import HederaExampleUtilities
import Hiero
import HieroExampleUtilities
import SwiftDotenv

@main
Expand Down
2 changes: 1 addition & 1 deletion Examples/LongTermScheduledTransaction/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* ‍
*/

import Hedera
import Hiero
import SwiftDotenv

@main
Expand Down
10 changes: 5 additions & 5 deletions Examples/ModifyTokenKeys/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/

import Foundation
import Hedera
import Hiero
import SwiftDotenv

@main
Expand Down Expand Up @@ -72,7 +72,7 @@ internal enum Program {
print("Removing Wipe Key...")

// Remove the wipe key with empty Keylist, signing with the admin key.
let _ = try await TokenUpdateTransaction()
_ = try await TokenUpdateTransaction()
.tokenId(tokenId)
.wipeKey(.keyList([]))
.keyVerificationMode(TokenKeyValidation.fullValidation)
Expand All @@ -90,7 +90,7 @@ internal enum Program {
print("Removing Admin Key...")

// Remove the admin key with empty Keylist, signing with the admin key.
let _ = try await TokenUpdateTransaction()
_ = try await TokenUpdateTransaction()
.tokenId(tokenId)
.adminKey(.keyList([]))
.keyVerificationMode(TokenKeyValidation.noValidation)
Expand All @@ -109,7 +109,7 @@ internal enum Program {
print("Update Supply Key...")

// Update the supply key with a new key, signing with the old supply key and the new supply key.
let _ = try await TokenUpdateTransaction()
_ = try await TokenUpdateTransaction()
.tokenId(tokenId)
.supplyKey(.single(newSupplyKey.publicKey))
.keyVerificationMode(TokenKeyValidation.fullValidation)
Expand All @@ -129,7 +129,7 @@ internal enum Program {
print("Removing Supply Key...")

// Remove the supply key with unusable key, signing with the new supply key.
let _ = try await TokenUpdateTransaction()
_ = try await TokenUpdateTransaction()
.tokenId(tokenId)
.supplyKey(.single(unusableKey))
.keyVerificationMode(TokenKeyValidation.noValidation)
Expand Down
2 changes: 1 addition & 1 deletion Examples/MultiAppTransfer/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/

import Foundation
import Hedera
import Hiero
import SwiftDotenv

@main
Expand Down
Loading
Loading