Skip to content

Update To Core

Choose a tag to compare

@icdevs icdevs released this 20 Feb 22:42
· 5 commits to main since this release

v0.4.0

Code Quality

  • Probable breaking changes
  • Fixed 8 unguarded Debug.print statements in get_tip_certificate() - now guarded with debug if(debug_channel.certificate)
  • Fixed unused identifier warnings across all source files:
    • archive/lib.mo: Removed unused imports (Int, Time, Timer), removed redundant stable keyword
    • example/main.mo: Removed unused imports and prefixed unused parameters
    • testActor/InterfaceTest.mo: Removed unused imports and prefixed unused functions
    • pic/ICRC3OVSTestCanisterV1.mo & V2.mo: Fixed unused variable warnings
    • testActor/test_runner.mo: Replaced deprecated ExperimentalCycles.add<system> with (with cycles = N) syntax, prefixed 40+ unused variables
    • updated to core, sha2, leb128

Mixin Enhancements

  • Added icrc3_get_stats() query function to mixin.mo for consistency with ICRC-2/4

Documentation

  • Complete README rewrite with:
    • Comprehensive API Reference section
    • Complete type documentation (Value, Transaction, BlockType, Stats, DataCertificate)
    • Interface Hooks documentation with usage examples
    • Security Considerations section
    • Migration Guide (v0.1.x → v0.2.x → v0.3.x)
    • Archive Configuration best practices
    • Transaction Log sizing guidelines