Skip to content

Commit a6cadda

Browse files
authored
Feat: Audit Trail uses RoleMap and Capability from product-core (#184)
Audit Trail `RoleMap` & `Capability` integration and the Notarization integration for `TimeLock` has been migrated to use `TfComponents` as the following move modules have been moved from the Notarization repository to the new `TfComponents` package in `product_core` : * audit_trail::role_map * audit_trail::capability * notarization::timelock More details can be found in the product-core PR: iotaledger/product-core#89 The Rust and WASM bindings for `TimeLock` are still located in the `notarization` repository. These will be moved to `product-core` during future AT development. Additionally, the Move type `TimeLock` which is now used from `product-core` package `TsComponents` offers new additionally variants `UnlockAtMs` and `Infinite`. The Rust and WASM bindings have been extended accordingly.
1 parent 5a63bb1 commit a6cadda

23 files changed

+590
-1727
lines changed

audit-trail-move/Move.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name = "audit_trail"
33
edition = "2024.beta"
44

55
[dependencies]
6+
TfComponents = { git = "https://github.com/iotaledger/product-core.git", subdir = "components_move", rev = "feat/role-map" }
67

78
[addresses]
89
audit_trail = "0x0"

audit-trail-move/sources/audit_trail.move

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@
88
module audit_trail::main;
99

1010
use audit_trail::{
11-
capability::Capability,
1211
locking::{Self, LockingConfig, LockingWindow, set_delete_record_lock},
1312
permission::{Self, Permission},
1413
record::{Self, Record},
1514
record_correction,
16-
role_map::{Self, RoleMap}
1715
};
1816
use iota::{clock::{Self, Clock}, event, linked_table::{Self, LinkedTable}};
1917
use std::string::String;
18+
use tf_components::{capability::Capability, role_map::{Self, RoleMap}};
2019

2120
// ===== Errors =====
2221
#[error]

audit-trail-move/sources/capability.move

Lines changed: 0 additions & 203 deletions
This file was deleted.

0 commit comments

Comments
 (0)