Skip to content

Commit

Permalink
Merge pull request #87 from sephynox/dev
Browse files Browse the repository at this point in the history
Update to v0.2.0-beta.1
  • Loading branch information
LimpidCrypto authored Oct 6, 2024
2 parents 4fb9829 + 25a07e1 commit 17d6c96
Show file tree
Hide file tree
Showing 187 changed files with 11,571 additions and 7,877 deletions.
6 changes: 3 additions & 3 deletions .cargo-husky/hooks/pre-commit
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ set -e

echo 'Running all pre-commit checks:'
cargo fmt
cargo test --no-default-features --features core,models,utils
cargo test --all-features
cargo test --release
cargo test --release --no-default-features --features embassy-rt,core,wallet,models,helpers,websocket,json-rpc
cargo clippy --fix --allow-staged
cargo doc --no-deps
#cargo audit
cargo audit
5 changes: 5 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM mcr.microsoft.com/devcontainers/rust:1.0-1-bullseye

# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>
42 changes: 42 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/rust
{
"name": "xrpl-rust",
"dockerComposeFile": "docker-compose.yml",
"service": "app",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
// Use 'mounts' to make the cargo cache persistent in a Docker Volume.
// "mounts": [
// {
// "source": "devcontainer-cargo-cache-${devcontainerId}",
// "target": "/usr/local/cargo",
// "type": "volume"
// }
// ]
// Use 'postCreateCommand' to run commands after the container is created.
"postStartCommand": "rustup --version && rustup component add rustfmt && rustup component add clippy",
// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"Gydunhn.vsc-essentials",
"GitHub.copilot",
"swellaby.rust-pack",
"panicbit.cargo",
"vadimcn.vscode-lldb",
"tamasfe.even-better-toml",
"Swellaby.vscode-rust-test-adapter"
],
"settings": {
"files.autoSave": "onFocusChange",
"files.eol": "\n",
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer",
"editor.formatOnSave": true
}
}
}
}
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
10 changes: 10 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: "3"

services:
app:
build:
context: .
dockerfile: Dockerfile
command: sleep infinity
volumes:
- ../..:/workspaces:cached
2 changes: 1 addition & 1 deletion .github/workflows/audit_test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
branches:
- develop
- dev
pull_request:
branches:
- main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/quality_test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
branches:
- develop
- dev
pull_request:
branches:
- main
Expand Down
50 changes: 45 additions & 5 deletions .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
on:
push:
branches:
- develop
- dev
pull_request:
branches:
- main
- dev

name: Unit

Expand All @@ -18,18 +19,57 @@ jobs:
with:
toolchain: stable
- uses: actions-rs/cargo@v1
name: Build with default features
with:
command: build
args: --release --all-features
args: --release
- uses: actions-rs/cargo@v1
name: Build with no default features
with:
command: build
args: --release --no-default-features --features core,models
args: --release --no-default-features
- uses: actions-rs/cargo@v1
name: Build for no_std
with:
command: build
args: --release --no-default-features --features embassy-rt,core,wallet,models,helpers,websocket,json-rpc
- uses: actions-rs/cargo@v1
name: Build only core
with:
command: build
args: --release --no-default-features --features core
- uses: actions-rs/cargo@v1
name: Build only wallet
with:
command: build
args: --release --no-default-features --features wallet
- uses: actions-rs/cargo@v1
name: Build only models
with:
command: build
args: --release --no-default-features --features models
- uses: actions-rs/cargo@v1
name: Build only helpers
with:
command: build
args: --release --no-default-features --features websocket,json-rpc,helpers,tokio-rt
- uses: actions-rs/cargo@v1
name: Build only websocket
with:
command: build
args: --release --no-default-features --features websocket
- uses: actions-rs/cargo@v1
name: Build only core
with:
command: build
args: --release --no-default-features --features json-rpc
- uses: actions-rs/cargo@v1
name: Test with default features
with:
command: test
args: --all-features
args: --release
- uses: actions-rs/cargo@v1
name: Test for no_std
with:
command: test
args: --no-default-features --features core,models
args: --release --no-default-features --features embassy-rt,core,wallet,models,helpers,websocket,json-rpc
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ Cargo.lock

# Additional
src/main.rs

**/.DS_Store

rustc-ice*
32 changes: 29 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,44 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [[Incomplete]]
- JSONRPC
- Websockets

- Models
- Integration Tests
- Performance Benchmarks

## [[Unreleased]]

## [[v0.2.0-beta.1]]

- Examples
- Wallet from seed
- New wallet generation
- Client requests
- make `new` methods of models public
- add `AsyncWebSocketClient` and `WebSocketClient`
- add `AsyncJsonRpcClient` and `JsonRpcClient`
- update dependencies
- add devcontainer
- add transaction helpers and signing
- add account helpers
- add ledger helpers
- add wallet helpers

---

## [[v0.2.0-beta]]

### Added

- Request models
- Transaction models
- Ledger models
- Utilize `anyhow` and `thiserror` for models
- Utilities regarding `serde` crate
- Utilities regarding `anyhow` crate

### Changed

- Use `serde_with` to reduce repetitive serialization skip attribute tags
- Use `strum_macros::Display` instead of manual `core::fmt::Display`
- Use `strum_macros::Display` for `CryptoAlgorithm` enum
Expand All @@ -33,13 +54,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- crypto-bigint
- serde_with
- criterion

### Fixed

- Broken documentation link
- Flatten hex exceptions missed from previous pass

---

## [v0.1.1] - 2021-10-28

Initial core release.
### Added

### Added

- All Core functionality working with unit tests
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* @sephynox
* @LimpidCrypto
Loading

0 comments on commit 17d6c96

Please sign in to comment.