Commit graph

350 commits

Author SHA1 Message Date
hinto.janai
0d0a544e68
add CumulativeBlockWeightLimit, submit_block 2024-09-11 20:29:58 -04:00
hinto.janai
6dc85c606f
bin: get_blocks_by_height, get_hashes 2024-09-11 18:42:40 -04:00
hinto.janai
4f738eef38
handler: add write handlers, impl Clone 2024-09-11 16:58:33 -04:00
hinto.janai
e15b7d42c0
pop_blocks 2024-09-10 21:00:05 -04:00
hinto.janai
2ac2b7e2a5
add BlockchainResponse::PopBlocks 2024-09-10 20:53:19 -04:00
hinto.janai
3b36c10231
unsupported requests, get_outs 2024-09-10 20:47:33 -04:00
hinto.janai
0ab7fe1c46
key_image_spent 2024-09-09 18:19:00 -04:00
hinto.janai
1aca03d319
blockchain: add KeyImageSpent request 2024-09-09 18:10:29 -04:00
hinto.janai
b6e8b3a08e
cuprated: version constants 2024-09-09 17:50:11 -04:00
hinto.janai
6dc38a401d
add todo!() returns 2024-09-09 17:37:01 -04:00
hinto.janai
f41e6aa99e
add monerod code link docs 2024-09-09 17:31:22 -04:00
hinto.janai
b93d2275f8
get_last_block_header 2024-09-09 17:13:44 -04:00
hinto.janai
136e9b70a6
split blockchain/helper functions 2024-09-08 20:48:31 -04:00
hinto.janai
06b583e97d
use helpers, get_block, add return struct todos 2024-09-08 20:33:16 -04:00
hinto.janai
f86baa2eef
add helper.rs 2024-09-08 20:32:52 -04:00
hinto.janai
f1dea834b0
get_block_headers_range 2024-09-08 18:33:30 -04:00
hinto.janai
0cd1cdef9c
Merge branch 'main' into rpc-handler-json 2024-09-08 18:08:33 -04:00
hinto.janai
ca13b40e71
temporary allows 2024-09-08 18:06:01 -04:00
hinto.janai
2d52c26bdc
get_block_header_by_height, use anyhow!() 2024-09-08 18:03:47 -04:00
hinto-janai
01625535fa
book/architecture: add resource index (#268)
Some checks failed
Architecture mdBook / build (push) Has been cancelled
Audit / audit (push) Has been cancelled
CI / fmt (push) Has been cancelled
CI / typo (push) Has been cancelled
CI / ci (macos-latest, stable, bash) (push) Has been cancelled
Deny / audit (push) Has been cancelled
Doc / build (push) Has been cancelled
CI / ci (ubuntu-latest, stable, bash) (push) Has been cancelled
CI / ci (windows-latest, stable-x86_64-pc-windows-gnu, msys2 {0}) (push) Has been cancelled
Doc / deploy (push) Has been cancelled
* resource index

* index

* cap

* cleanup
2024-09-08 18:31:58 +01:00
hinto-janai
92800810d9
cuprated: initial RPC module skeleton (#262)
* readme

* cuprated: add all workspace deps

* cuprated: add lints

* !!

* add state, fn signatures

* fixes

* error signatures

* interface: handle json-rpc concepts

* split rpc calls into 3 `Service`s

* interface: extract out to `RpcService`

* fix merge

* remove crate lints

* use `BoxFuture`

* rpc/interface: impl `thiserror::Error`

* split state from main handler struct

* cleanup

* fix imports

* replace `RpcError` with `anyhow::Error`

* interface: update error

* cuprated: update error type
2024-09-08 15:52:17 +01:00
hinto.janai
6c7b5be94e
cuprated: use From when mapping types 2024-09-06 20:59:14 -04:00
hinto.janai
d1cff90660
rpc/types: add from module 2024-09-06 20:58:50 -04:00
hinto.janai
b8656961f3
add BlockchainReadRequest::Block[ByHash] 2024-09-06 20:45:25 -04:00
hinto.janai
81d8d2baa6
Merge branch 'rpc-handler' into rpc-handler-json 2024-09-06 20:18:09 -04:00
hinto.janai
6b16fb5688
cuprated: update error type 2024-09-06 20:09:42 -04:00
hinto.janai
aac1a31bed
interface: update error 2024-09-06 20:09:21 -04:00
hinto.janai
7e4015a381
replace RpcError with anyhow::Error 2024-09-06 18:06:50 -04:00
hinto.janai
98eb2f642b
get_block_count, on_get_block_hash, get_block_header_by_hash todo 2024-09-06 17:58:40 -04:00
hinto.janai
ae074d6f57
rpc handler constants 2024-09-06 17:58:20 -04:00
hinto.janai
51fd017c5b
blockchain: add BlockchainReadRequest::BlockExtendedHeaderByHash 2024-09-06 17:16:13 -04:00
hinto.janai
1b94435952
fix imports 2024-09-06 16:54:28 -04:00
hinto.janai
9f8f2c7edf
cleanup 2024-09-05 18:23:39 -04:00
hinto.janai
d443cfb9b7
split state from main handler struct 2024-09-05 18:11:27 -04:00
hinto.janai
d268c50246
rpc/interface: impl thiserror::Error 2024-09-05 18:06:22 -04:00
hinto.janai
7406afb910
use BoxFuture 2024-09-05 18:06:07 -04:00
hinto.janai
29afe237d5
remove crate lints 2024-09-05 17:38:57 -04:00
hinto.janai
4118f488bf
fix merge 2024-09-05 17:19:57 -04:00
hinto.janai
3965349f71
Merge branch 'main' into rpc-handler 2024-09-05 17:11:03 -04:00
hinto-janai
4653ac5884
rpc/interface: separate RpcHandler into 3 tower::Services (#266)
Some checks failed
CI / fmt (push) Has been cancelled
CI / typo (push) Has been cancelled
CI / ci (macos-latest, stable, bash) (push) Has been cancelled
CI / ci (ubuntu-latest, stable, bash) (push) Has been cancelled
CI / ci (windows-latest, stable-x86_64-pc-windows-gnu, msys2 {0}) (push) Has been cancelled
Doc / build (push) Has been cancelled
Doc / deploy (push) Has been cancelled
* apply diff

* cleanup

* fix test
2024-09-05 16:53:16 +01:00
hinto.janai
7487aa4779
interface: extract out to RpcService 2024-09-02 20:34:02 -04:00
hinto.janai
68ba5f4781
split rpc calls into 3 Services 2024-09-02 20:15:12 -04:00
hinto.janai
c57020d805
interface: handle json-rpc concepts 2024-09-02 19:58:38 -04:00
hinto.janai
5f37771729
error signatures 2024-09-02 18:08:52 -04:00
hinto.janai
57677a5e90
Merge branch 'main' into rpc-handler 2024-09-02 17:48:04 -04:00
hinto.janai
f89e29eeba
fixes 2024-09-02 17:47:23 -04:00
hinto-janai
0941f68efc
helper: fix clippy (#265)
Some checks failed
Audit / audit (push) Has been cancelled
CI / fmt (push) Has been cancelled
CI / typo (push) Has been cancelled
Deny / audit (push) Has been cancelled
Doc / build (push) Has been cancelled
CI / ci (macos-latest, stable, bash) (push) Has been cancelled
CI / ci (ubuntu-latest, stable, bash) (push) Has been cancelled
CI / ci (windows-latest, stable-x86_64-pc-windows-gnu, msys2 {0}) (push) Has been cancelled
Doc / deploy (push) Has been cancelled
* helper: fix lints

* fix tests
2024-09-02 22:46:11 +01:00
hinto.janai
abfc3c503c
add state, fn signatures 2024-09-02 17:37:18 -04:00
hinto.janai
29587d9bb4
Merge branch 'main' into rpc-handler 2024-09-02 16:50:49 -04:00
hinto-janai
eead49beb0
lints: opt in manual lint crates (#263)
* cargo.toml: transfer existing lints

* rpc/interface: lints

* rpc/json-rpc: lints

* rpc/types: lints

* storage/blockchain: lints

* rpc/types: fix lints

* cargo.toml: fix lint group priority

* storage/blockchain: fix lints

* fix misc lints

* storage/database: fixes

* storage/txpool: opt in lints + fixes

* types: opt in + fixes

* helper: opt in + fixes

* types: remove borsh

* rpc/interface: fix test

* test fixes

* database: fix lints

* fix lint

* tabs -> spaces

* blockchain: `config/` -> `config.rs`
2024-09-02 18:12:54 +01:00