appchain

package
v0.0.0-...-e865ecf Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StakeAmount = big.NewInt(0).Mul(big.NewInt(32), big.NewInt(1e18))
)

Functions

This section is empty.

Types

type L1AppChainListener

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

func NewL1AppChainListener

func NewL1AppChainListener(chainId string,
	contracts []string,
	shutdown context.CancelCauseFunc,
	loopInterval time.Duration,
	startHeight uint64,
	epoch uint64,
	bridgeRpcService bridge.BridgeRpcService,
	db *database.DB) (*L1AppChainListener, error)

func (*L1AppChainListener) EventsFetch

func (l *L1AppChainListener) EventsFetch(fromL1Height, toL1Height *big.Int) error

func (*L1AppChainListener) Start

func (l *L1AppChainListener) Start() error

type L2AppChainListener

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

func NewL2AppChainListener

func NewL2AppChainListener(chainId string,
	contracts []string,
	shutdown context.CancelCauseFunc,
	loopInterval time.Duration,
	startHeight uint64,
	epoch uint64,
	bridgeRpcService bridge.BridgeRpcService,
	db *database.DB) (*L2AppChainListener, error)

func (*L2AppChainListener) EventsFetch

func (l *L2AppChainListener) EventsFetch(fromL1Height, toL1Height *big.Int) error

func (*L2AppChainListener) Start

func (l *L2AppChainListener) Start() error

type ToStakeShares

type ToStakeShares struct {
	TotalShares      *big.Int
	UserInfoShares   []*UserInfoShares
	NeedUpdateShares []*appchain.AppChainOperatorSharesIncreased
}

type UserInfoShares

type UserInfoShares struct {
	UserShares      *big.Int
	Staker          common.Address
	Operator        common.Address
	StrategyAddress common.Address
}

Jump to

Keyboard shortcuts

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