Documentation
¶
Index ¶
- func BuyerCounterSignSchedule(scheduleID hedera.ScheduleID) error
- func BuyerPrepareServiceRequest(fromP2pPublicAddresses []multiaddr.Multiaddr, fromEthAddress string, ...) (*types.TopicPostalEnvelope, error)
- func CreateAccountFromParent()
- func CreateTopic() (string, error)
- func DepositToSharedAccount(sharedAccountID hedera.AccountID, amount float64) error
- func EnsureTopicsAndNotifyContract(p2pHost host.Host) (hedera.TopicID, hedera.TopicID, hedera.TopicID, error)
- func GetAccountInfoFromMirror(accountID hedera.AccountID) (struct{ ... }, error)
- func GetAccountInfoFromNetwork(accountID hedera.AccountID) (hedera.AccountInfo, error)
- func GetAllDevicesFromExplorer() ([]map[string]interface{}, error)
- func GetAllPeers() ([]string, error)
- func GetDeviceParent(accountEvnID string) (hedera.AccountID, error)
- func GetHRpcClient() *hederacontract.HederacontractCaller
- func GetHederaClientUsingEnv() *hedera.Client
- func GetPeerArraySize() (*big.Int, error)
- func ListenToTopicAndCallBack(stdInTopic hedera.TopicID, callback func(message hedera.TopicMessage)) error
- func PeerSendErrorMessage(otherSideStdIn hedera.TopicID, errorType types.ErrorType, errorMessage string, ...)
- func SellerSendScheduledTransferRequest(sharedAccID hedera.AccountID, toHederaParentID hedera.AccountID, ...) error
- func SendSelfErrorMessage(errorType types.ErrorType, errorMessage string, ...) error
- func SendToTopic(topicID hedera.TopicID, content string) error
- func SendTransactionEnvelope(tx types.TopicPostalEnvelope) error
- func SignSchedule(scheduleId hedera.ScheduleID, privateKey string) error
- type AccountResponse
- type HCSMessage
- type PeerInfo
- type Transaction
- type TransactionsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuyerCounterSignSchedule ¶
func BuyerCounterSignSchedule(scheduleID hedera.ScheduleID) error
func CreateTopic ¶
func DepositToSharedAccount ¶
func GetAccountInfoFromNetwork ¶
func GetAccountInfoFromNetwork(accountID hedera.AccountID) (hedera.AccountInfo, error)
func GetAllPeers ¶
func GetHRpcClient ¶
func GetHRpcClient() *hederacontract.HederacontractCaller
func GetHederaClientUsingEnv ¶
func GetPeerArraySize ¶
func ListenToTopicAndCallBack ¶
func ListenToTopicAndCallBack(stdInTopic hedera.TopicID, callback func(message hedera.TopicMessage)) error
is used as a subroutine
func PeerSendErrorMessage ¶
func SendSelfErrorMessage ¶
func SendTransactionEnvelope ¶
func SendTransactionEnvelope(tx types.TopicPostalEnvelope) error
func SignSchedule ¶
func SignSchedule(scheduleId hedera.ScheduleID, privateKey string) error
Types ¶
type AccountResponse ¶
type AccountResponse struct {
CreatedTimestamp string `json:"created_timestamp"`
}
type HCSMessage ¶
func GetLastMessageFromTopic ¶
func GetLastMessageFromTopic(topicID hedera.TopicID) (HCSMessage, error)
type PeerInfo ¶
type PeerInfo struct {
Available bool
PeerID string
StdOutTopic uint64
StdInTopic uint64
StdErrTopic uint64
}
func GetPeerInfo ¶
TODO: retry on failure. This one likes to return 502 bad gateway and eth rate limit exceeded. however, currently we stop the world on failure but should keep retrying.
type Transaction ¶
type Transaction struct {
TransactionID string `json:"transaction_id"`
}
type TransactionsResponse ¶
type TransactionsResponse struct {
Transactions []Transaction `json:"transactions"`
}
Click to show internal directories.
Click to hide internal directories.