Module (nplex=0x0)::events

NPLEX Events Module

Centralizes all event definitions to improve discoverability and indexing.

use iota::address;
use iota::event;
use iota::hex;
use iota::object;
use iota::tx_context;
use std::ascii;
use std::bcs;
use std::option;
use std::string;
use std::vector;

Struct NotarizationRegistered

Emitted when a notarization is registered in the registry

public struct NotarizationRegistered has copy, drop
Fields
notarization_id: iota::object::ID
document_hash: u256
authorized_creator: address
auditor: address
timestamp: u64

Struct NotarizationRevoked

Emitted when a notarization is revoked

public struct NotarizationRevoked has copy, drop
Fields
notarization_id: iota::object::ID
backing_notarization_id: iota::object::ID

Struct NotarizationUnrevoked

Emitted when a notarization revocation is undone

public struct NotarizationUnrevoked has copy, drop
Fields
notarization_id: iota::object::ID
backing_notarization_id: iota::object::ID

Struct AuthorizedCreatorUpdated

Emitted when the authorized creator for a notarization is updated

public struct AuthorizedCreatorUpdated has copy, drop
Fields
notarization_id: iota::object::ID
new_creator: address
backing_notarization_id: iota::object::ID

Struct ExecutorAdded

Emitted when an executor module is added

public struct ExecutorAdded has copy, drop
Fields
executor_type: std::ascii::String

Struct ExecutorRemoved

Emitted when an executor module is removed

public struct ExecutorRemoved has copy, drop
Fields
executor_type: std::ascii::String

Struct TransferAuthorized

Emitted when a bond transfer is authorized by NPLEX

public struct TransferAuthorized has copy, drop
Fields
contract_id: iota::object::ID
new_owner: address
notarization_id: iota::object::ID

Struct TransferConsumed

Emitted when a transfer ticket is consumed

public struct TransferConsumed has copy, drop
Fields
bond_id: iota::object::ID
new_owner: address

Struct TransferRevoked

Emitted when a previously authorized transfer is revoked/overwritten

public struct TransferRevoked has copy, drop
Fields
contract_id: iota::object::ID
notarization_id: iota::object::ID

Struct SalesToggleAuthorized

Emitted when a sales toggle is authorized by NPLEX

public struct SalesToggleAuthorized has copy, drop
Fields
contract_id: iota::object::ID
target_state: bool
notarization_id: iota::object::ID

Struct SalesToggleConsumed

Emitted when a sales toggle ticket is consumed

public struct SalesToggleConsumed has copy, drop
Fields
contract_id: iota::object::ID
new_state: bool

Struct SalesToggleRevoked

Emitted when a previously authorized sales toggle is revoked/overwritten

public struct SalesToggleRevoked has copy, drop
Fields
contract_id: iota::object::ID
notarization_id: iota::object::ID

Struct IdentityApproved

Emitted when an Identity is approved/whitelisted for the first time

public struct IdentityApproved has copy, drop
Fields
identity_id: iota::object::ID
role: u8
backing_notarization_id: iota::object::ID

Struct IdentityRoleUpdated

Emitted when an already-approved Identity’s role is updated

public struct IdentityRoleUpdated has copy, drop
Fields
identity_id: iota::object::ID
old_role: u8
new_role: u8
backing_notarization_id: iota::object::ID

Struct TokenTransferred

Emitted when a LTC1Token is transferred

public struct TokenTransferred has copy, drop
Fields
token_id: iota::object::ID
new_owner: address

Struct ContractCreated

Emitted when a new LTC1 Contract/Package is created

public struct ContractCreated has copy, drop
Fields
package_id: iota::object::ID
creator: address
nominal_value: u64

Struct IdentityRevoked

Emitted when an Identity is revoked from the whitelist

public struct IdentityRevoked has copy, drop
Fields
identity_id: iota::object::ID
backing_notarization_id: iota::object::ID

Struct TokenPurchased

Emitted when an investor buys LTC1 tokens

public struct TokenPurchased has copy, drop
Fields
package_id: iota::object::ID
investor: address
amount: u64
cost: u64

Struct RevenueDeposited

Emitted when the owner deposits revenue into the pool

public struct RevenueDeposited has copy, drop
Fields
package_id: iota::object::ID
amount: u64

Struct FundingWithdrawn

Emitted when the owner withdraws funding from the pool

public struct FundingWithdrawn has copy, drop
Fields
package_id: iota::object::ID
amount: u64
recipient: address

Struct RevenueClaimedOwner

