Skip to content

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

License

Notifications You must be signed in to change notification settings

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

ICM contracts library

Check more informations here.

Contracts, librairies and interface

  • 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, libraries and interfaces

  • 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.

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