@ironblocks/firewall-consumer

1.0.17 • Public • Published

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.

Dependents (11)

Package Sidebar

Install

npm i @ironblocks/firewall-consumer

Weekly Downloads

19

Version

1.0.17

License

SEE LICENSE IN LICENSE

Unpacked Size

4.39 MB

Total Files

76

Last publish

Collaborators

  • vik-vik
  • mwoyshvillo
  • lior-ironblocks
  • davidironblocks
  • uri-chandler-ironblocks
  • assafironblocks