Documentation
Plugins

Time Advancement

BuildBear Time Advancement is a service that allows you to explore the blockchain.

Overview

Manipulate advanced time in your Sandbox by manually setting timestamps to simulate and test smart contracts across various time frames.

Once you advance, you cannot revert to the previous time.

Features

  • Custom Timestamp Adjustment - Advance the timestamp in your Sandbox by entering a specific date and time.
  • Flexible Input Formats - Accepts timestamps in multiple formats for ease of use:
    • Human-readable format (e.g., 31/08/2024, 22:54)
    • Unix timestamp (e.g., 1725086040)

Installation

  1. Log in to your BuildBear account and navigate to the Plugin Marketplace.
  2. Search for the "Time Advancement" Plugin and click "Install". Plugin Installation

How to Use

  1. Navigate to the Time Advancement section in your Sandbox settings. Time Advancement

  2. Enter the new timestamp using one of the supported formats. Time Advancement

  3. Click "Advance Time" to update the blockchain's time context.

Use Cases

  • Mock Protocol Behavior - Test and simulate various DeFi protocols by advancing the time over extended periods, simulating weeks, months, or years in seconds.
  • Stress Testing - Evaluate protocol performance under simulated future time scenarios. Replicate key lifecycle events to monitor contract behavior and identify issues early.

Conclusion

Take control of time in your Sandbox with the Time Advancement feature, allowing you to simulate and test under various temporal conditions for enhanced smart contract development and debugging.