Emitted when the owner claims their revenue share

public struct RevenueClaimedOwner has copy, drop
Fields
package_id: iota::object::ID
amount: u64
owner: address

Struct RevenueClaimedInvestor

Emitted when an investor claims their revenue share

public struct RevenueClaimedInvestor has copy, drop
Fields
package_id: iota::object::ID
token_id: iota::object::ID
amount: u64
investor: address

Struct OwnershipTransferred

Emitted when package ownership is transferred to a new DID

public struct OwnershipTransferred has copy, drop
Fields
package_id: iota::object::ID
new_owner_identity: iota::object::ID

Struct SalesToggled

Emitted when sales state is toggled

public struct SalesToggled has copy, drop
Fields
package_id: iota::object::ID
new_state: bool

Struct VaultCreated

Event emitted when a new FractionalVault is created

public struct VaultCreated has copy, drop
Fields
vault_id: iota::object::ID
package_id: iota::object::ID
fraction_type: std::ascii::String
amount: u64
minter: address

Struct FractionRedeemed

Event emitted when fractions are redeemed for a new LTC1Token

public struct FractionRedeemed has copy, drop
Fields
vault_id: iota::object::ID
amount: u64
redeemer: address

Struct FractionMergedBack

Event emitted when fractions are merged back into an existing LTC1Token

public struct FractionMergedBack has copy, drop
Fields
vault_id: iota::object::ID
token_id: iota::object::ID
amount: u64

Struct VaultEmpty

Event emitted when a vault becomes empty (ready for manual destruction)

public struct VaultEmpty has copy, drop
Fields
vault_id: iota::object::ID
fraction_type: std::ascii::String

Struct VaultDestroyed

Event emitted when an empty vault is destroyed

public struct VaultDestroyed has copy, drop
Fields
vault_id: iota::object::ID

Function emit_notarization_registered

public(package) fun emit_notarization_registered(notarization_id: iota::object::ID, document_hash: u256, authorized_creator: address, auditor: address, timestamp: u64)
Implementation
public(package) fun emit_notarization_registered(
    notarization_id: iota::object::ID,
    document_hash: u256,
    authorized_creator: address,
    auditor: address,
    timestamp: u64,
) {
    iota::event::emit(NotarizationRegistered {
        notarization_id,
        document_hash,
        authorized_creator,
        auditor,
        timestamp,
    });
}

Function emit_notarization_revoked

public(package) fun emit_notarization_revoked(notarization_id: iota::object::ID, backing_notarization_id: iota::object::ID)
Implementation
public(package) fun emit_notarization_revoked(
    notarization_id: iota::object::ID,
    backing_notarization_id: iota::object::ID,
) {
    iota::event::emit(NotarizationRevoked { notarization_id, backing_notarization_id });
}

Function emit_notarization_unrevoked

public(package) fun emit_notarization_unrevoked(notarization_id: iota::object::ID, backing_notarization_id: iota::object::ID)
Implementation
public(package) fun emit_notarization_unrevoked(
    notarization_id: iota::object::ID,
    backing_notarization_id: iota::object::ID,
) {
    iota::event::emit(NotarizationUnrevoked { notarization_id, backing_notarization_id });
}

Function emit_authorized_creator_updated

public(package) fun emit_authorized_creator_updated(notarization_id: iota::object::ID, new_creator: address, backing_notarization_id: iota::object::ID)
Implementation
public(package) fun emit_authorized_creator_updated(
    notarization_id: iota::object::ID,
    new_creator: address,
    backing_notarization_id: iota::object::ID,
) {
    iota::event::emit(AuthorizedCreatorUpdated {
        notarization_id,
        new_creator,
        backing_notarization_id,
    });
}

Function emit_executor_added

public(package) fun emit_executor_added(executor_type: std::ascii::String)
Implementation
public(package) fun emit_executor_added(
    executor_type: std::ascii::String,
) {
    iota::event::emit(ExecutorAdded { executor_type });
}

Function emit_executor_removed

public(package) fun emit_executor_removed(executor_type: std::ascii::String)
Implementation
public(package) fun emit_executor_removed(
    executor_type: std::ascii::String,
) {
    iota::event::emit(ExecutorRemoved { executor_type });
}

Function emit_transfer_authorized

public(package) fun emit_transfer_authorized(contract_id: iota::object::ID, new_owner: address, notarization_id: iota::object::ID)
Implementation
public(package) fun emit_transfer_authorized(
    contract_id: iota::object::ID,
    new_owner: address,
    notarization_id: iota::object::ID,
) {
    iota::event::emit(TransferAuthorized {
        contract_id,
        new_owner,
        notarization_id,
    });
}

