whevents

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventTransactionPayload

type EventTransactionPayload struct {
	Kind             models.WebhookKind        `json:"kind"`
	IsSystem         bool                      `json:"is_system"`
	Blockchain       wconstants.BlockchainType `json:"blockchain"`
	Hash             string                    `json:"hash"`
	NetworkCreatedAt time.Time                 `json:"network_created_at"`
	FromAddress      string                    `json:"from_address,omitempty"`
	ToAddress        string                    `json:"to_address,omitempty"`
	Amount           string                    `json:"amount"`
	ContractAddress  string                    `json:"contract_address,omitempty"`
	Status           models.WebhookEventStatus `json:"status"`
	Fee              string                    `json:"fee"`
	Confirmations    uint64                    `json:"confirmations"`
	WalletType       constants.WalletType      `json:"wallet_type"`
	TxUniqKey        string                    `json:"tx_uniq_key,omitempty"`
	ExternalWalletID string                    `json:"external_wallet_id,omitempty"`
	RequestID        string                    `json:"request_id,omitempty"`
}

EventTransactionPayload

func (EventTransactionPayload) RawMessage

func (p EventTransactionPayload) RawMessage() (*bytes.Buffer, error)

type EventTransferStatusPayload

type EventTransferStatusPayload struct {
	Kind               models.WebhookKind            `json:"kind"`
	IsSystem           bool                          `json:"is_system"`
	RequestID          string                        `json:"request_id"`
	Status             constants.TransferStatus      `json:"status"`
	Step               string                        `json:"step"`
	SystemTransactions []*models.TransferTransaction `json:"system_transactions"`
	ErrorMessage       string                        `json:"error_message,omitempty"`
}

EventTransferStatusPayload

func (EventTransferStatusPayload) RawMessage

func (p EventTransferStatusPayload) RawMessage() (*bytes.Buffer, error)

Jump to

Keyboard shortcuts

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