-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from bitfinity-network/ordinalsV2
Ordinals v2
- Loading branch information
Showing
30 changed files
with
1,154 additions
and
228 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,25 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: 'type: bug' | ||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**Please provide the steps to reproduce and if possible a minimal demo of the problem.** | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots / logs** | ||
If applicable, add screenshots and/or logs to help explain your problem. | ||
|
||
**Relevant environment details:** | ||
|
||
- OS: e.g. MacOS, Windows, etc. | ||
- etc | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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,18 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: 'type: feature-proposal' | ||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when... | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
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,26 @@ | ||
# Motivation | ||
<!-- Please mention the issue fixed by this PR or detailed motivation --> | ||
Closes # | ||
<!-- `Closes #XXXX, closes #XXXX, ...` links mentioned issues to this PR and automatically closes them when it's merged --> | ||
|
||
## Changes | ||
<!-- Please describe in detail the changes made --> | ||
|
||
## Test Plan | ||
<!-- Please specify how these changes were tested | ||
(e.g. unit tests, manual testing, etc.) --> | ||
|
||
## TODO | ||
<!-- This section should be removed when all items are complete --> | ||
- [ ] Explain motivation or link existing issue(s) | ||
- [ ] Test changes and document test plan | ||
- [ ] Update documentation as needed | ||
|
||
## DevOps Notes | ||
<!-- Please uncheck these items as applicable to make DevOps aware of changes that may affect releases --> | ||
- [x] This PR does not require configuration changes (e.g., environment variables, GitHub secrets, VM resources) | ||
- [x] This PR does not affect public APIs | ||
- [x] This PR does not rely on a new version of external services | ||
- [x] This PR does not make changes to log messages (which monitoring infrastructure may rely on) | ||
|
||
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license. |
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,46 +1,94 @@ | ||
name: build-test | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- "*.md" | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build-test: | ||
name: Build and Test | ||
check: | ||
name: Check with ${{matrix.features}} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
toolchain: [stable] | ||
os: [ubuntu] | ||
features: [--all-features, --no-default-features] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
- uses: actions/checkout@main | ||
- name: Install rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
components: clippy, rustfmt | ||
targets: i686-unknown-linux-gnu | ||
toolchain: ${{matrix.toolchain}} | ||
override: true | ||
- name: Check | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: check | ||
args: --all-targets ${{matrix.features}} | ||
|
||
- name: rustfmt | ||
run: | | ||
cargo fmt --all --check | ||
test: | ||
name: Test Rust ${{matrix.toolchain}} on ${{matrix.os}} | ||
runs-on: ${{matrix.os}}-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
toolchain: [stable, nightly] | ||
os: [ubuntu] | ||
steps: | ||
- uses: actions/checkout@main | ||
- name: Install rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{matrix.toolchain}} | ||
override: true | ||
- name: Test | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
|
||
- name: clippy | ||
run: | | ||
cargo clippy --all-features --all-targets -- -D warnings | ||
clippy: | ||
name: Clippy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@main | ||
- name: Install minimal nightly with clippy | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: nightly | ||
components: clippy | ||
override: true | ||
|
||
- name: build | ||
run: | | ||
cargo build | ||
- name: Clippy | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: --all -- -D clippy::all -D warnings | ||
|
||
- name: test | ||
run: | | ||
./scripts/test.sh | ||
rustfmt: | ||
name: rustfmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@main | ||
- name: Install minimal nightly with rustfmt | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: nightly | ||
components: rustfmt | ||
override: true | ||
|
||
- name: test i686-unknown-linux-gnu | ||
run: | | ||
sudo apt install gcc-multilib | ||
./scripts/test.sh --target i686-unknown-linux-gnu | ||
- name: rustfmt | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: --all -- --check |
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 |
---|---|---|
|
@@ -14,4 +14,6 @@ Cargo.lock | |
*.pdb | ||
|
||
# IDE files | ||
.idea | ||
.idea | ||
.DS_Store | ||
.vscode |
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
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
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
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
Oops, something went wrong.