All locking, reward distribution, and additional locking operations for Sequencers are executed on the Sepolia Testnet. These contracts are integral to managing the Sequencer lifecycle and ensuring smooth participation in the network.
Key Contracts
The following contracts are essential for Sequencer operations:
Contract
Address
LockingInfo
0x390A6fE63385522E87e248BC5200f7d3a02F994b
LockingPool
0x7591940125cC0344a65D60319d1ADcD463B2D4c3
Sequencers can perform all operations, including managing rewards and lock-ups, directly through these contracts without needing frontend access.
The following methods are provided to manage Sequencers efficiently. These include querying and updating your Sequencer's status, locking tokens, and handling rewards.
Read Contract Information
seqOwners
Retrieves all operational details of a Sequencer using the owner address.
Parameter:
seqId (uint256)
: Sequencer ID.
Response: Detailed Sequencer operational state.
seqSigners
Retrieves Sequencer information using the signer address.
Parameter:
seqId (uint256)
: Sequencer ID.
Response: Detailed Sequencer operational state.
sequencers
Accesses all relevant details of a Sequencer using its ID.
Parameter:
seqId (uint256)
: Sequencer ID.
Response:
Write Contract Information
lockFor
Locks METIS tokens and assigns Sequencer ownership.
Parameters:
_signer (address)
: Sequencer signer address.
_amount (uint256)
: Amount of METIS to lock.
_signerPubkey (bytes)
: Uncompressed public key of the signer.
lockWithRewardRecipient
Similar to lockFor
, but allows specifying a reward recipient at the outset.
Parameters:
_signer (address)
: Sequencer signer address.
_rewardRecipient (address)
: Reward recipient address.
_amount (uint256)
: Amount of METIS to lock.
_signerPubkey (bytes)
: Uncompressed public key.
relock
Adds additional tokens to an existing lock or locks accrued rewards.
Parameters:
_seqId (uint256)
: Sequencer ID.
_amount (uint256)
: Amount to relock.
_lockReward (bool)
: Whether to lock rewards.
setSequencerRewardRecipient
Updates or assigns a reward recipient for a Sequencer.
Parameters:
_seqId (uint256)
: Sequencer ID.
_recipient (address)
: New reward recipient address.
withdrawRewards
Withdraws accrued rewards to the specified address.
Parameters:
_seqId (uint256)
: Sequencer ID.
_l2Gas (uint32)
: Gas limit for the operation.
unlock
Initiates the unlocking process for METIS tokens.
Parameters:
_seqId (uint256)
: Sequencer ID.
_l2Gas (uint32)
: Gas limit for the bridge operation.
unlockClaim
Claims unlocked tokens after the 21-day waiting period.
Parameters:
_seqId (uint256)
: Sequencer ID.
_l2Gas (uint32)
: Gas limit.
withdraw
Partially withdraws locked tokens, ensuring the remaining balance meets the minimum lock requirement.
Parameters:
_amount (uint256)
: Amount to withdraw.
_seqId (uint256)
: Sequencer ID.