Skip to content

SupernetManager

The SupernetManager contract is an abstract contract for managing Furtheon-powered chains. It serves as a base contract that should be implemented with custom desired functionality.

Functions

onInit()

function onInit(uint256 id) external;

This function is called when a new childchain is registered. It allows the implementing contract to perform initialization logic when a new child chain is added to the Furtheon-powered chain.

Parameters:

id: The ID of the newly registered child chain.

onStake()

function onStake(address validator, uint256 amount) external;

This function is called when a validator stakes. It allows the implementing contract to perform additional logic when a validator stakes for a child chain in the Furtheon-powered chain.

Parameters:

  • validator: The address of the validator who stakes.
  • amount: The amount of stake being staked by the validator.