types

package
v1.9.7 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ChainType          = "stellar"
	LedgerSeqBatchSize = 50 // the number of ledger sequences to query concurrently for listener
)
View Source
const (
	ScValConversionErr = "ScVal conversion failed"
)

Variables

This section is empty.

Functions

func BigIntToUint128

func BigIntToUint128(b *big.Int) xdr.UInt128Parts

Convert big.Int to Uint128

func Uint128ToBigInt

func Uint128ToBigInt(u xdr.UInt128Parts) *big.Int

Types

type Event

type Event struct {
	*xdr.ContractEvent
	LedgerSeq uint64
}

type EventFilter

type EventFilter struct {
	LedgerSeq   uint64
	ContractIds []string
	Topics      []string
}

type Filter added in v1.9.2

type Filter struct {
	Type        string     `json:"type,omitempty"`
	ContractIDS []string   `json:"contractIds"`
	Topics      [][]string `json:"topics,omitempty"`
}

type GetEventFilter added in v1.9.2

type GetEventFilter struct {
	StartLedger uint64     `json:"startLedger"`
	Pagination  Pagination `json:"pagination"`
	Filters     []Filter   `json:"filters"`
}

type LedgerSeqBatch

type LedgerSeqBatch struct {
	FromSeq uint64
	ToSeq   uint64
}

type Pagination added in v1.9.2

type Pagination struct {
	Limit  int    `json:"limit,omitempty"`
	Cursor string `json:"cursor,omitempty"`
}

type ScValConverter

type ScValConverter interface {
	Convert(val xdr.ScVal) error
}

any type that needs conversion from ScVal should implement this interface

type ScvBool

type ScvBool bool

func (*ScvBool) Convert

func (v *ScvBool) Convert(val xdr.ScVal) error

type ScvU64F128

type ScvU64F128 uint64

func (*ScvU64F128) Convert

func (v *ScvU64F128) Convert(val xdr.ScVal) error

type StellerMsg

type StellerMsg struct {
	relayertypes.Message
}

func (StellerMsg) ScvData

func (m StellerMsg) ScvData() xdr.ScVal

func (StellerMsg) ScvDst

func (m StellerMsg) ScvDst() xdr.ScVal

func (StellerMsg) ScvMessageHeight

func (m StellerMsg) ScvMessageHeight() xdr.ScVal

func (StellerMsg) ScvReqID

func (m StellerMsg) ScvReqID() xdr.ScVal

func (StellerMsg) ScvSn

func (m StellerMsg) ScvSn() xdr.ScVal

func (StellerMsg) ScvSrc

func (m StellerMsg) ScvSrc() xdr.ScVal

Jump to

Keyboard shortcuts

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