Skip to content

Commit

Permalink
CIP-113 compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
matteocoppola committed Sep 16, 2024
1 parent 5813bad commit fd1f925
Show file tree
Hide file tree
Showing 5 changed files with 152 additions and 70 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ Only 1 locked_transfer_manager SC exists for all the securities, the utxo datum

Following CIP-113, the security tokens can move only inside the transfer_manager and the locked_transfer_manager SCs.

To check if a issuer, an admin or a user is enabled and legit, there must be a utxo in the proper SC with the proper NFT and with the user stakeCredentials.
To check if a issuer or an admin is enabled and legit, there must be a utxo in the proper SC with the proper NFT and with the user stakeCredentials.
To check if a user is enabled and legit, there must be a utxo in the state_manager SC with a NFT and the user's stakeCredentials in the datum.
To invalidate a issuer, an admin or a user, you just need to spend his utxo and remove his stakeCredentials.

## Authors
Expand Down
2 changes: 1 addition & 1 deletion lib/types.ak
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ pub type StateManagerData {
}

pub type StateManagerDatum {
credentials: Credential,
credential: Credential,
data: StateManagerData,
}

Expand Down
Loading

0 comments on commit fd1f925

Please sign in to comment.