Skip to content

Version 0.4.1 - Game Extensions (Multi-Proxy)

Pre-release
Pre-release
Compare
Choose a tag to compare
@toledoroy toledoroy released this 08 Jul 23:59
· 69 commits to main since this release

Summary

  • Games can be extended with multiple arbitrary contracts via a Multi-Proxy pattern
  • Contract will fallback to every contract in the extension stack until requested function is found

Added Functionality

Game Extensions

  • Extensions are loaded into the Hub by Game type
  • Extensions can not override any of the core Game functions
  • Pure contract that don't store data. For data storage use the OpenRepo

Example

// Add Game Extensions
hubContract.assocAdd("GAME_DAO", [CONTRACT_ADDRESS]);

// Set Game Type
await gameContract.confSet("type", "DAO");

Functionality Changes

  • Rules are now managed by a separate contract (RuleRepo). No changes in usability.