order

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: AGPL-3.0 Imports: 40 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOrderEVM

func NewOrderEVM() types.OrderService

NewOrderEVM creates a new instance of OrderEVM.

func NewOrderTron

func NewOrderTron() types.OrderService

NewOrderTron creates a new instance of OrderTron.

Types

type OrderEVM

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

OrderEVM provides functionality related to onchain interactions for payment orders

func (*OrderEVM) CreateOrder

func (s *OrderEVM) CreateOrder(ctx context.Context, orderID uuid.UUID) error

CreateOrder creates a new payment order on-chain.

func (*OrderEVM) RefundOrder

func (s *OrderEVM) RefundOrder(ctx context.Context, network *ent.Network, orderID string) error

RefundOrder refunds sender on canceled lock order

func (*OrderEVM) SettleOrder

func (s *OrderEVM) SettleOrder(ctx context.Context, orderID uuid.UUID) error

SettleOrder settles a payment order on-chain.

type OrderTron

type OrderTron struct{}

OrderTron provides functionality related to on-chain interactions for payment orders

func (*OrderTron) CreateOrder

func (s *OrderTron) CreateOrder(ctx context.Context, orderID uuid.UUID) error

CreateOrder creates a new payment order on-chain.

func (*OrderTron) ProcessTransfer

func (s *OrderTron) ProcessTransfer(ctx context.Context, receiveAddress string, token *ent.Token) error

ProcessTransfer processes a transfer event for a given receive address and token.

func (*OrderTron) RefundOrder

func (s *OrderTron) RefundOrder(ctx context.Context, network *ent.Network, orderID string) error

RefundOrder refunds sender on canceled lock order

func (*OrderTron) SettleOrder

func (s *OrderTron) SettleOrder(ctx context.Context, orderID uuid.UUID) error

SettleOrder settles a payment order on-chain.

Jump to

Keyboard shortcuts

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