Skip to content

Commit

Permalink
update readme building and testing sections
Browse files Browse the repository at this point in the history
  • Loading branch information
lightclient committed Apr 8, 2024
1 parent 2a216ee commit 7840e77
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,36 @@ $ go install github.com/fjl/geas/cmd/geas@latest

## Building

TODO
To assemble `src/main.eas` you will need to invoke `geas`:

```console
$ geas src/main.eas
3373fffffffffffffffffffffffffffffffffffffffe146090573615156028575f545f5260205ff35b36603814156101215760115f54600182026001905f5b5f82111560595781019083028483029004916001019190603e565b90939004341061012157600154600101600155600354806003026004013381556001015f3581556001016020359055600101600355005b6003546002548082038060101160a4575060105b5f5b81811460dd5780604c02838201600302600401805490600101805490600101549160601b83528260140152906034015260010160a6565b910180921460ed579060025560f8565b90505f6002555f6003555b5f5460015460028282011161010f5750505f610115565b01600290035b5f555f600155604c025ff35b5f5ffd
```

## Testing

TODO
The tests can be executed using the `build-wrapper` script with the same arguments as [forge][forge]:

```console
$ ./build-wrapper test
[⠒] Compiling...
[⠒] Compiling 1 files with 0.8.14
[⠢] Solc 0.8.14 finished in 976.49ms
Compiler run successful!

Running 5 tests for test/Contract.t.sol:ContractTest
[PASS] testFakeExpo() (gas: 16063)
[PASS] testFee() (gas: 449136269)
[PASS] testInvalidRequest() (gas: 17248)
[PASS] testQueueReset() (gas: 7170334)
[PASS] testRequest() (gas: 152821)
Test result: ok. 5 passed; 0 failed; 0 skipped; finished in 870.90ms

Ran 1 test suites: 5 tests passed, 0 failed, 0 skipped (5 total tests)
```

[geas]: https://github.com/fjl/geas
[7002]: https://eips.ethereum.org/EIPS/eip-7002
[foundry]: https://getfoundry.sh/
[forge]: https://github.com/foundry-rs/foundry/blob/master/forge

0 comments on commit 7840e77

Please sign in to comment.