Documentation ¶
Index ¶
Constants ¶
View Source
const ( Approve = "approve" Check = "check" GiveTo = "giveTo" MintTo = "mintTo" NextTime = "nextTime" Register = "register" Transfer = "transfer" TransferFrom = "transferFrom" )
View Source
const AccountCreateID = "ACCOUNT_CREATE"
View Source
const DispatchID = "DISPATCH"
Variables ¶
View Source
var ( ErrInsufficientGas = errors.New("eth-custodial: insufficient gas") ErrGasPriceTooLow = errors.New("eth-custodial: gas price too low") ErrNonceTooLow = errors.New("eth-custodial: nonce too low") ErrReplacementTxUnderpriced = errors.New("eth-custodial: replacement tx underpriced") ErrNetwork = errors.New("eth-custodial: network related error") )
View Source
var ErrInvalidNumberString = errors.New("invalid number string")
Functions ¶
Types ¶
type AccountCreateArgs ¶
type AccountCreateArgs struct { TrackingID string `json:"trackingId"` KeyPair keypair.Key `json:"keypair"` }
func (AccountCreateArgs) Kind ¶
func (AccountCreateArgs) Kind() string
type AccountCreateWorker ¶
type AccountCreateWorker struct { river.WorkerDefaults[AccountCreateArgs] // contains filtered or unexported fields }
func (*AccountCreateWorker) Work ¶
func (w *AccountCreateWorker) Work(ctx context.Context, job *river.Job[AccountCreateArgs]) error
type DispatchArgs ¶
type DispatchArgs struct { TrackingID string `json:"trackingId"` OTXID uint64 `json:"otxId"` RawTx string `json:"rawTx"` }
func (DispatchArgs) Kind ¶
func (DispatchArgs) Kind() string
type DispatchError ¶
func (*DispatchError) Error ¶
func (e *DispatchError) Error() string
func (*DispatchError) Unwrap ¶
func (e *DispatchError) Unwrap() error
type DisptachWorker ¶
type DisptachWorker struct { river.WorkerDefaults[DispatchArgs] // contains filtered or unexported fields }
func (*DisptachWorker) Work ¶
func (w *DisptachWorker) Work(ctx context.Context, job *river.Job[DispatchArgs]) error
type TokenTransferArgs ¶
type TokenTransferArgs struct { TrackingID string `json:"trackingId"` From string `json:"from"` To string `json:"to"` TokenAddress string `json:"tokenAddress"` Amount string `json:"amount"` }
func (TokenTransferArgs) Kind ¶
func (TokenTransferArgs) Kind() string
type TokenTransferWorker ¶
type TokenTransferWorker struct { river.WorkerDefaults[TokenTransferArgs] // contains filtered or unexported fields }
func (*TokenTransferWorker) Work ¶
func (w *TokenTransferWorker) Work(ctx context.Context, job *river.Job[TokenTransferArgs]) error
Click to show internal directories.
Click to hide internal directories.