diff --git a/account_balance_query_test.go b/account_balance_query_test.go index 1e8cdf2b2..332bb697f 100644 --- a/account_balance_query_test.go +++ b/account_balance_query_test.go @@ -1,10 +1,11 @@ package hedera import ( - "github.com/stretchr/testify/assert" "os" "strings" "testing" + + "github.com/stretchr/testify/assert" ) func TestNewAccountBalanceQuery(t *testing.T) { diff --git a/consensus_message_submit_transaction.go b/consensus_message_submit_transaction.go index ff0f9a369..d36f7a8c0 100644 --- a/consensus_message_submit_transaction.go +++ b/consensus_message_submit_transaction.go @@ -9,6 +9,7 @@ import ( const chunkSize = 4096 +// A ConsensusMessageSubmitTransaction is used for submitting a message to HCS. type ConsensusMessageSubmitTransaction struct { TransactionBuilder pb *proto.ConsensusSubmitMessageTransactionBody diff --git a/consensus_topic_create_transaction.go b/consensus_topic_create_transaction.go index 0e25e3cd2..13a3149d8 100644 --- a/consensus_topic_create_transaction.go +++ b/consensus_topic_create_transaction.go @@ -6,6 +6,7 @@ import ( "github.com/hashgraph/hedera-sdk-go/proto" ) +// A ConsensusTopicCreateTransaction is for creating a new Topic on HCS. type ConsensusTopicCreateTransaction struct { TransactionBuilder pb *proto.ConsensusCreateTopicTransactionBody diff --git a/consensus_topic_delete_transaction.go b/consensus_topic_delete_transaction.go index 37625088d..a37cee964 100644 --- a/consensus_topic_delete_transaction.go +++ b/consensus_topic_delete_transaction.go @@ -6,6 +6,7 @@ import ( "github.com/hashgraph/hedera-sdk-go/proto" ) +// A ConsensusTopicDeleteTransaction is for deleting a topic on HCS. type ConsensusTopicDeleteTransaction struct { TransactionBuilder pb *proto.ConsensusDeleteTopicTransactionBody diff --git a/crypto_transfer_transaction.go b/crypto_transfer_transaction.go index 16296dbb0..41ddede03 100644 --- a/crypto_transfer_transaction.go +++ b/crypto_transfer_transaction.go @@ -6,7 +6,8 @@ import ( "github.com/hashgraph/hedera-sdk-go/proto" ) -// Transfer hbar from some account balances to other account balances. The accounts list can contain up to 10 accounts. +// A CryptoTransferTransaction is for transferring hbar from some account balances to other account balances. +// The accounts list can contain up to 10 accounts. // The amounts list must be the same length as the accounts list. // // This transaction must be signed by the diff --git a/file_id.go b/file_id.go index 615dc7735..58df2b769 100644 --- a/file_id.go +++ b/file_id.go @@ -2,30 +2,34 @@ package hedera import ( "fmt" + "github.com/hashgraph/hedera-sdk-go/proto" ) +// A FileID is the ID for a file on the network. type FileID struct { Shard uint64 Realm uint64 File uint64 } -// The public node address book for the current network +// FileIDForAddressBook returns the public node address book for the current network. func FileIDForAddressBook() FileID { return FileID{File: 102} } -// The current fee schedule for the network +// FileIDForFeeSchedule returns the current fee schedule for the network. func FileIDForFeeSchedule() FileID { return FileID{File: 111} } -// The current exchange rates of HBAR to USD +// FileIDForExchangeRate returns the current exchange rates of HBAR to USD. func FileIDForExchangeRate() FileID { return FileID{File: 112} } +// FileIDFromString returns a FileID parsed from the given string. +// A malformatted string will cause this to return an error instead. func FileIDFromString(s string) (FileID, error) { shard, realm, num, err := idFromString(s) if err != nil {