axelar-cgp-sui

Module 0xaa::events

use 0x2::event;
use 0x2::object;
use 0xaa::transaction;

Struct TransactionRegistered


Events ——

struct TransactionRegistered has copy, drop
Fields
channel_id: object::ID
transaction: transaction::Transaction

Struct TransactionRemoved

struct TransactionRemoved has copy, drop
Fields
channel_id: object::ID

Function transaction_registered


Package Functions —————–

public(friend) fun transaction_registered(channel_id: object::ID, transaction: transaction::Transaction)
Implementation
public(package) fun transaction_registered(
    channel_id: ID,
    transaction: Transaction,
) {
    event::emit(TransactionRegistered {
        channel_id,
        transaction,
    })
}

Function transaction_removed

public(friend) fun transaction_removed(channel_id: object::ID)
Implementation
public(package) fun transaction_removed(channel_id: ID) {
    event::emit(TransactionRemoved {
        channel_id,
    })
}