pkg

package
v0.0.0-...-4c27f15 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoSignatures = errors.New("transaction has no signatures")
View Source
var ErrTransactionAlreadyBurned = errors.New("transaction is already burned")
View Source
var ErrTransactionAlreadyMinted = errors.New("transaction is already minted")
View Source
var ErrTransactionAlreadyRefunded = errors.New("transaction is already refunded")

Functions

This section is empty.

Types

type Blockheight

type Blockheight struct {
	LastHeight    uint32 `json:"lastHeight"`
	StellarCursor string `json:"stellarCursor"`
}

type BridgeConfig

type BridgeConfig struct {
	TfchainURL          string
	TfchainSeed         string
	RescanBridgeAccount bool
	PersistencyFile     string
	StellarConfig
}

type ChainPersistency

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

func InitPersist

func InitPersist(location string) (*ChainPersistency, error)

func (*ChainPersistency) GetHeight

func (b *ChainPersistency) GetHeight() (*Blockheight, error)

func (*ChainPersistency) Save

func (b *ChainPersistency) Save(blockheight *Blockheight) error

func (*ChainPersistency) SaveHeight

func (b *ChainPersistency) SaveHeight(height uint32) error

func (*ChainPersistency) SaveStellarCursor

func (b *ChainPersistency) SaveStellarCursor(cursor string) error

type StellarConfig

type StellarConfig struct {
	// stellar account to monitor
	StellarBridgeAccount string
	// network for the stellar config
	StellarNetwork string
	// seed for the stellar bridge wallet
	StellarSeed string
	// url for stellar horizon
	StellarHorizonUrl string
}

type StellarSignature

type StellarSignature struct {
	Signature      []byte
	StellarAddress []byte
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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