Documentation ¶
Index ¶
- 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) GetInitializedBlock(ctx context.Context) (uint64, error)
- func (rm *RollupManager) GetRollupCreationInfo(ctx context.Context, rollupID uint32) (CreateRollupInfo, error)
- func (rm *RollupManager) GetUpgradeBlocks(ctx context.Context) (map[uint8]uint64, error)
- func (rm *RollupManager) InitContract(ctx context.Context, client bind.ContractBackend) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateRollupInfo ¶
type RollupManager ¶
type RollupManager struct { Client *ethclient.Client Contract *polygonrollupmanager.Polygonrollupmanager `json:"-"` Address common.Address BridgeAddress common.Address GERAddr common.Address POLAddr common.Address CreationBlock uint64 UpdateToULxLyBlock uint64 }
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) GetInitializedBlock ¶
func (rm *RollupManager) GetInitializedBlock(ctx context.Context) (uint64, error)
GetInitializedBlock returns the block in which the contract was initialized
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) GetUpgradeBlocks ¶
GetUpgradeBlocks returns a mapping of version => block number of the rollup manager
func (*RollupManager) InitContract ¶
func (rm *RollupManager) InitContract(ctx context.Context, client bind.ContractBackend) error
InitContract initializes the rollup manager contract if not already initialized
Click to show internal directories.
Click to hide internal directories.