Skip to content

Commit 17d6c96

Browse files
authored
Merge pull request #87 from sephynox/dev
Update to v0.2.0-beta.1
2 parents 4fb9829 + 25a07e1 commit 17d6c96

File tree

187 files changed

+11571
-7877
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

187 files changed

+11571
-7877
lines changed

.cargo-husky/hooks/pre-commit

100755100644
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ set -e
33

44
echo 'Running all pre-commit checks:'
55
cargo fmt
6-
cargo test --no-default-features --features core,models,utils
7-
cargo test --all-features
6+
cargo test --release
7+
cargo test --release --no-default-features --features embassy-rt,core,wallet,models,helpers,websocket,json-rpc
88
cargo clippy --fix --allow-staged
99
cargo doc --no-deps
10-
#cargo audit
10+
cargo audit

.devcontainer/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM mcr.microsoft.com/devcontainers/rust:1.0-1-bullseye
2+
3+
# [Optional] Uncomment this section to install additional OS packages.
4+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
5+
# && apt-get -y install --no-install-recommends <your-package-list-here>

.devcontainer/devcontainer.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/rust
3+
{
4+
"name": "xrpl-rust",
5+
"dockerComposeFile": "docker-compose.yml",
6+
"service": "app",
7+
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
8+
// Use 'mounts' to make the cargo cache persistent in a Docker Volume.
9+
// "mounts": [
10+
// {
11+
// "source": "devcontainer-cargo-cache-${devcontainerId}",
12+
// "target": "/usr/local/cargo",
13+
// "type": "volume"
14+
// }
15+
// ]
16+
// Use 'postCreateCommand' to run commands after the container is created.
17+
"postStartCommand": "rustup --version && rustup component add rustfmt && rustup component add clippy",
18+
// Configure tool-specific properties.
19+
"customizations": {
20+
"vscode": {
21+
"extensions": [
22+
"Gydunhn.vsc-essentials",
23+
"GitHub.copilot",
24+
"swellaby.rust-pack",
25+
"panicbit.cargo",
26+
"vadimcn.vscode-lldb",
27+
"tamasfe.even-better-toml",
28+
"Swellaby.vscode-rust-test-adapter"
29+
],
30+
"settings": {
31+
"files.autoSave": "onFocusChange",
32+
"files.eol": "\n",
33+
"[rust]": {
34+
"editor.defaultFormatter": "rust-lang.rust-analyzer",
35+
"editor.formatOnSave": true
36+
}
37+
}
38+
}
39+
}
40+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
41+
// "remoteUser": "root"
42+
}

.devcontainer/docker-compose.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: "3"
2+
3+
services:
4+
app:
5+
build:
6+
context: .
7+
dockerfile: Dockerfile
8+
command: sleep infinity
9+
volumes:
10+
- ../..:/workspaces:cached

.github/workflows/audit_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
on:
22
push:
33
branches:
4-
- develop
4+
- dev
55
pull_request:
66
branches:
77
- main

.github/workflows/quality_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
on:
22
push:
33
branches:
4-
- develop
4+
- dev
55
pull_request:
66
branches:
77
- main

.github/workflows/unit_test.yml

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
on:
22
push:
33
branches:
4-
- develop
4+
- dev
55
pull_request:
66
branches:
77
- main
8+
- dev
89

910
name: Unit
1011

@@ -18,18 +19,57 @@ jobs:
1819
with:
1920
toolchain: stable
2021
- uses: actions-rs/cargo@v1
22+
name: Build with default features
2123
with:
2224
command: build
23-
args: --release --all-features
25+
args: --release
2426
- uses: actions-rs/cargo@v1
27+
name: Build with no default features
2528
with:
2629
command: build
27-
args: --release --no-default-features --features core,models
30+
args: --release --no-default-features
2831
- uses: actions-rs/cargo@v1
32+
name: Build for no_std
33+
with:
34+
command: build
35+
args: --release --no-default-features --features embassy-rt,core,wallet,models,helpers,websocket,json-rpc
36+
- uses: actions-rs/cargo@v1
37+
name: Build only core
38+
with:
39+
command: build
40+
args: --release --no-default-features --features core
41+
- uses: actions-rs/cargo@v1
42+
name: Build only wallet
43+
with:
44+
command: build
45+
args: --release --no-default-features --features wallet
46+
- uses: actions-rs/cargo@v1
47+
name: Build only models
48+
with:
49+
command: build
50+
args: --release --no-default-features --features models
51+
- uses: actions-rs/cargo@v1
52+
name: Build only helpers
53+
with:
54+
command: build
55+
args: --release --no-default-features --features websocket,json-rpc,helpers,tokio-rt
56+
- uses: actions-rs/cargo@v1
57+
name: Build only websocket
58+
with:
59+
command: build
60+
args: --release --no-default-features --features websocket
61+
- uses: actions-rs/cargo@v1
62+
name: Build only core
63+
with:
64+
command: build
65+
args: --release --no-default-features --features json-rpc
66+
- uses: actions-rs/cargo@v1
67+
name: Test with default features
2968
with:
3069
command: test
31-
args: --all-features
70+
args: --release
3271
- uses: actions-rs/cargo@v1
72+
name: Test for no_std
3373
with:
3474
command: test
35-
args: --no-default-features --features core,models
75+
args: --release --no-default-features --features embassy-rt,core,wallet,models,helpers,websocket,json-rpc

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@ Cargo.lock
1818

1919
# Additional
2020
src/main.rs
21+
22+
**/.DS_Store
23+
24+
rustc-ice*

CHANGELOG.md

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,44 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [[Incomplete]]
9-
- JSONRPC
10-
- Websockets
9+
1110
- Models
1211
- Integration Tests
1312
- Performance Benchmarks
1413

1514
## [[Unreleased]]
1615

16+
## [[v0.2.0-beta.1]]
17+
18+
- Examples
19+
- Wallet from seed
20+
- New wallet generation
21+
- Client requests
22+
- make `new` methods of models public
23+
- add `AsyncWebSocketClient` and `WebSocketClient`
24+
- add `AsyncJsonRpcClient` and `JsonRpcClient`
25+
- update dependencies
26+
- add devcontainer
27+
- add transaction helpers and signing
28+
- add account helpers
29+
- add ledger helpers
30+
- add wallet helpers
31+
32+
---
33+
1734
## [[v0.2.0-beta]]
35+
1836
### Added
37+
1938
- Request models
2039
- Transaction models
2140
- Ledger models
2241
- Utilize `anyhow` and `thiserror` for models
2342
- Utilities regarding `serde` crate
2443
- Utilities regarding `anyhow` crate
44+
2545
### Changed
46+
2647
- Use `serde_with` to reduce repetitive serialization skip attribute tags
2748
- Use `strum_macros::Display` instead of manual `core::fmt::Display`
2849
- Use `strum_macros::Display` for `CryptoAlgorithm` enum
@@ -33,13 +54,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3354
- crypto-bigint
3455
- serde_with
3556
- criterion
57+
3658
### Fixed
59+
3760
- Broken documentation link
3861
- Flatten hex exceptions missed from previous pass
3962

4063
---
4164

4265
## [v0.1.1] - 2021-10-28
66+
4367
Initial core release.
44-
### Added
68+
69+
### Added
70+
4571
- All Core functionality working with unit tests

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
* @sephynox
2+
* @LimpidCrypto

0 commit comments

Comments
 (0)