fsmtron

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActivationOrderID = "activation_order_id"
	BandwidthOrderID  = "bandwidth_delegation_order_id"
	EnergyOrderID     = "energy_delegation_order_id"
)
View Source
const (
	ActivateAccountTxHash = "activate_account_tx_hash"
	SendBurntrxTxHash     = "send_burntrx_tx_hash"
	DelegateFromAddress   = "delegate_from"
	ReclaimFromAddress    = "reclaim_from"
)
View Source
const (
	DurationTimeResourceDelegation = 120 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FSM

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

func NewFSM

func NewFSM(
	l logger.Logger,
	conf *config.Config,
	st store.IStore,
	bs baseservices.IBaseServices,
	transfer *models.Transfer,
) (*FSM, error)

func (*FSM) Run

func (s *FSM) Run(ctx context.Context) error

Run executes the workflow.

type FailedTransferError

type FailedTransferError struct {
	FailedStageName string `json:"failed_stage_name,omitempty"`
	FailedStepName  string `json:"failed_step_name,omitempty"`
	Msg             string `json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*FailedTransferError) Error

func (e *FailedTransferError) Error() string

func (*FailedTransferError) FailedStage

func (e *FailedTransferError) FailedStage() string

func (*FailedTransferError) FailedStep

func (e *FailedTransferError) FailedStep() string

func (*FailedTransferError) MarshallJSON

func (e *FailedTransferError) MarshallJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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