Skip to content

Commit 50ff879

Browse files
authored
Merge pull request #52 from iotaledger/feat/add-docs
feat(docs): Add docs to the Notarization codebase
2 parents d83d426 + c4dc56a commit 50ff879

24 files changed

+751
-99
lines changed

examples/01_create_locked_notarization.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async fn main() -> Result<()> {
3131
))
3232
.with_immutable_description("Critical legal document".to_string())
3333
.with_updatable_metadata("Initial document metadata".to_string())
34-
.with_delete_at(TimeLock::UnlockAt(unlock_at as u32))
34+
.with_delete_lock(TimeLock::UnlockAt(unlock_at as u32))
3535
.finish()?
3636
.build_and_execute(&notarization_client)
3737
.await?

examples/04_destroy_notarization.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ async fn main() -> Result<()> {
9494
.create_locked_notarization()
9595
.with_state(State::from_string("Delete-locked content".to_string(), None))
9696
.with_immutable_description("Delete-locked document".to_string())
97-
.with_delete_at(TimeLock::UnlockAt(unlock_at as u32))
97+
.with_delete_lock(TimeLock::UnlockAt(unlock_at as u32))
9898
.finish()?
9999
.build_and_execute(&notarization_client)
100100
.await?
@@ -127,7 +127,7 @@ async fn main() -> Result<()> {
127127
.create_locked_notarization()
128128
.with_state(State::from_string("No delete lock content".to_string(), None))
129129
.with_immutable_description("No delete lock document".to_string())
130-
.with_delete_at(TimeLock::None)
130+
.with_delete_lock(TimeLock::None)
131131
.finish()?
132132
.build_and_execute(&notarization_client)
133133
.await?

examples/07_transfer_dynamic_notarization.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ async fn main() -> Result<()> {
108108
.create_locked_notarization()
109109
.with_state(State::from_string("Locked document content".to_string(), None))
110110
.with_immutable_description("Locked document".to_string())
111-
.with_delete_at(TimeLock::None)
111+
.with_delete_lock(TimeLock::None)
112112
.finish()?
113113
.build_and_execute(&notarization_client)
114114
.await?

examples/08_access_read_only_methods.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ async fn main() -> Result<()> {
142142
))
143143
.with_immutable_description("Locked test document".to_string())
144144
.with_updatable_metadata("Locked document metadata".to_string())
145-
.with_delete_at(TimeLock::UnlockAt(unlock_at as u32))
145+
.with_delete_lock(TimeLock::UnlockAt(unlock_at as u32))
146146
.finish()?
147147
.build_and_execute(&notarization_client)
148148
.await?

examples/utils/utils.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33

44
use anyhow::Context;
55
use iota_sdk::{IOTA_LOCAL_NETWORK_URL, IotaClientBuilder};
6-
use notarization::client::full_client::NotarizationClient;
7-
use notarization::client::read_only::NotarizationClientReadOnly;
6+
use notarization::client::{NotarizationClient, NotarizationClientReadOnly};
87
use product_common::test_utils::{InMemSigner, request_funds};
98

109
pub async fn get_read_only_client() -> anyhow::Result<NotarizationClientReadOnly> {

notarization-move/Move.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ flavor = "iota"
2929
[env]
3030

3131
[env.localnet]
32-
chain-id = "002d6fb7"
33-
original-published-id = "0x760def1fd86d216536bb3f8809baed9e075a73c428aeb776e4d47ad88e9fc6b4"
34-
latest-published-id = "0x760def1fd86d216536bb3f8809baed9e075a73c428aeb776e4d47ad88e9fc6b4"
32+
chain-id = "2e3bf941"
33+
original-published-id = "0x6846c50db5a90464e5768e945990098c98be5ee41a296981a8c440fdf9512aac"
34+
latest-published-id = "0x6846c50db5a90464e5768e945990098c98be5ee41a296981a8c440fdf9512aac"
3535
published-version = "1"
3636

3737
[env.devnet]

0 commit comments

Comments
 (0)