Improve cargo metadata

This commit is contained in:
Santiago Carmuega 2021-12-02 20:59:16 -03:00
parent bb6d19efac
commit 1e3fed9856
17 changed files with 86 additions and 68 deletions

View file

@ -1,13 +1,19 @@
[package]
name = "pallas-alonzo"
description = "Ledger primitives and cbor codec for the Alonzo era"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
repository = "https://github.com/txpipe/pallas"
homepage = "https://github.com/txpipe/pallas"
documentation = "https://docs.rs/pallas-alonzo/0.1.0/pallas_alonzo/"
license = "Apache-2.0"
readme = "README.md"
authors = [
"Santiago Carmuega <santiago@carmuega.me>"
]
[dependencies]
minicbor = "0.11.5"
minicbor = { version = "0.11.5", features = ["std"] }
minicbor-derive = "0.7.2"
hex = "0.4.3"
minicbor-io = "0.6.0"
log = "0.4.14"

2
pallas-alonzo/README.md Normal file
View file

@ -0,0 +1,2 @@
# Pallas Alonzo

View file

@ -801,8 +801,6 @@ impl TryFrom<&[u8]> for Header {
mod tests {
use crate::{Block, Header};
const TEST_HEADER: &str = "828F1A006215E21A029D10A85820FF8D558A3D5A0E058BEB3D94D26A567F75CD7D09FF5485AA0D0EBC38B61378D458207A353CDFA0A5B5471BF05156097A4304DE6C9379E2937ACA6A00F954A2DC55CC582012DA72FCEAA4D03F6F409AF2AD2521C305082406B5AC24CBEE77CA3973B387BE825840988C010910CF4704EFF43B40F9B03868EF463546D942B8742BB4CFA78EB3E504BEAB8559D15F1D7F441BFED8265DACFCD96EE0D6744F08C4D4BFC07EF65A363D58508A66A6753E76E26285C30E18AC08EC683DE384A0EC710C94255A3392C1A500EB4A2737DE258640ADCB3B7CF98C431D2226DC5EFB8F61C941D5EA05469463396AF349FAB2AFF61E9FED64C5FE897651018258400000E31D3B969A44D385CFF79B9B0494675DF6A219438D551AD416BA2435216E3A712D3003EA97B638FEA979FA4405413694032760657D853882E8039071653F5850DCD355FC6F70D1D209EFC9120C9237A1F47EA3840473676766DA9867DF64058C7CB561466752D01E5439CBCA72EED20E042EFA9FE3167AD1A787D9D44A1219378F8BB1C62274C9246CF4BC99F4515304190A2F5820015D41B6EC5AC1DC88155B344E45B5A8D098C334CB997D3AC82A0571DAB5064558203BF4F4A527C0D227189F919893417AD461B8529E71BBD27E4ADE1EE20E8295F20519011558404F669665A14F8608608D848E3E8E61A9C17AFB55B4905C4ED3F3AC3152F0C8C9BA41ECE8607D240C33F5F2AE26FEFCF8422710E94261EA8152FBB7DC48BC0D0706005901C0B7F86863A0AA72E1693DC817A59F35104D5F26139CFAAB4F2EB7F39CA65B7BF31A0B52BA849DA4382369872E542585F153D888FA71799596E0CCF507074362066C4ED9F18E9F7D692487BC23679F561F5053A6AE0D79B3DA2C3C1DAF6FEAA8D8599417B409ABE17407EC339FEBFDBF4956C37925EE6448F44FE6AA0E715CC27E973CF28D21F1F5A40708BA7C229D282F152B95D6C7AEB9944E914FC68AFC1491B7DD883509A9D32F8B32FD078D1C0ACDEF06B4DF2908C07CC75405AE5B7C3829B92917E4B2A284F9ACEE94F2E17958AAC21EF0AC4E0D891081BCA96E0CE6907B5BEF9092340F5D6D9F249B02FC28024F7CF7560292B140FC656AD70BF915B4739092FF52CE23721E12340416AA9A22CC53801D98FB283873936609DFAA9A7F16028A2CE69FDF40F905E18DFE3148BB7B0B912B0FACD2F73B56E2EA7288C877356F36F0CFE2C0DD45A1C0C41F461A2AF154853F309BA97D1CF3AF539DDCB457DEE6032F2CE5E44638B56A60391DFBC50C3F05D86690B5B652FB45AC7ED62B06099B54257A6E0BDB91164172D4635BF2F3ABE85015414FAC2E7CBED797DF9211531422CA3F66B24FBE71A970649CCDD77DFF498AF535E38B7365A5DF0F9C12836C";
#[test]
fn block_decode_works() {
let test_blocks = vec![
@ -822,15 +820,4 @@ mod tests {
Block::try_from(&bytes[..]).unwrap();
}
}
#[test]
fn header_decode_works() {
let bytes = hex::decode(TEST_HEADER).unwrap();
let decoded = Header::try_from(&bytes[..]).unwrap();
assert_eq!(decoded.header_body.block_number, 6428130);
assert_eq!(decoded.header_body.slot, 43847848);
assert_eq!(decoded.header_body.protocol_version_major, 6);
assert_eq!(decoded.header_body.protocol_version_minor, 0);
}
}

View file

@ -1,24 +1,25 @@
[package]
name = "pallas-blockfetch"
description = "Implementation of the Ouroboros network blockfetch mini-protocol"
version = "0.1.0"
edition = "2021"
repository = "https://github.com/txpipe/pallas"
homepage = "https://github.com/txpipe/pallas"
documentation = "https://docs.rs/pallas-blockfetch/0.1.0/pallas_blockfetch/"
license = "Apache-2.0"
readme = "README.md"
authors = [
"Santiago Carmuega <santiago@carmuega.me>"
]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
pallas-multiplexer = { path = "../pallas-multiplexer/" }
pallas-machines = { path = "../pallas-machines/" }
minicbor = { version="0.11.4", features=["half"] }
minicbor-io = "0.6.0"
pallas-multiplexer = { version = "0.1.1", path = "../pallas-multiplexer/" }
pallas-machines = { version = "0.1.0", path = "../pallas-machines/" }
minicbor = { version="0.11.4", features=["half", "std"] }
log = "0.4.14"
[dev-dependencies]
net2 = "0.2.37"
env_logger = "0.9.0"
pallas-handshake = { path = "../pallas-handshake/" }
pallas-handshake = { version = "0.1.0", path = "../pallas-handshake/" }
hex = "0.4.3"

View file

@ -0,0 +1,2 @@
# Pallas BlockFetch

View file

@ -1,25 +1,26 @@
[package]
name = "pallas-chainsync"
description = "Implementation of the Ouroboros network chainsync mini-protocol"
version = "0.1.0"
edition = "2021"
repository = "https://github.com/txpipe/pallas"
homepage = "https://github.com/txpipe/pallas"
documentation = "https://docs.rs/pallas-chainsync/0.1.0/pallas_chainsync/"
license = "Apache-2.0"
readme = "README.md"
authors = [
"Santiago Carmuega <santiago@carmuega.me>"
]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
pallas-multiplexer = { path = "../pallas-multiplexer/" }
pallas-machines = { path = "../pallas-machines/" }
minicbor = { version="0.11.4", features=["half"] }
minicbor-io = "0.6.0"
pallas-multiplexer = { version = "0.1.1", path = "../pallas-multiplexer/" }
pallas-machines = { version = "0.1.0", path = "../pallas-machines/" }
minicbor = { version="0.11.4", features=["half", "std"] }
log = "0.4.14"
hex = "0.4.3"
[dev-dependencies]
net2 = "0.2.37"
env_logger = "0.9.0"
pallas-handshake = { path = "../pallas-handshake/" }
pallas-txsubmission = { path = "../pallas-txsubmission/" }
pallas-handshake = { version = "0.1.0", path = "../pallas-handshake/" }
pallas-txsubmission = { version = "0.1.0", path = "../pallas-txsubmission/" }

View file

@ -0,0 +1,2 @@
# Pallas ChainSync

View file

@ -1,20 +1,21 @@
[package]
name = "pallas-handshake"
description = "Implementation of the Ouroboros network handshake mini-protocol"
version = "0.1.0"
edition = "2021"
repository = "https://github.com/txpipe/pallas"
homepage = "https://github.com/txpipe/pallas"
documentation = "https://docs.rs/pallas-handshake/0.1.0/pallas_handshake/"
license = "Apache-2.0"
readme = "README.md"
authors = [
"Santiago Carmuega <santiago@carmuega.me>"
]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
pallas-multiplexer = { path = "../pallas-multiplexer/" }
pallas-machines = { path = "../pallas-machines/" }
minicbor = { version="0.11.4", features=["half"] }
minicbor-io = "0.6.0"
pallas-multiplexer = { version = "0.1.1", path = "../pallas-multiplexer/" }
pallas-machines = { version = "0.1.0", path = "../pallas-machines/" }
minicbor = { version="0.11.4", features=["half", "std"] }
itertools = "0.10.1"
log = "0.4.14"

View file

@ -0,0 +1,2 @@
# Pallas Handshake

View file

@ -1,20 +1,21 @@
[package]
name = "pallas-localstate"
description = "Implementation of the Ouroboros network local state query mini-protocol"
version = "0.1.0"
edition = "2021"
repository = "https://github.com/txpipe/pallas"
homepage = "https://github.com/txpipe/pallas"
documentation = "https://docs.rs/pallas-localstate/0.1.0/pallas_localstate/"
license = "Apache-2.0"
readme = "README.md"
authors = [
"Santiago Carmuega <santiago@carmuega.me>"
]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
pallas-multiplexer = { path = "../pallas-multiplexer/" }
pallas-machines = { path = "../pallas-machines/" }
minicbor = { version="0.11.4", features=["half"] }
minicbor-io = "0.6.0"
pallas-multiplexer = { version = "0.1.1", path = "../pallas-multiplexer/" }
pallas-machines = { version = "0.1.0", path = "../pallas-machines/" }
minicbor = { version="0.11.4", features=["half", "std"] }
log = "0.4.14"
hex = "0.4.3"

View file

@ -0,0 +1,2 @@
# Pallas LocalState

View file

@ -1,17 +1,19 @@
[package]
name = "pallas-machines"
description = "A framework for implementing state machines for Ouroboros network mini-protocols"
version = "0.1.0"
edition = "2021"
repository = "https://github.com/txpipe/pallas"
homepage = "https://github.com/txpipe/pallas"
documentation = "https://docs.rs/pallas-machines/0.1.0/pallas_machines/"
license = "Apache-2.0"
readme = "README.md"
authors = [
"Santiago Carmuega <santiago@carmuega.me>"
]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
pallas-multiplexer = { path = "../pallas-multiplexer/" }
minicbor = { version="0.11.4", features=["half"] }
pallas-multiplexer = { version = "0.1.1", path = "../pallas-multiplexer/" }
minicbor = { version="0.11.4", features=["half", "std"] }
log = "0.4.14"
hex = "0.4.3"
hex = "0.4.3"

View file

@ -0,0 +1,2 @@
# Pallas Machines

View file

@ -1,15 +1,17 @@
[package]
name = "pallas-multiplexer"
version = "0.1.0"
description = "Multithreaded Ouroboros multiplexer implementation using mpsc channels"
version = "0.1.1"
edition = "2021"
repository = "https://github.com/txpipe/pallas"
homepage = "https://github.com/txpipe/pallas"
documentation = "https://docs.rs/pallas-multiplexer/0.1.0/pallas_multiplexer/"
license = "Apache-2.0"
readme = "README.md"
authors = [
"Santiago Carmuega <santiago@carmuega.me>"
]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
log = "0.4.14"
byteorder = "1.4.3"

View file

@ -1,20 +1,21 @@
[package]
name = "pallas-txsubmission"
description = "Implementation of the Ouroboros network txsubmission mini-protocol"
version = "0.1.0"
edition = "2021"
repository = "https://github.com/txpipe/pallas"
homepage = "https://github.com/txpipe/pallas"
documentation = "https://docs.rs/pallas-txsubmission/0.1.0/pallas_txsubmission/"
license = "Apache-2.0"
readme = "README.md"
authors = [
"Santiago Carmuega <santiago@carmuega.me>"
]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
pallas-multiplexer = { path = "../pallas-multiplexer/" }
pallas-machines = { path = "../pallas-machines/" }
minicbor = { version="0.11.4", features=["half"] }
minicbor-io = "0.6.0"
pallas-multiplexer = { version = "0.1.1", path = "../pallas-multiplexer/" }
pallas-machines = { version = "0.1.0", path = "../pallas-machines/" }
minicbor = { version="0.11.4", features=["half", "std"] }
log = "0.4.14"
hex = "0.4.3"
itertools = "0.10.1"

View file

@ -0,0 +1,2 @@
# Pallas TxSubmission

View file

@ -1,21 +1,23 @@
[package]
name = "pallas"
description = "Rust-native building blocks for the Cardano blockchain ecosystem."
version = "0.1.0"
edition = "2021"
repository = "https://github.com/txpipe/pallas"
homepage = "https://github.com/txpipe/pallas"
documentation = "https://docs.rs/pallas/0.1.0/pallas/"
license = "Apache-2.0"
readme = "../README.md"
authors = [
"Santiago Carmuega <santiago@carmuega.me>"
]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
pallas-multiplexer = { path = "../pallas-multiplexer/" }
pallas-machines = { path = "../pallas-machines/" }
pallas-handshake = { path = "../pallas-handshake/" }
pallas-chainsync = { path = "../pallas-chainsync/" }
pallas-blockfetch = { path = "../pallas-blockfetch/" }
pallas-localstate = { path = "../pallas-localstate/" }
pallas-txsubmission = { path = "../pallas-txsubmission/" }
pallas-alonzo = { path = "../pallas-alonzo/" }
pallas-multiplexer = { version = "0.1.1", path = "../pallas-multiplexer/" }
pallas-machines = { version = "0.1.0", path = "../pallas-machines/" }
pallas-handshake = { version = "0.1.0", path = "../pallas-handshake/" }
pallas-chainsync = { version = "0.1.0", path = "../pallas-chainsync/" }
pallas-blockfetch = { version = "0.1.0", path = "../pallas-blockfetch/" }
pallas-localstate = { version = "0.1.0", path = "../pallas-localstate/" }
pallas-txsubmission = { version = "0.1.0", path = "../pallas-txsubmission/" }
pallas-alonzo = { version = "0.1.0", path = "../pallas-alonzo/" }