New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@timeleap/subnet-contracts

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@timeleap/subnet-contracts

This repository contains the staking logic used in the **Timeleap Network**, enabling participants to stake ERC-20 tokens with defined durations and withdrawal conditions. The system is built with modularity and upgradeability in mind, supporting safe and

latest
npmnpm
Version
1.0.4
Version published
Maintainers
2
Created
Source

🕰️ Timeleap Subnet Staking Contracts

This repository contains the staking logic used in the Timeleap Network, enabling participants to stake ERC-20 tokens with defined durations and withdrawal conditions. The system is built with modularity and upgradeability in mind, supporting safe and flexible future enhancements. Refer to TEP-5 for more information.

⚙️ Architecture Overview

The staking system is composed of multiple contracts:

  • Manager: Coordinates staking, slashing, and withdrawals.
  • Stakes: Maintains stake records and lock durations.
  • Bank: Handles token custody and transfers.
  • Repository: Tracks the latest Manager contract deployed.

By distributing responsibilities across specialized contracts, the system ensures that upgrades to logic can be performed safely without risking data or funds.

🔁 Upgrade Pattern

The architecture follows a separation-of-concerns pattern to maximize safety and flexibility:

  • Data and tokens are never stored in the Manager contract. Instead, they are handled by dedicated contracts (Stakes and Bank) which remain untouched during logic upgrades.
  • The Manager contract contains only logic and can be redeployed as needed to introduce new functionality or fix issues.
  • The Repository contract serves as a pointer to the currently active Manager contract, allowing frontends and other contracts to reference the latest logic without requiring migrations or manual updates.

This pattern ensures that:

  • User funds are always secure and unaffected by upgrades.
  • Upgrades do not require interrupting the staking process.
  • The system remains extensible and maintainable over time.

📦 Dependencies

📄 License

This project is UNLICENSED. All rights reserved to Timeleap SA.

FAQs

Package last updated on 18 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts