order

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: AGPL-3.0 Imports: 40 Imported by: 0

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