Function emit_transfer_consumed

public(package) fun emit_transfer_consumed(bond_id: iota::object::ID, new_owner: address)
Implementation
public(package) fun emit_transfer_consumed(
    bond_id: iota::object::ID,
    new_owner: address,
) {
    iota::event::emit(TransferConsumed { bond_id, new_owner });
}

Function emit_transfer_revoked

public(package) fun emit_transfer_revoked(contract_id: iota::object::ID, notarization_id: iota::object::ID)
Implementation
public(package) fun emit_transfer_revoked(
    contract_id: iota::object::ID,
    notarization_id: iota::object::ID,
) {
    iota::event::emit(TransferRevoked { contract_id, notarization_id });
}

Function emit_sales_toggle_authorized

public(package) fun emit_sales_toggle_authorized(contract_id: iota::object::ID, target_state: bool, notarization_id: iota::object::ID)
Implementation
public(package) fun emit_sales_toggle_authorized(
    contract_id: iota::object::ID,
    target_state: bool,
    notarization_id: iota::object::ID,
) {
    iota::event::emit(SalesToggleAuthorized {
        contract_id,
        target_state,
        notarization_id,
    });
}

Function emit_sales_toggle_consumed

public(package) fun emit_sales_toggle_consumed(contract_id: iota::object::ID, new_state: bool)
Implementation
public(package) fun emit_sales_toggle_consumed(
    contract_id: iota::object::ID,
    new_state: bool,
) {
    iota::event::emit(SalesToggleConsumed { contract_id, new_state });
}

Function emit_sales_toggle_revoked

public(package) fun emit_sales_toggle_revoked(contract_id: iota::object::ID, notarization_id: iota::object::ID)
Implementation
public(package) fun emit_sales_toggle_revoked(
    contract_id: iota::object::ID,
    notarization_id: iota::object::ID,
) {
    iota::event::emit(SalesToggleRevoked { contract_id, notarization_id });
}

Function emit_transfer_token

public(package) fun emit_transfer_token(token_id: iota::object::ID, new_owner: address)
Implementation
public(package) fun emit_transfer_token(
    token_id: iota::object::ID,
    new_owner: address,
) {
    iota::event::emit(TokenTransferred {
        token_id,
        new_owner,
    });
}

Function emit_contract_created

public(package) fun emit_contract_created(package_id: iota::object::ID, creator: address, nominal_value: u64)
Implementation
public(package) fun emit_contract_created(
    package_id: iota::object::ID,
    creator: address,
    nominal_value: u64
) {
    iota::event::emit(ContractCreated {
        package_id,
        creator,
        nominal_value
    });
}

Function emit_token_purchased

public(package) fun emit_token_purchased(package_id: iota::object::ID, investor: address, amount: u64, cost: u64)
Implementation
public(package) fun emit_token_purchased(
    package_id: iota::object::ID,
    investor: address,
    amount: u64,
    cost: u64
) {
    iota::event::emit(TokenPurchased {
        package_id,
        investor,
        amount,
        cost
    });
}

Function emit_revenue_deposited

public(package) fun emit_revenue_deposited(package_id: iota::object::ID, amount: u64)
Implementation
public(package) fun emit_revenue_deposited(
    package_id: iota::object::ID,
    amount: u64
) {
    iota::event::emit(RevenueDeposited {
        package_id,
        amount
    });
}

Function emit_funding_withdrawn

public(package) fun emit_funding_withdrawn(package_id: iota::object::ID, amount: u64, recipient: address)
Implementation
public(package) fun emit_funding_withdrawn(
    package_id: iota::object::ID,
    amount: u64,
    recipient: address,
) {
    iota::event::emit(FundingWithdrawn {
        package_id,
        amount,
        recipient,
    });
}

Function emit_revenue_claimed_owner

public(package) fun emit_revenue_claimed_owner(package_id: iota::object::ID, amount: u64, owner: address)
Implementation
public(package) fun emit_revenue_claimed_owner(
    package_id: iota::object::ID,
    amount: u64,
    owner: address,
) {
    iota::event::emit(RevenueClaimedOwner {
        package_id,
        amount,
        owner,
    });
}

Function emit_revenue_claimed_investor

