legacy

package
v0.1.113 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BridgeService

type BridgeService struct {
	bridge_service.BridgeServiceBase
	// contains filtered or unexported fields
}

func NewBridgeService

func NewBridgeService(url string, insecure bool) (*BridgeService, error)

NewBridgeService creates an instance of the BridgeService.

func (*BridgeService) GetDeposit

func (s *BridgeService) GetDeposit(depositNetwork, depositCount uint32) (*bridge_service.Deposit, error)

func (*BridgeService) GetDeposits

func (s *BridgeService) GetDeposits(destinationAddress string, offset, limit int) ([]bridge_service.Deposit, int, error)

func (*BridgeService) GetProof

func (s *BridgeService) GetProof(depositNetwork, depositCount uint32) (*bridge_service.Proof, error)

func (*BridgeService) GetProofByGer added in v0.1.91

func (s *BridgeService) GetProofByGer(depositNetwork, depositCount uint32, ger common.Hash) (*bridge_service.Proof, error)

func (*BridgeService) GetProofByL1InfoTreeIndex added in v0.1.91

func (s *BridgeService) GetProofByL1InfoTreeIndex(depositNetwork, depositCount uint32, l1InfoTreeIndex uint32) (*bridge_service.Proof, error)

type DepositResponse

type DepositResponse struct {
	LeafType      uint8  `json:"leaf_type"`
	OrigNet       uint32 `json:"orig_net"`
	OrigAddr      string `json:"orig_addr"`
	Amount        string `json:"amount"`
	DestNet       uint32 `json:"dest_net"`
	DestAddr      string `json:"dest_addr"`
	BlockNum      string `json:"block_num"`
	DepositCnt    uint32 `json:"deposit_cnt"`
	NetworkID     uint32 `json:"network_id"`
	TxHash        string `json:"tx_hash"`
	ClaimTxHash   string `json:"claim_tx_hash"`
	Metadata      string `json:"metadata"`
	ReadyForClaim bool   `json:"ready_for_claim"`
	GlobalIndex   string `json:"global_index"`
}

func (*DepositResponse) ToDeposit

func (r *DepositResponse) ToDeposit() (*bridge_service.Deposit, error)

type GetDepositResponse

type GetDepositResponse struct {
	Deposit DepositResponse `json:"deposit"`
	Code    *int            `json:"code"`
	Message *string         `json:"message"`
}

type GetDepositsResponse

type GetDepositsResponse struct {
	Deposits []DepositResponse `json:"deposits"`
	Total    int               `json:"total_cnt,string"`
}

type GetProofResponse

type GetProofResponse struct {
	Proof ProofResponse `json:"proof"`
}

type ProofResponse

type ProofResponse struct {
	MerkleProof       []string `json:"merkle_proof"`
	RollupMerkleProof []string `json:"rollup_merkle_proof"`
	MainExitRoot      string   `json:"main_exit_root"`
	RollupExitRoot    string   `json:"rollup_exit_root"`
}

func (*ProofResponse) ToProof

func (r *ProofResponse) ToProof() *bridge_service.Proof

Jump to

Keyboard shortcuts

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