Skip to content

Commit

Permalink
Rpc (kaspanet#80)
Browse files Browse the repository at this point in the history
* Add Borsh serialize to Hash and SubnetworkId

* Add async-std dependency, channel and triggers

* Add borsh serialize to Uint192

* Initial commit of rpc-core lib

* Add rpc-core RpcApi service

* Initial commit of rpc-grpc lib

* Apply clippy advice & change fmt newline_style to "auto"

* Add protoc install in github workflow

* Change protoc install order in github workflow

* Replicate protoc install througout github workflow

* Fix typo

* Rename workers, change start guarding impl, add comments, fix typos

* Fix typo

* Apply clippy advices

* Remove unnecessary code

* Renames: ListenerUtxoNotificationFilterSetting & InnerFilter::matches

* Use AHashSet instead of Map for RpcUtxoAddressSet

* Small changes requested by review

* Other small changes triggered by the review

* Use trace! instead of println!

* Address the issues raised by the review

* Remove borsh as a workspace dependency

* Adapt some comments

* Revert "Remove borsh as a workspace dependency"

This reverts commit a065cb0.

* Some minor changes requested by the review
  • Loading branch information
tiram88 authored Nov 24, 2022
1 parent ec88d7e commit 411bd16
Show file tree
Hide file tree
Showing 76 changed files with 7,164 additions and 58 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install protoc
run: sudo apt install -y protobuf-compiler

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
Expand Down Expand Up @@ -50,6 +53,9 @@ jobs:
if: runner.os == 'Windows'
run: git config --global core.autocrlf false

- name: Install protoc
run: sudo apt install -y protobuf-compiler

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
Expand Down Expand Up @@ -96,6 +102,9 @@ jobs:
# if: runner.os == 'Windows'
# run: git config --global core.autocrlf false

# - name: Install protoc
# run: sudo apt install -y protobuf-compiler

# - name: Install stable toolchain
# uses: actions-rs/toolchain@v1
# with:
Expand Down Expand Up @@ -133,6 +142,9 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install protoc
run: sudo apt install -y protobuf-compiler

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ max_width = 135
use_field_init_shorthand = true
use_try_shorthand = true
use_small_heuristics = "Max"
newline_style = "unix"
newline_style = "auto"
edition = "2021"
Loading

0 comments on commit 411bd16

Please sign in to comment.