An open-source smart contracts library curated by the Suzaku team.
This library provides utility contracts for different blockchain ecosystems, notably Avalanche.
Check more informations here.
- 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.
- The ValidatorMessages library provides utility functions to encode and decode validator set update Warp messages.
- The ACP99Manager contract can be set as the
SubnetManager
address of a L1 to manage its validator set. It follows the ACP-99 standard. - The IACP99Manager interface defines the functions that a contract must implement to be an
ACP99Manager
. - The IACP99SecurityModule interface defines the functions that a security module must implement to work with the
ACP99Manager
. - The ACP99PoAModule contract is an example implementation of a Proof-of-Authority security module that works with the
ACP99Manager
.
To use the library in your project, you can install it with forge
:
forge install suzaku-network/suzaku-contracts-library
cd contracts
forge install
forge build
forge test