diff --git a/src/address_book/mod.rs b/src/address_book/mod.rs index 317420f3..c5712980 100644 --- a/src/address_book/mod.rs +++ b/src/address_book/mod.rs @@ -18,10 +18,13 @@ * ‍ */ -mod node_create_transaction; -mod node_delete_transaction; -mod node_update_transaction; +pub mod node_create_transaction; +pub mod node_delete_transaction; +pub mod node_update_transaction; -pub use node_create_transaction::NodeCreateTransactionData; -pub use node_delete_transaction::NodeDeleteTransactionData; -pub use node_update_transaction::NodeUpdateTransactionData; +pub use node_create_transaction::NodeCreateTransaction; +pub(crate) use node_create_transaction::NodeCreateTransactionData; +pub use node_delete_transaction::NodeDeleteTransaction; +pub(crate) use node_delete_transaction::NodeDeleteTransactionData; +pub use node_update_transaction::NodeUpdateTransaction; +pub(crate) use node_update_transaction::NodeUpdateTransactionData; diff --git a/src/address_book/node_create_transaction.rs b/src/address_book/node_create_transaction.rs index 9b9fe4b7..f7199702 100644 --- a/src/address_book/node_create_transaction.rs +++ b/src/address_book/node_create_transaction.rs @@ -2,7 +2,7 @@ * ‌ * Hedera Rust SDK * ​ - * Copyright (C) 2022 - 2023 Hedera Hashgraph, LLC + * Copyright (C) 2022 - 2024 Hedera Hashgraph, LLC * ​ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -54,6 +54,7 @@ use crate::{ /// to join the network, and requires governing council authorization. pub type NodeCreateTransaction = Transaction; +/// A transaction body to add a new consensus node to the network address book. #[derive(Debug, Clone, Default)] pub struct NodeCreateTransactionData { /// A Node account identifier. diff --git a/src/address_book/node_delete_transaction.rs b/src/address_book/node_delete_transaction.rs index 6f8bbdc6..79e3336b 100644 --- a/src/address_book/node_delete_transaction.rs +++ b/src/address_book/node_delete_transaction.rs @@ -2,7 +2,7 @@ * ‌ * Hedera Rust SDK * ​ - * Copyright (C) 2022 - 2023 Hedera Hashgraph, LLC + * Copyright (C) 2022 - 2024 Hedera Hashgraph, LLC * ​ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -58,6 +58,7 @@ use crate::{ /// receipt. pub type NodeDeleteTransaction = Transaction; +/// A transaction body to delete a node from the network address book. #[derive(Debug, Clone, Default)] pub struct NodeDeleteTransactionData { /// A consensus node identifier in the network state. diff --git a/src/address_book/node_update_transaction.rs b/src/address_book/node_update_transaction.rs index 47cf3af4..4306f9f6 100644 --- a/src/address_book/node_update_transaction.rs +++ b/src/address_book/node_update_transaction.rs @@ -2,7 +2,7 @@ * ‌ * Hedera Rust SDK * ​ - * Copyright (C) 2022 - 2023 Hedera Hashgraph, LLC + * Copyright (C) 2022 - 2024 Hedera Hashgraph, LLC * ​ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -65,6 +65,7 @@ use crate::{ /// transaction receipt. pub type NodeUpdateTransaction = Transaction; +/// Transaction body to modify address book node attributes. #[derive(Debug, Clone, Default)] pub struct NodeUpdateTransactionData { /// A consensus node identifier in the network state. diff --git a/src/lib.rs b/src/lib.rs index 12e79f38..853b03b4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -183,6 +183,11 @@ pub use account::{ AllProxyStakers, ProxyStaker, }; +pub use address_book::{ + NodeCreateTransaction, + NodeDeleteTransaction, + NodeUpdateTransaction, +}; pub use client::Client; pub(crate) use client::Operator; pub use contract::{ @@ -293,6 +298,7 @@ pub use schedule::{ ScheduleSignTransaction, }; pub use semantic_version::SemanticVersion; +pub use service_endpoint::ServiceEndpoint; pub use staking_info::StakingInfo; pub use system::{ FreezeTransaction, diff --git a/src/service_endpoint.rs b/src/service_endpoint.rs index bd472d8e..1ffda477 100644 --- a/src/service_endpoint.rs +++ b/src/service_endpoint.rs @@ -2,7 +2,7 @@ * ‌ * Hedera Rust SDK * ​ - * Copyright (C) 2022 - 2023 Hedera Hashgraph, LLC + * Copyright (C) 2022 - 2024 Hedera Hashgraph, LLC * ​ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/tests/e2e/address_book/mod.rs b/tests/e2e/address_book/mod.rs new file mode 100644 index 00000000..ecac30fe --- /dev/null +++ b/tests/e2e/address_book/mod.rs @@ -0,0 +1 @@ +mod node_create; diff --git a/tests/e2e/main.rs b/tests/e2e/main.rs index 8f1b30ed..28ba4639 100644 --- a/tests/e2e/main.rs +++ b/tests/e2e/main.rs @@ -1,4 +1,5 @@ mod account; +mod address_book; mod common; mod contract; mod ethereum_transaction;