public(package) fun emit_revenue_claimed_investor(package_id: iota::object::ID, token_id: iota::object::ID, amount: u64, investor: address)
Implementation
public(package) fun emit_revenue_claimed_investor(
    package_id: iota::object::ID,
    token_id: iota::object::ID,
    amount: u64,
    investor: address,
) {
    iota::event::emit(RevenueClaimedInvestor {
        package_id,
        token_id,
        amount,
        investor,
    });
}

Function emit_ownership_transferred

public(package) fun emit_ownership_transferred(package_id: iota::object::ID, new_owner_identity: iota::object::ID)
Implementation
public(package) fun emit_ownership_transferred(
    package_id: iota::object::ID,
    new_owner_identity: iota::object::ID,
) {
    iota::event::emit(OwnershipTransferred {
        package_id,
        new_owner_identity,
    });
}

Function emit_identity_approved

public(package) fun emit_identity_approved(identity_id: iota::object::ID, role: u8, backing_notarization_id: iota::object::ID)
Implementation
public(package) fun emit_identity_approved(
    identity_id: iota::object::ID,
    role: u8,
    backing_notarization_id: iota::object::ID,
) {
    iota::event::emit(IdentityApproved {
        identity_id,
        role,
        backing_notarization_id,
    });
}

Function emit_identity_role_updated

public(package) fun emit_identity_role_updated(identity_id: iota::object::ID, old_role: u8, new_role: u8, backing_notarization_id: iota::object::ID)
Implementation
public(package) fun emit_identity_role_updated(
    identity_id: iota::object::ID,
    old_role: u8,
    new_role: u8,
    backing_notarization_id: iota::object::ID,
) {
    iota::event::emit(IdentityRoleUpdated {
        identity_id,
        old_role,
        new_role,
        backing_notarization_id,
    });
}

Function emit_identity_revoked

public(package) fun emit_identity_revoked(identity_id: iota::object::ID, backing_notarization_id: iota::object::ID)
Implementation
public(package) fun emit_identity_revoked(
    identity_id: iota::object::ID,
    backing_notarization_id: iota::object::ID,
) {
    iota::event::emit(IdentityRevoked {
        identity_id,
        backing_notarization_id,
    });
}

Function emit_sales_toggled

public(package) fun emit_sales_toggled(package_id: iota::object::ID, new_state: bool)
Implementation
public(package) fun emit_sales_toggled(
    package_id: iota::object::ID,
    new_state: bool,
) {
    iota::event::emit(SalesToggled {
        package_id,
        new_state,
    });
}

Function emit_vault_created

public(package) fun emit_vault_created(vault_id: iota::object::ID, package_id: iota::object::ID, fraction_type: std::ascii::String, amount: u64, minter: address)
Implementation
public(package) fun emit_vault_created(
    vault_id: iota::object::ID,
    package_id: iota::object::ID,
    fraction_type: std::ascii::String,
    amount: u64,
    minter: address,
) {
    iota::event::emit(VaultCreated {
        vault_id,
        package_id,
        fraction_type,
        amount,
        minter
    });
}

Function emit_fraction_redeemed

public(package) fun emit_fraction_redeemed(vault_id: iota::object::ID, amount: u64, redeemer: address)
Implementation
public(package) fun emit_fraction_redeemed(
    vault_id: iota::object::ID,
    amount: u64,
    redeemer: address,
) {
    iota::event::emit(FractionRedeemed {
        vault_id,
        amount,
        redeemer,
    });
}

Function emit_fraction_merged_back

public(package) fun emit_fraction_merged_back(vault_id: iota::object::ID, token_id: iota::object::ID, amount: u64)
Implementation
public(package) fun emit_fraction_merged_back(
    vault_id: iota::object::ID,
    token_id: iota::object::ID,
    amount: u64,
) {
    iota::event::emit(FractionMergedBack {
        vault_id,
        token_id,
        amount,
    });
}

Function emit_vault_empty

public(package) fun emit_vault_empty(vault_id: iota::object::ID, fraction_type: std::ascii::String)
Implementation
public(package) fun emit_vault_empty(
    vault_id: iota::object::ID,
    fraction_type: std::ascii::String,
) {
    iota::event::emit(VaultEmpty {
        vault_id,
        fraction_type
    });
}

Function emit_vault_destroyed

public(package) fun emit_vault_destroyed(vault_id: iota::object::ID)
Implementation
public(package) fun emit_vault_destroyed(
    vault_id: iota::object::ID,
) {
    iota::event::emit(VaultDestroyed { vault_id });
}

This site uses Just the Docs, a documentation theme for Jekyll.