Commit graph

69 commits

Author SHA1 Message Date
hinto.janai
85ebc679b2
review fixes
Some checks failed
Deny / audit (push) Has been cancelled
2024-12-20 20:53:10 -05:00
hinto.janai
ecf5d66a91
rpc/interface: fix cargo hack 2024-12-20 17:37:23 -05:00
hinto.janai
b2b7e93e4c
json-rpc fixes
Some checks are pending
Deny / audit (push) Waiting to run
2024-12-19 20:41:50 -05:00
hinto.janai
d47f8ec7dc
fix doc tests 2024-12-19 18:38:08 -05:00
hinto.janai
dff77e8bed
fix get_txid for /get_outs
miner transaction was not accounted for
2024-12-19 18:11:00 -05:00
hinto.janai
cb6fdb76e4
HexVec 2024-12-19 17:22:35 -05:00
hinto.janai
21e42c1f54
module cleanup 2024-12-18 20:26:54 -05:00
hinto.janai
aca28552ab
get_output_distribution 2024-12-18 18:09:01 -05:00
hinto.janai
ce6838bd6f
restricted json-rpc error 2024-12-17 18:39:05 -05:00
hinto.janai
3763dc9693
rpc-interface: add restricted invariant comments 2024-12-17 18:23:09 -05:00
hinto.janai
541302ea07
get_blocks_by_height, shared::get_outs 2024-12-16 20:21:00 -05:00
hinto.janai
c5abf9bb98
/get_transaction_pool 2024-12-13 20:14:16 -05:00
hinto.janai
d4b30333bb
most of /send_raw_transaction
Some checks failed
Deny / audit (push) Has been cancelled
2024-12-13 16:43:39 -05:00
hinto.janai
a359eed8be
/is_key_image_spent 2024-12-11 20:52:40 -05:00
hinto.janai
c3bc9b26ec
/get_transactions 2024-12-11 19:16:34 -05:00
hinto.janai
b402c82557
json_rpc: get_block_template 2024-12-11 16:30:37 -05:00
hinto.janai
1719d7db84
return defaults, hex test
Some checks failed
Deny / audit (push) Has been cancelled
2024-12-10 20:49:39 -05:00
hinto.janai
3a799219b8
fix type defaults, use Hex 2024-12-10 20:09:33 -05:00
hinto.janai
bf5e863f18
remove ::<N>
Some checks failed
Deny / audit (push) Has been cancelled
2024-12-06 20:10:56 -05:00
hinto.janai
2de9a019c6
fix json-rpc handlers 2024-12-06 19:59:38 -05:00
hinto.janai
3c25374b03
architecture book 2024-12-06 19:30:17 -05:00
hinto.janai
f2e7af779f
move types, fix orphan impl + cyclic dependency 2024-12-06 19:19:14 -05:00
hinto.janai
5b8cacd6b3
!! 2024-12-06 18:02:05 -05:00
hinto.janai
d1c1025238
rpc: move json-rpc types away from macros
Some checks are pending
Deny / audit (push) Waiting to run
2024-12-06 11:29:55 -05:00
hinto.janai
a1903f33b0
clippy fix 2024-12-06 09:26:20 -05:00
hinto.janai
20e599fc72
type fixes, move fn to -helper 2024-12-06 09:23:45 -05:00
hinto.janai
568a276b7f
rpc-types -> types pt. 2
Some checks are pending
Deny / audit (push) Waiting to run
2024-12-05 20:45:27 -05:00
hinto.janai
2104bb0e17
cuprate_types::rpc, from module for cuprate_rpc_types 2024-12-05 16:05:22 -05:00
hinto.janai
0b50091b5d
merge diffs from https://github.com/Cuprate/cuprate/pull/272
Some checks are pending
Deny / audit (push) Waiting to run
2024-12-05 09:29:33 -05:00
hinto.janai
edaf6275da
Merge branch 'main' into json 2024-12-04 20:43:10 -05:00
hinto-janai
38541dbfda
workspace: add/fix 1.83 lints (#353)
Some checks failed
Deny / audit (push) Has been cancelled
Doc / build (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
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
* 1.83 `cargo clippy --fix`

* fix type complexity, add `DbResult`

* clippy fix

* redb fix

* Update consensus/context/src/difficulty.rs

Co-authored-by: hinto-janai <hinto.janai@protonmail.com>

---------

Co-authored-by: Boog900 <boog900@tutanota.com>
2024-11-28 19:53:59 +00:00
hinto-janai
01150ab84c
rpc/types: fix epee deserialization for GetBlocksResponse (#345)
Some checks failed
CI / fmt (push) Waiting to run
CI / typo (push) Waiting to run
CI / ci (macos-latest, stable, bash) (push) Waiting to run
CI / ci (ubuntu-latest, stable, bash) (push) Waiting to run
CI / ci (windows-latest, stable-x86_64-pc-windows-gnu, msys2 {0}) (push) Waiting to run
Doc / build (push) Waiting to run
Doc / deploy (push) Blocked by required conditions
Deny / audit (push) Waiting to run
Architecture mdBook / build (push) Has been cancelled
* header + flatten

* fix optional values

* `fn error() -> String` -> `error!() -> &'static str`

* extract out `PoolInfo`

* fix cargo hack
2024-11-27 23:04:58 +00:00
hinto.janai
ff48fb4679
doc fix 2024-11-26 19:48:28 -05:00
hinto.janai
916d593024
fixes 2024-11-26 19:37:35 -05:00
hinto.janai
1ffa86c5ae
review fixes 2024-11-26 19:23:33 -05:00
hinto.janai
d634bea297
get_output_distribution 2024-11-15 16:11:16 -05:00
hinto.janai
79b03e386a
Merge branch 'main' into json
Some checks failed
Audit / audit (push) Has been cancelled
Deny / audit (push) Has been cancelled
2024-11-01 20:18:25 -04:00
hinto-janai
372cab24d7
cuprated: internal signatures required for RPC pt. 2 (#320)
Some checks failed
CI / ci (macos-latest, stable, bash) (push) Has been cancelled
Audit / audit (push) Has been cancelled
CI / fmt (push) Has been cancelled
CI / typo (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
Deny / audit (push) Has been cancelled
Doc / build (push) Has been cancelled
Doc / deploy (push) Has been cancelled
* apply diffs

* clippy

* fix tests

* rpc: fix tests

* remove `BlockchainManagerRequest::Overview`

* cuprated/p2p: fix `ConnectionInfo`

* move `CalculatePow`

* remove `AddAuxPow`

* move `Spans` and `NextNeededPruningSeed`

* factor types into `cuprate-types`

* scope cargo features

* fix/doc type serde

* Update binaries/cuprated/src/rpc/request/address_book.rs

Co-authored-by: Boog900 <boog900@tutanota.com>

* Update binaries/cuprated/src/rpc/request/blockchain_context.rs

Co-authored-by: Boog900 <boog900@tutanota.com>

* Update binaries/cuprated/src/rpc/request/blockchain_manager.rs

Co-authored-by: Boog900 <boog900@tutanota.com>

* fmt

* txpool: collapse `TxEntry`

* `ConnectionId`

* fix import

* fix bin

---------

Co-authored-by: Boog900 <boog900@tutanota.com>
2024-11-01 22:25:55 +00:00
44981f2b24
CI: add cargo hack (#170)
* add workflow

* fix errors

* fix workflow

* install dependencies

* fix more errors

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

Co-authored-by: hinto-janai <hinto.janai@protonmail.com>

* fix hack + enable it for cuprate-database

* move hack to main CI

* fix docs

* fix ci formatting

* fix txpool tests

* fix CONTRIBUTING.md formatting

* service -> tower::Service

* review fixes

* review fixes

* fix CI

---------

Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
2024-11-01 20:22:14 +00:00
SyntheticBird
63216aecae
workspace: Defines cuprate members as workspace dependencies (#326)
Some checks failed
Deny / 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
Audit / audit (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
Defines cuprate members as workspace dependencies

- Defines cuprate members as workspace dependencies
- Changed all `path` import into `workspace = true`

Co-authored-by: Boog900 <boog900@tutanota.com>
2024-10-24 23:12:30 +01:00
hinto.janai
98dfaa4870
docs, ConnectionInfo, AddressType 2024-10-17 17:13:37 -04:00
hinto.janai
2daf2555bb
response_base: fn -> const 2024-10-14 20:40:03 -04:00
hinto.janai
1e0ab56a5e
get_fee_estimate 2024-10-14 20:15:51 -04:00
hinto.janai
fd136b23f6
add BlockChainContextService, on_get_block_hash 2024-10-11 18:07:34 -04:00
hinto.janai
ac6360a4f3
Merge branch 'main' into json 2024-10-11 17:42:41 -04:00
hinto-janai
d43f12ea3f
rpc-types: fix HardForkInfoRequest (#310)
Some checks are pending
CI / fmt (push) Waiting to run
CI / typo (push) Waiting to run
CI / ci (macos-latest, stable, bash) (push) Waiting to run
CI / ci (ubuntu-latest, stable, bash) (push) Waiting to run
CI / ci (windows-latest, stable-x86_64-pc-windows-gnu, msys2 {0}) (push) Waiting to run
Doc / build (push) Waiting to run
Doc / deploy (push) Blocked by required conditions
* apply diffs

* fix tests
2024-10-11 18:51:16 +01:00
hinto.janai
02e950bf56
small fixes, hardfork changes 2024-10-10 17:37:28 -04:00
hinto-janai
80bfe0a34c
types: JSON representation types (#300)
* add `cuprate_types::json`

* docs

* `Option` -> flattened enums + prefix structs

* output enum

* docs

* todo!() epee impl

* cuprate-rpc-types: add comments

* cuprate-rpc-types: common `TxEntry` fields into prefix struct

* remove epee

* docs

* add `hex` module

* `From` serai types

* cleanup

* proofs

* tx from impls

* fix tx timelock

* add block value tests

* add ringct types

* add tx_v1, tx_rct_3 test

* clsag bulletproofs tx test

* clsag bulletproofs plus tx test

* docs

* fix hex bytes

* typo

* docs
2024-10-05 01:47:44 +01:00
hinto-janai
5eb712f4de
cargo upgrade (#296)
Some checks failed
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
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
Deny / audit (push) Has been cancelled
Doc / build (push) Has been cancelled
Doc / deploy (push) Has been cancelled
cargo upgrade

Co-authored-by: Boog900 <boog900@tutanota.com>
2024-09-22 19:34:20 +01:00
hinto-janai
6502729d8c
lints: replace allow with expect (#285)
Some checks are pending
Audit / audit (push) Waiting to run
CI / fmt (push) Waiting to run
CI / typo (push) Waiting to run
CI / ci (macos-latest, stable, bash) (push) Waiting to run
CI / ci (ubuntu-latest, stable, bash) (push) Waiting to run
CI / ci (windows-latest, stable-x86_64-pc-windows-gnu, msys2 {0}) (push) Waiting to run
Deny / audit (push) Waiting to run
Doc / build (push) Waiting to run
Doc / deploy (push) Blocked by required conditions
* cargo.toml: add `allow_attributes` lint

* fix lints

* fixes

* fmt

* fix docs

* fix docs

* fix expect msg
2024-09-18 21:31:08 +01:00