Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AwaitMultipleScheduledTransactions ¶
func AwaitMultipleScheduledTransactions( outParams *OutParams, sourceChainId uint64, targetChainId uint64, asset string, transferID string, callback func(sourceChainId, targetChainId uint64, nativeAsset string, transferID string, isTransferSuccessful bool))
AwaitMultipleScheduledTransactions is meant to be used when you need to wait all the scheduled transactions to be mined.
func ToMirrorNodeTransactionID ¶
ToMirrorNodeTransactionID parses TX with format `0.0.X@{seconds}.{nanos}?scheduled` to format `0.0.X-{seconds}-{nanos}`
Types ¶
type FeeOutParams ¶
type FeeOutParams struct { *OutParams // contains filtered or unexported fields }
FeeOutParams Helper struct for AwaitMultipleScheduledTransactions
func NewFeeOutParams ¶
func NewFeeOutParams(countOfAllSplitTransfers int) *FeeOutParams
NewFeeOutParams is used to initialize out parameters needed for awaiting fee transfers to be mined. Helper func for AwaitMultipleScheduledTransactions.
func (*FeeOutParams) HandleResultForAwaitedTransfer ¶
func (params *FeeOutParams) HandleResultForAwaitedTransfer(result *bool, hasReceiver bool, splitTransfer []model.Hedera)
HandleResultForAwaitedTransfer is used to handle result from mined scheduled transfer for Fees. Helper func to collect results for AwaitMultipleScheduledTransactions.
type HederaTransactionID ¶
func FromHederaTransactionID ¶
func FromHederaTransactionID(id hedera.TransactionID) HederaTransactionID
func (HederaTransactionID) String ¶
func (txId HederaTransactionID) String() string
func (HederaTransactionID) Timestamp ¶
func (txId HederaTransactionID) Timestamp() string
type UserOutParams ¶
type UserOutParams struct {
*OutParams
}
UserOutParams Helper struct for AwaitMultipleScheduledTransactions
func NewUserOutParams ¶
func NewUserOutParams() *UserOutParams
NewUserOutParams is used to initialize out parameters needed for awaiting user transfer to be mined. Helper func for AwaitMultipleScheduledTransactions.
func (*UserOutParams) HandleResultForAwaitedTransfer ¶
func (params *UserOutParams) HandleResultForAwaitedTransfer(result *bool, hasReceiver bool)
HandleResultForAwaitedTransfer is used to handle result from mined scheduled transfer for User. Helper func to collect results for AwaitMultipleScheduledTransactions.