models

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 3 Imported by: 4 modules, 6 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package models provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EVMEvent

type EVMEvent struct {
	// Address The contract address that emitted the event
	Address string `json:"address"`

	// BlockNumber The block number where the event was emitted
	BlockNumber uint64 `json:"block_number"`

	// BlockTimestamp The timestamp of the block where the event was emitted
	BlockTimestamp uint64 `json:"block_timestamp"`

	// ChainId The chain ID of the EVM network
	ChainId string `json:"chain_id"`

	// EventSignature The signature of the event
	EventSignature string `json:"event_signature"`

	// LogIndex The log index of the event in the transaction receipt
	LogIndex uint32                  `json:"log_index"`
	Params   *map[string]interface{} `json:"params,omitempty"`

	// TopicHash The topic hash of the event
	TopicHash string `json:"topic_hash"`

	// TxHash The transaction hash of the transaction that emitted the event
	TxHash string `json:"tx_hash"`
}

EVMEvent defines model for EVMEvent.

type OperationStatusData

type OperationStatusData struct {
	// Status Status of the operation (broadcasting, confirmed, failed).
	Status OperationStatusDataStatus `json:"status"`

	// StatusReason Reason for the status.
	StatusReason string `json:"status_reason"`

	// TransactionHash The hash of the transaction that caused the status update.
	TransactionHash *string `json:"transaction_hash,omitempty"`

	// WalletAddress Wallet address associated with the operation
	WalletAddress string `json:"wallet_address"`

	// WalletOperationId Unique identifier for the wallet operation
	WalletOperationId string `json:"wallet_operation_id"`
}

OperationStatusData defines model for OperationStatusData.

type OperationStatusDataStatus

type OperationStatusDataStatus string

OperationStatusDataStatus Status of the operation (broadcasting, confirmed, failed).

const (
	Broadcasting OperationStatusDataStatus = "broadcasting"
	Confirmed    OperationStatusDataStatus = "confirmed"
	Failed       OperationStatusDataStatus = "failed"
)

Defines values for OperationStatusDataStatus.

type VerifiableEvent

type VerifiableEvent struct {
	ChainEvent *VerifiableEvent_ChainEvent `json:"chain_event,omitempty"`

	// ChainFamily The blockchain family related to the event
	ChainFamily *string `json:"chain_family,omitempty"`

	// ChainSelector The specific blockchain network related to the event
	ChainSelector *string                 `json:"chain_selector,omitempty"`
	Data          *map[string]interface{} `json:"data,omitempty"`

	// Name The name of the event
	Name string `json:"name"`

	// Service The service that generated the event (_crec is used for non verifiable events not related to a specific service). Generic listeners will populate them as nil.
	Service *string `json:"service,omitempty"`

	// Timestamp The timestamp when the event was created
	Timestamp time.Time `json:"timestamp"`
}

VerifiableEvent defines model for VerifiableEvent.

type VerifiableEvent_ChainEvent

type VerifiableEvent_ChainEvent struct {
	// contains filtered or unexported fields
}

VerifiableEvent_ChainEvent defines model for VerifiableEvent.ChainEvent.

func (VerifiableEvent_ChainEvent) AsEVMEvent

func (t VerifiableEvent_ChainEvent) AsEVMEvent() (EVMEvent, error)

AsEVMEvent returns the union data inside the VerifiableEvent_ChainEvent as a EVMEvent

func (*VerifiableEvent_ChainEvent) FromEVMEvent

func (t *VerifiableEvent_ChainEvent) FromEVMEvent(v EVMEvent) error

FromEVMEvent overwrites any union data inside the VerifiableEvent_ChainEvent as the provided EVMEvent

func (VerifiableEvent_ChainEvent) MarshalJSON

func (t VerifiableEvent_ChainEvent) MarshalJSON() ([]byte, error)

func (*VerifiableEvent_ChainEvent) MergeEVMEvent

func (t *VerifiableEvent_ChainEvent) MergeEVMEvent(v EVMEvent) error

MergeEVMEvent performs a merge with any union data inside the VerifiableEvent_ChainEvent, using the provided EVMEvent

func (*VerifiableEvent_ChainEvent) UnmarshalJSON

func (t *VerifiableEvent_ChainEvent) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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