Skip to content

ironblocks/firewall-consumer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ironblocks

Usage

Once installed, you can use the contracts in the library by importing them:

pragma solidity ^0.8;

import "@ironblocks/firewall-consumer/contracts/FirewallConsumer.sol";

contract MyProtectedContract is FirewallConsumer {
    constructor() {

    }

    function1() external firewallProtected {

    }

    function2() external payable firewallProtected {

    }

    function3() external payable firewallProtected invariantProtected {

    }

    function4() internal firewallProtectedCustom(abi.encodePacked(bytes4(<0xdata>>))) {

    }

    ...
}

To keep your system secure, you should always use the installed code as-is, and neither copy-paste it from online sources nor modify it yourself. The library is designed so that only the contracts and functions you use are deployed, so you don't need to worry about it needlessly increasing gas costs.

Security

This project is maintained by Ironblocks with the goal of providing a secure and reliable library of smart contract components for the ecosystem. We address security through risk management in various areas such as engineering and open source best practices, scoping and API design, multi-layered review processes, and incident response preparedness.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published