Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

TON Solidity Testing

⚠️ Work in Progress: This section is under development.

This chapter covers testing Ursus contracts using the TON Solidity test framework (TS4).

Topics to be Covered

TS4 Framework

  • What is TS4
  • Installation
  • Configuration
  • Basic usage

Test Setup

  • Local blockchain
  • Contract deployment
  • Account management
  • Message sending

Testing Workflow

  1. Deploy contracts
  2. Send messages
  3. Check state
  4. Verify events
  5. Assert results

Advanced Testing

  • Multi-contract tests
  • Time manipulation
  • Gas analysis
  • Error testing

Integration with Ursus

Compilation

  • Generate Solidity
  • Compile to TVM
  • Deploy to TS4

Testing

  • Call contract functions
  • Verify state changes
  • Check events
  • Test errors

Coming Soon

This section will include:

  • TS4 setup guide
  • Test examples
  • Debugging techniques
  • Best practices

See Also