Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Sia Encoding #57

Merged
merged 36 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
1c9b688
remove prefixes add json spend policy encoding
n8maninger Nov 3, 2024
c5a724e
fmt
n8maninger Nov 3, 2024
476b546
trim whitespace
n8maninger Nov 3, 2024
93a80ba
remove the rest of the prefixes
n8maninger Nov 3, 2024
4900920
remove prefix parsing, support generic unlock keys
n8maninger Nov 3, 2024
0fb47d8
fmt
n8maninger Nov 3, 2024
e361043
implement deserialize for spend policies
n8maninger Nov 3, 2024
a09831e
use consts for spend policy prefixes
n8maninger Nov 3, 2024
ffc3e47
replace chrono with time
n8maninger Nov 3, 2024
0bf8f9a
add binary spend policy tests and fix deserialization
n8maninger Nov 5, 2024
88e5a0a
all: ouch
n8maninger Nov 5, 2024
a3a33dc
spendpolicy: fix encoding
n8maninger Nov 6, 2024
4acd5ea
handle sig error
n8maninger Nov 6, 2024
a85c9cb
remove unnecessary rhp4 file
n8maninger Nov 6, 2024
347ce2e
fix signing test
n8maninger Nov 6, 2024
b896887
fmt
n8maninger Nov 6, 2024
57c1d99
fix clippy warnings
n8maninger Nov 6, 2024
024aea2
remove deprecated mod.rs
n8maninger Nov 6, 2024
5e4d11c
sia-derive -> sia-sdk-derive
n8maninger Nov 6, 2024
cc4b639
sia-sdk-derive: add metadata fields
n8maninger Nov 6, 2024
2f9125a
sia-sdk-derive: update repo meta
n8maninger Nov 6, 2024
0d4e4f4
sia: sia-derive sia-sdk-derive
n8maninger Nov 6, 2024
b4a0a12
encoding: fix derive location
n8maninger Nov 6, 2024
6f3442f
underscore consistency
n8maninger Nov 6, 2024
2f95668
fix derive path
n8maninger Nov 6, 2024
9d38bc2
common: expose BlockID, serialize chain index
n8maninger Nov 6, 2024
a6c978e
encoding: support option
n8maninger Nov 6, 2024
11627ef
ci: use nightly for rustfmt
n8maninger Nov 6, 2024
a151885
fmt
n8maninger Nov 6, 2024
098b423
ci: install nightly
n8maninger Nov 6, 2024
88a441e
ci: install rustfmt nightly
n8maninger Nov 6, 2024
a895845
add component
n8maninger Nov 6, 2024
0a9687e
transactions: uncomment v1 encoding tests
n8maninger Nov 6, 2024
421f774
transactions: reduce test duplication, fix encodings
n8maninger Nov 6, 2024
6f9d4db
revert type aliases for IDs to increase type safety
n8maninger Nov 7, 2024
9e0c55e
renaming encoding modules
n8maninger Nov 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ jobs:
- name: Setup Environment
run: |
rustup update stable
rustup toolchain install nightly
rustup target add wasm32-unknown-unknown
rustup component add rustfmt --toolchain nightly
- name: Build for wasm
# Check if the library target compiles. This will still allow for using
# non-wasm functionality in tests and benchmarks but guarantees that
# consumers of the library can use it to generate wasm bindings.
run: cargo check --target wasm32-unknown-unknown --lib
- name: Rustfmt
run: cargo fmt --all -- --check
run: cargo +nightly fmt --all -- --check
- name: Clippy
run: cargo clippy -- -D warnings
- name: Test
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/target
.vscode
.vscode
.DS_Store
4 changes: 4 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
newline_style="Unix"
reorder_imports=true
# only supported in nightly
imports_granularity="Module"
Loading