Skip to content

suzaku-network/suzaku-contracts-library

Repository files navigation

Suzaku Contracts Library

An open-source smart contracts library curated by the Suzaku team.

This library provides utility contracts for different blockchain ecosystems, notably Avalanche.

Avalanche ecosystem

Validator Manager Contracts

The Validator Manager contracts provide a flexible system for managing validator sets with multiple security modules.

Contracts, libraries and interfaces

Key features:

  • Multiple security modules can operate independently
  • Each security module has a maximum weight allocation
  • Support for validator registration, removal and weight updates
  • Built-in weight tracking and enforcement
  • Upgradeable from PoA Validator Manager

ICM contracts library

Check more information here.

Contracts, libraries and interfaces

  • The IAvalancheICTTRouter interface specifies the functions a contract must implement to act as a Router on an Avalanche EVM chain.
  • The IAvalancheICTTRouterFixedFees interface extends IAvalancheICTTRouter by defining additional functions for an "enforced fixed fees" Router on an Avalanche EVM chain.
  • The AvalancheICTTRouter contract serves as a routing contract that maps tokens to their canonical bridges, simplifying interactions with the Avalanche ICM contracts.
  • The AvalancheICTTRouterFixedFees contract builds on AvalancheICTTRouter by adding fee enforcement for bridging.

ACP99 contracts library

Contracts and interfaces in the ACP99/ directories were PoC for the ACP-99 standard. They are not maintained and should not be used in production.

Usage

To use the library in your project, you can install it with forge:

forge install suzaku-network/suzaku-contracts-library

Development

cd contracts

forge install
forge build
forge test

About

An open-source smart contracts library curated by the Suzaku team

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •