arbiter-bindings 0.1.7

Rust bindings for common solidity smart contracts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
import "forge-std/console2.sol";

contract Counter {
    uint256 public number;

    function setNumber(uint256 newNumber) public {
        number = newNumber;
        console2.log("You set the number to: ", newNumber);
    }

    function increment() public {
        number++;
    }
}