scheduled

package
v1.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(
	payerAccount string,
	hederaNodeClient client.HederaNode,
	mirrorNodeClient client.MirrorNode) *Service

func (*Service) ExecuteScheduledBurnTransaction

func (s *Service) ExecuteScheduledBurnTransaction(id, asset string, amount int64, status *chan string, onExecutionSuccess func(transactionID, scheduleID string), onExecutionFail, onSuccess, onFail func(transactionID string))

func (*Service) ExecuteScheduledMintTransaction

func (s *Service) ExecuteScheduledMintTransaction(id, asset string, amount int64, status *chan string, onExecutionSuccess func(transactionID, scheduleID string), onExecutionFail, onSuccess, onFail func(transactionID string))

func (*Service) ExecuteScheduledNftAllowTransaction

func (s *Service) ExecuteScheduledNftAllowTransaction(
	id string, nftID hedera.NftID, owner hedera.AccountID, spender hedera.AccountID,
	onExecutionSuccess func(txId, scheduleId string), onExecutionFail, onSuccess, onFail func(txId string))

func (*Service) ExecuteScheduledNftTransferTransaction

func (s *Service) ExecuteScheduledNftTransferTransaction(
	id string, nftID hedera.NftID, sender hedera.AccountID, receiving hedera.AccountID, approved bool,
	onExecutionSuccess func(transactionID, scheduleID string), onExecutionFail, onSuccess, onFail func(transactionID string))

ExecuteScheduledNftTransferTransaction submits a scheduled nft transaction and executes provided functions when necessary

func (*Service) ExecuteScheduledTransferTransaction

func (s *Service) ExecuteScheduledTransferTransaction(
	id, nativeAsset string,
	transfers []transfer.Hedera,
	onExecutionSuccess func(transactionID, scheduleID string), onExecutionFail, onSuccess, onFail func(transactionID string))

ExecuteScheduledTransferTransaction submits a scheduled transaction and executes provided functions when necessary

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL