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

Teleporter contracts library

Contracts

  • The AvalancheICTTRouter contract is a router contract that can be used as backend for bridge UIs built on top of Avalanche ICTT.
    It tracks the Home and Remote TokenTransferrer contracts on multiple chains to initiate transfers by only providing the token to transfer, the destination chain ID and the recipient address.
    Read more

Scripts

Foundry deployment scripts for Avalanche ICTT Home and Remote contracts at contracts/script/Teleporter:

Those scripts make use of environment variables to deploy the contracts. See HelperConfig.s.sol for more details.

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 Subnet 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