task

package
v0.7.3-alpha Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 SignTransfer

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

func SignTransferAuthorizationProcessor

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

Types

type AccountPayload

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

type TransferAuthPayload

type TransferAuthPayload struct {
	Amount            uint64 `json:"amount"`
	Authorizer        string `json:"authorizer"`
	AuthorizedAddress string `json:"authorizedAddress"`
	TrackingId        string `json:"trackingId"`
	VoucherAddress    string `json:"voucherAddress"`
}

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