diff --git a/pallas-alonzo/Cargo.toml b/pallas-alonzo/Cargo.toml index 23bc07e..8800069 100644 --- a/pallas-alonzo/Cargo.toml +++ b/pallas-alonzo/Cargo.toml @@ -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 " +] [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" diff --git a/pallas-alonzo/README.md b/pallas-alonzo/README.md new file mode 100644 index 0000000..91b2bf2 --- /dev/null +++ b/pallas-alonzo/README.md @@ -0,0 +1,2 @@ +# Pallas Alonzo + diff --git a/pallas-alonzo/src/lib.rs b/pallas-alonzo/src/lib.rs index 2b7e987..5917340 100644 --- a/pallas-alonzo/src/lib.rs +++ b/pallas-alonzo/src/lib.rs @@ -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); - } } diff --git a/pallas-blockfetch/Cargo.toml b/pallas-blockfetch/Cargo.toml index 850d3f8..c719918 100644 --- a/pallas-blockfetch/Cargo.toml +++ b/pallas-blockfetch/Cargo.toml @@ -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 " ] -# 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" diff --git a/pallas-blockfetch/README.md b/pallas-blockfetch/README.md new file mode 100644 index 0000000..9fe626b --- /dev/null +++ b/pallas-blockfetch/README.md @@ -0,0 +1,2 @@ +# Pallas BlockFetch + diff --git a/pallas-chainsync/Cargo.toml b/pallas-chainsync/Cargo.toml index 5020704..bb6e7ae 100644 --- a/pallas-chainsync/Cargo.toml +++ b/pallas-chainsync/Cargo.toml @@ -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 " ] -# 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/" } diff --git a/pallas-chainsync/README.md b/pallas-chainsync/README.md new file mode 100644 index 0000000..644879f --- /dev/null +++ b/pallas-chainsync/README.md @@ -0,0 +1,2 @@ +# Pallas ChainSync + diff --git a/pallas-handshake/Cargo.toml b/pallas-handshake/Cargo.toml index 3b0984b..a3dcc44 100644 --- a/pallas-handshake/Cargo.toml +++ b/pallas-handshake/Cargo.toml @@ -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 " ] -# 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" diff --git a/pallas-handshake/README.md b/pallas-handshake/README.md new file mode 100644 index 0000000..a832201 --- /dev/null +++ b/pallas-handshake/README.md @@ -0,0 +1,2 @@ +# Pallas Handshake + diff --git a/pallas-localstate/Cargo.toml b/pallas-localstate/Cargo.toml index 50f871f..e7f362d 100644 --- a/pallas-localstate/Cargo.toml +++ b/pallas-localstate/Cargo.toml @@ -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 " ] -# 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" diff --git a/pallas-localstate/README.md b/pallas-localstate/README.md new file mode 100644 index 0000000..578e656 --- /dev/null +++ b/pallas-localstate/README.md @@ -0,0 +1,2 @@ +# Pallas LocalState + diff --git a/pallas-machines/Cargo.toml b/pallas-machines/Cargo.toml index cbcde1a..da4d4e0 100644 --- a/pallas-machines/Cargo.toml +++ b/pallas-machines/Cargo.toml @@ -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 " ] -# 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" \ No newline at end of file +hex = "0.4.3" diff --git a/pallas-machines/README.md b/pallas-machines/README.md new file mode 100644 index 0000000..b003408 --- /dev/null +++ b/pallas-machines/README.md @@ -0,0 +1,2 @@ +# Pallas Machines + diff --git a/pallas-multiplexer/Cargo.toml b/pallas-multiplexer/Cargo.toml index 31a6738..ddfd34e 100644 --- a/pallas-multiplexer/Cargo.toml +++ b/pallas-multiplexer/Cargo.toml @@ -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 " ] -# 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" diff --git a/pallas-txsubmission/Cargo.toml b/pallas-txsubmission/Cargo.toml index ecbefae..ebed938 100644 --- a/pallas-txsubmission/Cargo.toml +++ b/pallas-txsubmission/Cargo.toml @@ -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 " ] -# 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" diff --git a/pallas-txsubmission/README.md b/pallas-txsubmission/README.md new file mode 100644 index 0000000..c1bfa03 --- /dev/null +++ b/pallas-txsubmission/README.md @@ -0,0 +1,2 @@ +# Pallas TxSubmission + diff --git a/pallas/Cargo.toml b/pallas/Cargo.toml index 3c4bb09..9948729 100644 --- a/pallas/Cargo.toml +++ b/pallas/Cargo.toml @@ -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 " ] -# 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/" } \ No newline at end of file +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/" } \ No newline at end of file