Documentation
¶
Index ¶
- type AggchainType
- type CreateRollupInfo
- type RollupManager
- func (rm *RollupManager) GetAttachedRollups(ctx context.Context) (map[uint64]string, error)
- func (rm *RollupManager) GetConsensusDescription(ctx context.Context, rollupID uint32) (string, error)
- func (rm *RollupManager) GetInitializedBlocks(ctx context.Context) (map[uint8]uint64, error)
- func (rm *RollupManager) GetRollupCreationInfo(ctx context.Context, rollupID uint32) (CreateRollupInfo, error)
- func (rm *RollupManager) GetRollupIdentityData(chainID uint64) (common.Address, uint32, error)
- func (rm *RollupManager) InitContract(ctx context.Context, client *ethclient.Client) error
- type VerifierType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateRollupInfo ¶
type RollupManager ¶
type RollupManager struct {
Address common.Address
BridgeAddress common.Address
GERAddr common.Address
POLAddr common.Address
CreationBlock uint64
UpdateToULxLyBlock uint64
Client *ethclient.Client `json:"-"`
Contract *agglayermanager.Agglayermanager `json:"-"`
}
func LoadFromFile ¶
func LoadFromFile(client *ethclient.Client, filePath string) (*RollupManager, error)
func LoadFromL1 ¶
func (*RollupManager) GetAttachedRollups ¶
GetAttachedRollups returns a list of attached rollups
func (*RollupManager) GetConsensusDescription ¶
func (rm *RollupManager) GetConsensusDescription(ctx context.Context, rollupID uint32) (string, error)
GetConsensusDescription returns the description of the consensus for a given rollup ID
func (*RollupManager) GetInitializedBlocks ¶ added in v0.0.12
GetInitializedBlocks returns a mapping of version => block number of the rollup manager
func (*RollupManager) GetRollupCreationInfo ¶
func (rm *RollupManager) GetRollupCreationInfo(ctx context.Context, rollupID uint32) (CreateRollupInfo, error)
GetRollupCreation returns genesis root and the block number in which the rollup was created
func (*RollupManager) GetRollupIdentityData ¶
GetRollupIdentityData returns the rollup id and its address based on the provided chain id
func (*RollupManager) InitContract ¶
InitContract initializes the rollup manager contract if not already initialized
type VerifierType ¶
type VerifierType int
const ( StateTransition VerifierType = iota Pessimistic ALGateway )
Click to show internal directories.
Click to hide internal directories.