-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 👷 Add CI Pipeline Signed-off-by: Pascal Marco Caversaccio <[email protected]> * 📖 Improve docs Signed-off-by: Pascal Marco Caversaccio <[email protected]> * 📖 sequence Signed-off-by: Pascal Marco Caversaccio <[email protected]> * 👷 Disallow redirects Signed-off-by: Pascal Marco Caversaccio <[email protected]> * 📖 docs Signed-off-by: Pascal Marco Caversaccio <[email protected]> * 📖 Add MIT License Signed-off-by: Pascal Marco Caversaccio <[email protected]> * 📖 Adjust License Badge Signed-off-by: Pascal Marco Caversaccio <[email protected]> --------- Signed-off-by: Pascal Marco Caversaccio <[email protected]>
- Loading branch information
1 parent
0c3df52
commit a8aa9d7
Showing
4 changed files
with
136 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
name: 👮♂️ Sanity checks | ||
|
||
on: [push, pull_request, workflow_dispatch] | ||
|
||
concurrency: | ||
group: ${{github.workflow}}-${{github.ref}} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
prettify: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
node_version: | ||
- 20 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js ${{ matrix.node_version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
|
||
- name: Run Prettier | ||
run: npx prettier -c '**/*.{md,yml,yaml}' | ||
|
||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@nightly | ||
with: | ||
components: rustfmt | ||
|
||
- name: Format Rust code | ||
run: cargo fmt --all --check | ||
|
||
codespell: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run codespell | ||
uses: codespell-project/[email protected] | ||
with: | ||
check_filenames: true | ||
ignore_words_list: wee | ||
skip: ./.git | ||
|
||
validate-links: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
ruby_version: | ||
- 3.3 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby_version }} | ||
bundler-cache: true | ||
|
||
- name: Install awesome_bot | ||
run: gem install awesome_bot | ||
|
||
- name: Validate URLs | ||
run: awesome_bot ./*.md src/*.rs src/**/*.cl --allow-dupe --request-delay 0.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 Hrik Bhowal | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,53 @@ | ||
# createXcrunch | ||
# `createXcrunch` | ||
|
||
createXcrunch is a Rust-based program designed to efficiently find zero-leading, zero-containing, or pattern-matching addresses for the [CreateX](https://github.com/pcaversaccio/createx) contract factory. Uses OpenCL in order to leverage a GPU's mining capabilities. | ||
[![👮♂️ Sanity checks](https://github.com/HrikB/createXcrunch/actions/workflows/checks.yml/badge.svg)](https://github.com/HrikB/createXcrunch/actions/workflows/checks.yml) | ||
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/license/mit/) | ||
|
||
`createXcrunch` is a [Rust](https://www.rust-lang.org)-based program designed to efficiently find _zero-leading_, _zero-containing_, or _pattern-matching_ addresses for the [CreateX](https://github.com/pcaversaccio/createx) contract factory. Uses [OpenCL](https://www.khronos.org/opencl/) in order to leverage a GPU's mining capabilities. | ||
|
||
## Installation | ||
|
||
1. **Clone the Repository** | ||
|
||
``` | ||
git clone https://github.com/HrikB/createXcrunch | ||
cd createXcrunch | ||
``` | ||
|
||
2. **Build the Project** | ||
|
||
``` | ||
cargo build --release | ||
``` | ||
|
||
> Building on Windows currently fails (see [this](https://github.com/HrikB/createXcrunch/issues/1) issue). If you want to continue using Windows, we recommend using the Windows Subsystem for Linux (WSL) and installing Rust via `curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh`. | ||
## Usage | ||
``` | ||
|
||
```console | ||
./target/release/createxcrunch create3 --caller 0x88c6C46EBf353A52Bdbab708c23D0c81dAA8134A | ||
\ --crosschain 1 | ||
\ --matching ba5edXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXba5ed | ||
``` | ||
|
||
Use the `--help` flag for a full overview of all the features and how to use them. | ||
Use the `--help` flag for a full overview of all the features and how to use them: | ||
|
||
```console | ||
./target/release/createxcrunch create2 --help | ||
``` | ||
|
||
or | ||
|
||
```console | ||
./target/release/createxcrunch create3 --help | ||
``` | ||
|
||
## Contributions | ||
|
||
PRs welcome! | ||
|
||
## Acknowledgements | ||
|
||
- https://github.com/0age/create2crunch | ||
- https://github.com/Vectorized/function-selector-miner | ||
- https://github.com/pcaversaccio/createx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters