@ironblocks/firewall-consumer

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

Package Sidebar

Install

npm i @ironblocks/firewall-consumer

Weekly Downloads

7

Version

1.0.10

License

UNLICENSED

Unpacked Size

27.3 kB

Total Files

8

Last publish

Collaborators

  • michael.ironblocks
  • davidironblocks
  • uri-chandler-ironblocks
  • assafironblocks