bridge_service

package
v0.1.99 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("the bridge deposit was not found")
)

Functions

func HashSliceToBytesArray

func HashSliceToBytesArray(hashes []common.Hash) [32][32]byte

Types

type BridgeService

type BridgeService interface {
	GetDeposit(depositNetwork, depositCount uint32) (*Deposit, error)
	GetDeposits(destinationAddress string, offset, limit int) (deposits []Deposit, total int, err error)
	GetProof(depositNetwork, depositCount uint32) (*Proof, error)
	GetProofByGer(depositNetwork, depositCount uint32, ger common.Hash) (*Proof, error)
	GetProofByL1InfoTreeIndex(depositNetwork, depositCount uint32, l1InfoTreeIndex uint32) (*Proof, error)
	Url() string
}

type BridgeServiceBase

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

func NewBridgeServiceBase

func NewBridgeServiceBase(url string) BridgeServiceBase

func (*BridgeServiceBase) Url

func (b *BridgeServiceBase) Url() string

type Deposit

type Deposit struct {
	LeafType      uint8
	OrigNet       uint32
	OrigAddr      common.Address
	Amount        *big.Int
	DestNet       uint32
	DestAddr      common.Address
	BlockNum      uint64
	DepositCnt    uint32
	NetworkID     uint32
	TxHash        common.Hash
	ClaimTxHash   *common.Hash
	Metadata      []byte
	ReadyForClaim bool
	GlobalIndex   *big.Int
}

type Proof

type Proof struct {
	MerkleProof       []common.Hash
	RollupMerkleProof []common.Hash
	MainExitRoot      *common.Hash
	RollupExitRoot    *common.Hash
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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