celersdkintf

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PAY_STATUS_INVALID                 = 0
	PAY_STATUS_PENDING                 = 1
	PAY_STATUS_PAID                    = 2
	PAY_STATUS_PAID_RESOLVED_ONCHAIN   = 3
	PAY_STATUS_UNPAID                  = 4
	PAY_STATUS_UNPAID_EXPIRED          = 5
	PAY_STATUS_UNPAID_REJECTED         = 6
	PAY_STATUS_UNPAID_DEST_UNREACHABLE = 7
	PAY_STATUS_INITIALIZING            = 8 // before pending
)

do NOT re-number existing fields, these fields are exposed to sdk

Variables

This section is empty.

Functions

This section is empty.

Types

type E

type E struct {
	Code   int
	Reason string
}

func (*E) Error

func (e *E) Error() string

type Payment

type Payment struct {
	Sender       string
	Receiver     string
	TokenAddr    string
	AmtWei       string
	UID          string // unique id used for query etc
	PayJSON      string
	Status       int
	PayNoteType  string
	PayNoteJSON  string
	PayTimestamp int64 // in millisecond
}

TODO: More metadata about pay

type PaymentList

type PaymentList struct {
	Length  int
	PayList []*Payment // will be skipped by gomobile due to unsupported type
}

PaymentList returns an array of payment

func (*PaymentList) Get

func (pl *PaymentList) Get(idx int) (*Payment, error)

Jump to

Keyboard shortcuts

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