ethers-contract 1.0.2

Smart contract bindings for the ethers-rs crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.10;

contract MyContract {
    struct Point {
        uint256 x;
        uint256 y;
    }

    event NewPoint(Point x);

    function submitPoint(Point memory _point) public {
        emit NewPoint(_point);
    }
}