task

package
v0.2.6-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountGiftGasProcessor

func AccountGiftGasProcessor(cu *custodial.Custodial) func(context.Context, *asynq.Task) error

func AccountPrepare

func AccountPrepare(cu *custodial.Custodial) func(context.Context, *asynq.Task) error

func AccountRefillGasProcessor

func AccountRefillGasProcessor(cu *custodial.Custodial) func(context.Context, *asynq.Task) error

func AccountRegisterOnChainProcessor

func AccountRegisterOnChainProcessor(cu *custodial.Custodial) func(context.Context, *asynq.Task) error

func DispatchTx

func DispatchTx(cu *custodial.Custodial) func(context.Context, *asynq.Task) error

func GiftVoucherProcessor

func GiftVoucherProcessor(cu *custodial.Custodial) func(context.Context, *asynq.Task) error

func SignTransfer

func SignTransfer(cu *custodial.Custodial) func(context.Context, *asynq.Task) error

Types

type AccountPayload

type AccountPayload struct {
	PublicKey  string `json:"publicKey"`
	TrackingId string `json:"trackingId"`
}

type TransferPayload

type TransferPayload struct {
	TrackingId     string `json:"trackingId"`
	From           string `json:"from" `
	To             string `json:"to"`
	VoucherAddress string `json:"voucherAddress"`
	Amount         uint64 `json:"amount"`
}

type TxPayload

type TxPayload struct {
	OtxId uint               `json:"otxId"`
	Tx    *types.Transaction `json:"tx"`
}

Jump to

Keyboard shortcuts

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