Skip to content

Commit

Permalink
chore: Hiero renaming initial (#1152)
Browse files Browse the repository at this point in the history
* feat: Hiero renaming initial

Signed-off-by: gsstoykov <[email protected]>

* fix: Revert CODEOWNERS update

Signed-off-by: gsstoykov <[email protected]>

* fix: Restore CODEOWNERS

Signed-off-by: gsstoykov <[email protected]>

* fix: CODEOWNERS sugested fix

Signed-off-by: gsstoykov <[email protected]>

* Update .github/CODEOWNERS

Co-authored-by: Roger Barker <[email protected]>
Signed-off-by: gsstoykov <[email protected]>

* fix: go mod tidy

Signed-off-by: gsstoykov <[email protected]>

* fix: Added more renamings

Signed-off-by: gsstoykov <[email protected]>

* fix: TestIntegrationTransactionRecordQueryCanExecute

Signed-off-by: gsstoykov <[email protected]>

* fix: main.yml format

Signed-off-by: gsstoykov <[email protected]>

---------

Signed-off-by: gsstoykov <[email protected]>
Co-authored-by: Roger Barker <[email protected]>
  • Loading branch information
gsstoykov and rbarkerSL authored Nov 27, 2024
1 parent cd92064 commit 236e8b3
Show file tree
Hide file tree
Showing 440 changed files with 2,359 additions and 8,937 deletions.
39 changes: 15 additions & 24 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,41 +1,32 @@
# Default code owners for entire repository
* @hashgraph/hedera-sdk @hashgraph/hedera-sdk-go-maintainers @hashgraph/hedera-sdk-go-contributors

* @hiero-ledger/hiero-sdk-go-maintainers @hiero-ledger/hiero-sdk-go-committers
#########################
##### Core Files ######
#########################

# NOTE: Must be placed last to ensure enforcement over all other rules

# Protection Rules for Github Configuration Files and Actions Workflows
/.github/ @hashgraph/devops-ci @hashgraph/devops-ci-committers @hashgraph/release-engineering @hashgraph/release-engineering-managers
/.github/workflows/ @hashgraph/devops-ci @hashgraph/devops-ci-committers @hashgraph/release-engineering @hashgraph/release-engineering-managers @hashgraph/hedera-sdk @hashgraph/hedera-sdk-go-maintainers @hashgraph/hedera-sdk-go-contributors
/.github/ @hiero-ledger/github-maintainers @hiero-ledger/github-committers
/.github/workflows/ @hiero-ledger/github-maintainers @hiero-ledger/github-committers @hiero-ledger/hiero-sdk-go-maintainers @hiero-ledger/hiero-sdk-go-committers

# Legacy Maven project files
**/pom.xml @hashgraph/release-engineering @hashgraph/release-engineering-managers @hashgraph/hedera-sdk @hashgraph/hedera-sdk-go-maintainers @hashgraph/hedera-sdk-go-contributors
**/pom.xml @hiero-ledger/github-maintainers @hiero-ledger/hiero-sdk-go-maintainers @hiero-ledger/hiero-sdk-go-committers

# Gradle project files and inline plugins
/gradle/ @hashgraph/release-engineering @hashgraph/release-engineering-managers @hashgraph/hedera-sdk @hashgraph/hedera-sdk-go-maintainers @hashgraph/hedera-sdk-go-contributors
gradlew @hashgraph/release-engineering @hashgraph/release-engineering-managers @hashgraph/hedera-sdk @hashgraph/hedera-sdk-go-maintainers @hashgraph/hedera-sdk-go-contributors
gradlew.bat @hashgraph/release-engineering @hashgraph/release-engineering-managers @hashgraph/hedera-sdk @hashgraph/hedera-sdk-go-maintainers @hashgraph/hedera-sdk-go-contributors
**/build-logic/ @hashgraph/release-engineering @hashgraph/release-engineering-managers @hashgraph/hedera-sdk @hashgraph/hedera-sdk-go-maintainers @hashgraph/hedera-sdk-go-contributors
**/gradle.* @hashgraph/release-engineering @hashgraph/release-engineering-managers @hashgraph/hedera-sdk @hashgraph/hedera-sdk-go-maintainers @hashgraph/hedera-sdk-go-contributors
**/*.gradle.* @hashgraph/release-engineering @hashgraph/release-engineering-managers @hashgraph/hedera-sdk @hashgraph/hedera-sdk-go-maintainers @hashgraph/hedera-sdk-go-contributors
/gradle/ @hiero-ledger/github-maintainers @hiero-ledger/github-committers @hiero-ledger/hiero-sdk-go-maintainers @hiero-ledger/hiero-sdk-go-committers
gradlew @hiero-ledger/github-maintainers @hiero-ledger/github-committers
gradlew.bat @hiero-ledger/github-maintainers @hiero-ledger/github-committers
**/build-logic/ @hiero-ledger/github-maintainers @hiero-ledger/github-committers @hiero-ledger/hiero-sdk-go-maintainers @hiero-ledger/hiero-sdk-go-committers
**/gradle.* @hiero-ledger/github-maintainers @hiero-ledger/github-committers @hiero-ledger/hiero-sdk-go-maintainers @hiero-ledger/hiero-sdk-go-committers
**/*.gradle.* @hiero-ledger/github-maintainers @hiero-ledger/github-committers @hiero-ledger/hiero-sdk-go-maintainers @hiero-ledger/hiero-sdk-go-committers

# Codacy Tool Configurations
/config/ @hashgraph/release-engineering @hashgraph/release-engineering-managers @hashgraph/hedera-sdk @hashgraph/hedera-sdk-go-maintainers @hashgraph/hedera-sdk-go-contributors
.remarkrc @hashgraph/release-engineering @hashgraph/release-engineering-managers @hashgraph/hedera-sdk @hashgraph/hedera-sdk-go-maintainers @hashgraph/hedera-sdk-go-contributors
/config/ @hiero-ledger/github-maintainers @hiero-ledger/hiero-sdk-go-maintainers @hiero-ledger/hiero-sdk-go-committers
.remarkrc @hiero-ledger/github-maintainers @hiero-ledger/hiero-sdk-go-maintainers @hiero-ledger/hiero-sdk-go-committers

# Self-protection for root CODEOWNERS files (this file should not exist and should definitely require approval)
/CODEOWNERS @hashgraph/release-engineering @hashgraph/release-engineering-managers @hashgraph/hedera-sdk @hashgraph/hedera-sdk-go-maintainers @hashgraph/hedera-sdk-go-contributors
/CODEOWNERS @hiero-ledger/github-maintainers

# Protect the repository root files
/README.md @hashgraph/release-engineering @hashgraph/release-engineering-managers @hashgraph/hedera-sdk @hashgraph/hedera-sdk-go-maintainers @hashgraph/hedera-sdk-go-contributors
**/LICENSE @hashgraph/release-engineering @hashgraph/release-engineering-managers

# CodeCov configuration
**/codecov.yml @hashgraph/release-engineering @hashgraph/release-engineering-managers @hashgraph/hedera-sdk @hashgraph/hedera-sdk-go-maintainers @hashgraph/hedera-sdk-go-contributors

# Git Ignore definitions
**/.gitignore @hashgraph/release-engineering @hashgraph/release-engineering-managers @hashgraph/hedera-sdk @hashgraph/hedera-sdk-go-maintainers @hashgraph/hedera-sdk-go-contributors
**/.gitignore.* @hashgraph/release-engineering @hashgraph/release-engineering-managers @hashgraph/hedera-sdk @hashgraph/hedera-sdk-go-maintainers @hashgraph/hedera-sdk-go-contributors
/README.md @hiero-ledger/github-maintainers @hiero-ledger/hiero-sdk-go-maintainers @hiero-ledger/hiero-sdk-go-committers @hiero-ledger/tsc
**/LICENSE @hiero-ledger/github-maintainers @hiero-ledger/tsc
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Hedera Services Main
name: Hiero SDK Main

defaults:
run:
Expand Down Expand Up @@ -57,10 +57,10 @@ jobs:
repository: hashgraph/hedera-services
path: hedera-services

- name: Fetch Hedera SDK
- name: Fetch Hiero SDK
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
path: hedera-sdk-go
path: hiero-sdk-go

- name: Get Current Tag
working-directory: hedera-services
Expand All @@ -83,20 +83,20 @@ jobs:
working-directory: hedera-services
run: docker build -t services-node:$TAG .

- name: Run Hedera SDK Tests
- name: Run Hiero SDK Tests
env:
OPERATOR_KEY: "302e020100300506032b65700422042091132178e72057a1d7528025956fe39b0b847f200ab59b2fdd367017f3087137"
OPERATOR_ID: "0.0.2"
HEDERA_NETWORK: "localhost"
run: |
cd hedera-services
docker-compose up &
cd ../hedera-sdk-go
cd ../hiero-sdk-go
go test -tags="e2e" -coverprofile=coverage.out -covermode=atomic -v -timeout 9999s
- name: Codecov
uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true
verbose: true
59 changes: 34 additions & 25 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,96 +12,105 @@
## v2.50.0

### Changed
- Implemented generics in `Transaction.go`
- Replaced go-ethereum library

- Implemented generics in `Transaction.go`
- Replaced go-ethereum library

## v2.49.0

### Changed
- Replace `/common/math` package from go-ethereum
- Update protobufs from `hedera-services`

- Replace `/common/math` package from go-ethereum
- Update protobufs from `hedera-services`

## v2.48.0

### Fixed
- Reset `stakedAccountID` when setting `stakedNodeID` and vice versa
- Fix `FEE_SCHEDULE_FILE_PART_UPLOADED` marked as error

- Reset `stakedAccountID` when setting `stakedNodeID` and vice versa
- Fix `FEE_SCHEDULE_FILE_PART_UPLOADED` marked as error

## v2.47.0

### Added
- Functionality to pass a string in `SetMessage` function for `TopicMessageSubmitTransaction`

- Functionality to pass a string in `SetMessage` function for `TopicMessageSubmitTransaction`

### Fixed
- Resubmit transaction in case of throttle status at receipt

- Resubmit transaction in case of throttle status at receipt

## v2.46.0

### Added
- `TokenClaimAirdropTransaction` and `TokenCancelAirdropTransaction` (part of HIP-904)

- `TokenClaimAirdropTransaction` and `TokenCancelAirdropTransaction` (part of HIP-904)

### Fixed
- Handling of `0x` prefix when constructing ECDSA keys

- Handling of `0x` prefix when constructing ECDSA keys

## v2.45.0

### Added
- `TokenAirdropTransaction` (part of HIP-904)

- `TokenAirdropTransaction` (part of HIP-904)

### Fixed
- Handling of `THROTTLED_AT_CONSENSUS` status code

- Handling of `THROTTLED_AT_CONSENSUS` status code

## v2.44.0

### Added

- `NodeCreateTransaction`,`NodeUpdateTransaction`,`NodeDeleteTransaction` (part of HIP-869)
- `NodeCreateTransaction`,`NodeUpdateTransaction`,`NodeDeleteTransaction` (part of HIP-869)

## v2.43.0

### Added

- `Key` functions such as `KeyFromBytes` `KeyToBytes`
- `KeyList` functions such as `SetThreshold`
- `Key` functions such as `KeyFromBytes` `KeyToBytes`
- `KeyList` functions such as `SetThreshold`

## v2.42.0

### Added

- `TokenReject` functionality (part of HIP-904)
- `TokenReject` functionality (part of HIP-904)

### Fixed

- `TransactionReceiptQuery` and `AccountBalanceQuery` execution flows
- `TransactionReceiptQuery` and `AccountBalanceQuery` execution flows

## v2.41.0

### Added

- Modified `AccountUpdateTransaction` to allow `maxAutomaticTokenAssociations` to support `-1` as a valid value
- Modified `AccountUpdateTransaction` to allow `maxAutomaticTokenAssociations` to support `-1` as a valid value

## v2.40.0

### Added

- Implemented custom derivation paths in Menmonic ECDSA private key derivation
- Implemented custom derivation paths in Menmonic ECDSA private key derivation

### Fixed

- Revisited and fix failing examples
- Gracefully handle `PlatformNotActive` status code
- Revisited and fix failing examples
- Gracefully handle `PlatformNotActive` status code

## v2.39.0

### Added

- Implemented HIP-540: Change or remove existing keys from a token
- Implemented HIP-540: Change or remove existing keys from a token

## v2.38.1

### Changed

- `AccountBalanceQuery`, `AccountInfoQuery`, and `ContractInfoQuery` get all the data from consensus nodes again
- `AccountBalanceQuery`, `AccountInfoQuery`, and `ContractInfoQuery` get all the data from consensus nodes again

## v2.38.0

Expand All @@ -115,7 +124,7 @@

- Raise an error if the transaction is not frozen while signing
- Undeprecate `AccountBalance.TokenDecimals`, `AccountInfo.TokenRelationships`
- Account alias for hollow account Mirror Node Queries
- Account alias for hollow account Mirror Node Queries

### Deprecated

Expand Down Expand Up @@ -1236,7 +1245,7 @@

### Fixed

- Updated protobufs [#120](https://github.com/hashgraph/hedera-sdk-go/issues/120)
- Updated protobufs [#120](https://github.com/hiero-ledger/hiero-sdk-go/issues/120)

### Deprecate

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2019 Hedera Hashgraph LLC
Copyright 2024 Hiero

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ $ go install github.com/hiero-ledger/hiero-sdk-go/v2@latest

> [!NOTE]
> `google.golang.org/protobuf` v1.27.1 Breaks the SDK as it contains multiple protobuf files
with the same name. Make sure to use v1.26.1 instead. The follow snippet can be used in
`go.mod` to force the project to use v1.26.1
>
> with the same name. Make sure to use v1.26.1 instead. The follow snippet can be used in
> `go.mod` to force the project to use v1.26.1
```
replace (
google.golang.org/protobuf v1.27.1 => google.golang.org/protobuf v1.26.1-0.20210525005349-febffdd88e85
Expand Down Expand Up @@ -48,7 +48,7 @@ $ env OPERATOR_KEY="<key>" OPERATOR_ID="<id>" go test -v Integration -timeout 99
The config file _can_ contain both the network and the operator, but you can also
use environment variables `OPERATOR_KEY` and `OPERATOR_ID`. If both are provided
the network is used from the config file, but for the operator the environment variables
take precedence. If the config file is not provided then the network will default to [Hedera testnet](https://docs.hedera.com/hedera/getting-started/introduction)
take precedence. If the config file is not provided then the network will default to [Hiero testnet](https://docs.hedera.com/hedera/getting-started/introduction)
and `OPERATOR_KEY` and `OPERATOR_ID` **must** be provided.

[Example Config File](./client-config-with-operator.json)
Expand Down
24 changes: 3 additions & 21 deletions abi.go
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
/*-
*
* Hedera Go SDK
*
* Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use q file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

package hedera
// SPDX-License-Identifier: Apache-2.0

package hiero

import (
"bytes"
Expand Down
24 changes: 3 additions & 21 deletions abi_decode.go
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
/*-
*
* Hedera Go SDK
*
* Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use q file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

package hedera
// SPDX-License-Identifier: Apache-2.0

package hiero

import (
"encoding/binary"
Expand Down
22 changes: 2 additions & 20 deletions abi_decode_unit_test.go
Original file line number Diff line number Diff line change
@@ -1,27 +1,9 @@
//go:build all || unit
// +build all unit

package hedera
package hiero

/*-
*
* Hedera Go SDK
*
* Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
// SPDX-License-Identifier: Apache-2.0

import (
"testing"
Expand Down
24 changes: 3 additions & 21 deletions abi_encode.go
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
/*-
*
* Hedera Go SDK
*
* Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use q file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

package hedera
// SPDX-License-Identifier: Apache-2.0

package hiero

import (
"encoding/hex"
Expand Down
Loading

0 comments on commit 236e8b3

Please sign in to comment.