0xaa::events
TransactionRegistered
TransactionRemoved
transaction_registered
transaction_removed
use 0x2::event;
use 0x2::object;
use 0xaa::transaction;
TransactionRegistered
Events ——
struct TransactionRegistered has copy, drop
channel_id: object::ID
transaction: transaction::Transaction
TransactionRemoved
struct TransactionRemoved has copy, drop
channel_id: object::ID
transaction_registered
Package Functions —————–
public(friend) fun transaction_registered(channel_id: object::ID, transaction: transaction::Transaction)
public(package) fun transaction_registered(
channel_id: ID,
transaction: Transaction,
) {
event::emit(TransactionRegistered {
channel_id,
transaction,
})
}
transaction_removed
public(friend) fun transaction_removed(channel_id: object::ID)
public(package) fun transaction_removed(channel_id: ID) {
event::emit(TransactionRemoved {
channel_id,
})
}