Luke Parker
c45c973ca1
Remove musl-dev from runtime/Dockerfile
...
It wasn't pinned with a hash yet with a version tag. This ensures we are
deterministic to the image (specified by hash), `Cargo.lock`, and source code
alone.
Unfortunately, this was incredibly annoying to do, the exact process uncovering
a SIGSEGV in stable Rust. The extensive documentation details the solution.
Thankfully, it works now.
2025-11-27 03:37:37 -05:00
Luke Parker
6e37ac030d
Add patch for alloy-eip2124 to an empty crate
...
Removes the `crc` dependency which had a unique author associated.
2025-11-26 17:01:03 -05:00
Luke Parker
e7c759c468
Improve substrate-median tests
...
The use of a dedicated test module ensures the API doesn't hide anything which
needs to be public. There's also now explicit tests for when the median is the
popped value.
2025-11-25 23:46:12 -05:00
Luke Parker
8ec0582237
Add module to calculate medians
2025-11-25 22:39:52 -05:00
Luke Parker
8d8e8a7a77
Remove unnecessary MSRVs from patches/
2025-11-25 17:05:30 -05:00
Luke Parker
028ec3cce0
borsh 1.6.0
...
Bumps th MSRV for some of our crates, which is fine.
2025-11-25 16:58:19 -05:00
Luke Parker
c49215805f
Update Substrate
2025-11-25 00:06:54 -05:00
Luke Parker
2ffdd2a01d
Update monero-oxide, Substrate
2025-11-22 11:49:25 -05:00
Luke Parker
e1e6e67d4a
Ensure desired pruning behavior is held within the node
2025-11-18 21:46:58 -05:00
Luke Parker
6b19780c7b
Remove historical state access from Serai
...
Resolves https://github.com/serai-dex/serai/issues/694 .
2025-11-18 21:27:47 -05:00
Luke Parker
6100c3ca90
Restore patches/dalek-ff-group
...
Ensures `crypto/dalek-ff-group` is pure.
2025-11-16 19:04:57 -05:00
Luke Parker
fa0ed4b180
Add validator sets RPC functions necessary for the coordinator
2025-11-16 17:38:08 -05:00
Luke Parker
0ea16f9e01
doc_auto_cfg -> doc_cfg
2025-11-16 17:38:08 -05:00
Luke Parker
7a314baa9f
Update all of serai-coordinator to compile with the new serai-client-serai
2025-11-16 17:38:03 -05:00
Luke Parker
9891ccade8
Add From<*::Call> for Call to serai-abi
2025-11-16 16:43:06 -05:00
Luke Parker
f1f166c168
Restore publish_transaction RPC to Serai
2025-11-16 16:43:06 -05:00
Luke Parker
df4aee2d59
Update serai-client to solely be an umbrella crate of the dedicated client libraries
2025-11-16 16:43:05 -05:00
Luke Parker
302a43653f
Add helper to get TemporalSerai as of the latest finalized block
2025-11-16 16:42:36 -05:00
Luke Parker
d219b77bd0
Add bindings to the events from the coins module to serai-client-serai
2025-11-15 16:13:25 -05:00
Luke Parker
fce26eaee1
Update the block RPCs to return null when missing, not an error
...
Promotes clarity.
2025-11-15 16:12:39 -05:00
Luke Parker
3cfbd9add7
Update serai-coordinator-cosign to the new serai-client-serai
2025-11-15 16:10:58 -05:00
Luke Parker
609cf06393
Update SetDecided to include the validators
...
Necessary for light-client protocols to follow along with consensus. Arguably,
anyone handling GRANDPA's consensus could peek at this through the consensus
commit anyways, but we shouldn't so defer that.
2025-11-15 14:59:33 -05:00
Luke Parker
46b1f1b7ec
Add test for the integrity of headers
2025-11-14 12:04:21 -05:00
Luke Parker
09113201e7
Fixes to the validator sets RPC
2025-11-14 11:19:02 -05:00
Luke Parker
556d294157
Add pallet-timestamp
...
Ensures the timestamp is sent, within expected parameters, and the correctness
in relation to `pallet-babe`.
2025-11-14 09:59:32 -05:00
Luke Parker
82ca889ed3
Wrap Proposer so we can add the SeraiPreExecutionDigest (timestamps)
2025-11-14 08:02:54 -05:00
Luke Parker
cde0f753c2
Correct Serai header on genesis
...
Includes a couple misc fixes for the RPC as well.
2025-11-14 07:22:59 -05:00
Luke Parker
6ff0ef7aa6
Type the errors yielded by serai-node's RPC
2025-11-14 03:52:35 -05:00
Luke Parker
f9e3d1b142
Expand validator sets API with the rest of the events and some getters
...
We could've added a storage API, and fetched fields that way, except we want
the storage to be opaque. That meant we needed to add the RPC routes to the
node, which also simplifies other people writing RPC code and fetching these
fields. Then the node could've used the storage API, except a lot of the
storage in validator-sets is marked opaque and to only be read via functions,
so extending the runtime made the most sense.
2025-11-14 03:37:06 -05:00
Luke Parker
a793aa18ef
Make ethereum-schnorr-contract no-std and no-alloc eligible
2025-11-13 05:48:18 -05:00
Luke Parker
5662beeb8a
Patch from parity-bip39 back to bip39
...
Per https://github.com/michalkucharczyk/rust-bip39/tree/mku-2.0.1-release ,
`parity-bip39` was a fork to publish a release of `bip39` with two specific PRs
merged. Not only have those PRs been merged, yet `bip39` now accepts
`bitcoin_hashes 0.14` (https://github.com/rust-bitcoin/rust-bip39/pull/76 ),
making this a great time to reconcile (even though it does technically add a
git dependency until the new release is cut...).
2025-11-13 05:25:41 -05:00
Luke Parker
509bd58f4e
Add method to fetch a block's events to the RPC
2025-11-13 05:13:55 -05:00
Luke Parker
367a5769e8
Update deny.toml
2025-11-13 00:37:51 -05:00
Luke Parker
cb6eb6430a
Update version of substrate
2025-11-13 00:17:19 -05:00
Luke Parker
4f82e5912c
Use Alpine to build the runtime
...
Smaller, works without issue.
2025-11-12 23:02:22 -05:00
Luke Parker
ac7af40f2e
Remove rust-src as a component for WASM
...
It's unnecessary since `wasm32v1-none`.
2025-11-12 23:00:57 -05:00
Luke Parker
264bdd46ca
Update serai-runtime to compile a minimum subset of itself for non-WASM targets
...
We only really care about it as a WASM blob, given `serai-abi`, so there's no
need to compile it twice when it's an expensive blob and we don't care about it
at all.
2025-11-12 23:00:00 -05:00
Luke Parker
c52f7634de
Patch librocksdb-sys to never enable jemalloc, which conflicts with mimalloc
...
Allows us to update mimalloc and enable the newly added guard pages.
Conflict identified by @PlasmaPower.
2025-11-11 23:04:05 -05:00
Luke Parker
21eaa5793d
Error when not running the dev network if an explicit WASM runtime isn't provided
2025-11-11 23:02:20 -05:00
Luke Parker
c744a80d80
Check the finalized function doesn't claim unfinalized blocks are in fact finalized
2025-11-11 23:02:20 -05:00
Luke Parker
a34f9f6164
Build and run the message queue over Alpine
...
We prior stopped doing so for stability reasons, but this _should_ be tried
again.
2025-11-11 23:02:20 -05:00
Luke Parker
353683cfd2
revm 33
2025-11-11 23:02:16 -05:00
Luke Parker
d4f77159c4
Rust 1.91.1 due to the regression re: wasm builds
2025-11-11 09:08:30 -05:00
Luke Parker
191bf4bdea
Remove std feature from revm
...
It's unnecessary and bloats the tree decently.
2025-11-10 06:34:33 -05:00
Luke Parker
06a4824aba
Move bitcoin-serai to core-json and feature-gate the RPC functionality
2025-11-10 05:31:13 -05:00
Luke Parker
e65a37e639
Update various versions
2025-11-10 04:02:02 -05:00
Luke Parker
4653ef4a61
Use dockertest for the newly added serai-client-serai test
2025-11-07 02:08:02 -05:00
Luke Parker
ce08fad931
Add initial basic tests for serai-client-serai
2025-11-06 20:12:37 -05:00
Luke Parker
1866bb7ae3
Begin work on the new RPC for the new node
2025-11-06 03:08:43 -05:00
Luke Parker
aff2065c31
Polkadot stable2509-1
2025-11-06 00:23:35 -05:00